Skip to content

Go: Respect GOTOOLCHAIN in GetEnvGoVersion if already set #16216

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

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

mbg
Copy link
Member

@mbg mbg commented Apr 15, 2024

A hopefully small change which changes the behaviour of GetEnvGoVersion to respect existing values for GOTOOLCHAIN if the environment variable is already set. This is primarily useful for testing, where we can use this to force a particular toolchain to be used for the purpose of a test. It may also be useful for users who wish to override whatever the system default is.

@mbg mbg self-assigned this Apr 15, 2024
@mbg mbg requested a review from a team as a code owner April 15, 2024 15:30
@github-actions github-actions bot added the Go label Apr 15, 2024
@mbg mbg merged commit d9bd547 into main Apr 15, 2024
12 checks passed
@mbg mbg deleted the mbg/go/respect-gotoolchain branch April 15, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants