-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A better way to install plugins #61
Comments
@darnmason The current workaround that I myself use sometimes is to add a And for a better way to install the plugins for pre-built binaries, would it be helpful if the task supported a special "custom" command, where you could simply enter all the |
@darnmason since v1.0.9 you should be able to use the task extension to simply install the CLI and then run a single - task: Pulumi@1
displayName: Install Pulumi CLI
- script: |
pulumi plugin install resource azure-native v0.7.1
pulumi plugin install resource random v3.1.0
...
...
- task: Pulumi@1
input:
cmd: up
args: --yes
stack: mystack (Note to other readers: you are only need to install the plugins manually if you are using a pre-built binary with Pulumi at this time.) |
Definitely an improvement in the usability of the Pulumi task, using it just to install the tools. Still a bit to go with automatically installing the plugins. A pain point is having the hardcoded plugin versions in your deployment script. You update a plugin in Nuget and forget to update the deployment script and need to fix and redeploy. Removing this manual step should be the end goal. If it were possible for Pulumi to write a manifest file during a regular dotnet build/publish and automatically detect that manifest when running from binary that'd be great. The onus would be on the developer to ensure that manifest is copied when moving files which makes sense. |
it would be extremely helpful if the command use-case: now I could just let pulumi install them whenever it's invoked, but that's wasting time - the whole purpose of the nightly built pulumi image is enabling the pipelines to use pulumi as fast as possible. so I put the |
Agreed that this would be a useful addition. I've opened pulumi/pulumi#9001 to track that directly. |
Not sure if this is the thread for it. I noticed that the prior version of a plugin needs to exist when performing a deploy after installing a new plugin. The state references the version of the initial plugin. Only after the deploy is performed can the original plugin be removed. |
@rdanno I expect what you are describing is due to pulumi/pulumi#5619. |
I use a build pipeline to publish an artifact of my Pulumi project and another pipeline downloads that artifact to execute it.
This means that I have Pulumi configured with the binary option:
I discovered that this means Pulumi can't/won't install plugins used by the binary. So now I've resorted to the following steps when executing Pulumi:
Is there a better way to do this or can I request one?
The text was updated successfully, but these errors were encountered: