-
Notifications
You must be signed in to change notification settings - Fork 7
Description
What happened?
I hae Image resource with builder.name property serialized to stack from previous runs. Running pulumi preview with different builder name gives this error: error: Preview failed: new builder: no builder "<old builder name>" found.
This happens always if one reuses builder set up by docker/setup-buildx-action action, as it produces unique name on every run.
Example
Have Image resource with builder.name set. Run pulumi up once, shut down old builder instance, create new one with different name, and then run pulumi preview.
Output of pulumi about
CLI
Version 3.134.1
Go Version go1.23.1
Go Compiler gc
Host
OS debian
Version 12.7
Arch aarch64
Backend
Name pulumi.com
URL https://app.pulumi.com
User Unknown
Organizations
Token type personal
Pulumi locates its logs in /tmp by default
warning: Failed to read project: no Pulumi.yaml project file found (searching upwards from <cwd>). If you have not created a project yet, use `pulumi new` to do so: no project file found
warning: Failed to get information about the current stack: no Pulumi.yaml project file found (searching upwards from <cwd>). If you have not created a project yet, use `pulumi new` to do so: no project file found
The output is a bit wonky since I am utilising Pulumi Automation API to run my pipeline, as it is a bit complex (has some other components than just Pulumi), and I am storing the state and encryption key in AWS (not using Pulumi cloud). Furthermore, I am running Pulumi inside Docker container pulumi/pulumi-nodejs-22:3.134.1.
But the versions in the package.json are like this:
"@pulumi/aws-native": "0.125.0",
"@pulumi/aws": "6.53.0",
"@pulumi/docker-build": "0.0.6",
"@pulumi/postgresql": "3.12.0",
"@pulumi/pulumi": "3.134.1",
"@pulumi/random": "4.16.6",
Additional context
In order to reproduce this, there already needs to be Image resource existing in stack with some builder.name value.
Then, if a different builder.name value is provided on e.g. preview command, the bug will occur.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).