Skip to content
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

Do not pollute workdir during pulumictl auto-installation #1335

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Jan 31, 2025

When pulumictl is not discovered in PATH it is auto-installed by the Makefile.

Unfortunately the previous method used a GOPATH override to guide go install as to where install pulumictl. As a side effect of this, the auto-installation did not use the standard Go package cache and polluted the working dir with another copy of Go package cache.

After this change, auto installation happens against the standard Go package cache and the result is then copied into bin.

Users should prefer to have pulumictl in the environment than relying on the auto-installation.

Tested manually on pulumi-awsx.

@t0yv0 t0yv0 requested a review from VenelinMartinov January 31, 2025 14:30
@@ -1,5 +1,5 @@
package pkg

const (
defaultPulumiCTLVersion = "v0.0.46"
defaultPulumiCTLVersion = "v0.0.48"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 0.0.46 version had replaces in go.mod that caused go install to complain. The latest version has no such problem.

@t0yv0 t0yv0 enabled auto-merge January 31, 2025 14:34
@t0yv0 t0yv0 added this pull request to the merge queue Jan 31, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants