Skip to content

Allow environment variables to override go_env in @rules_go//go#4464

Merged
fmeum merged 1 commit intobazel-contrib:masterfrom
rafikk:go-env-override
Oct 2, 2025
Merged

Allow environment variables to override go_env in @rules_go//go#4464
fmeum merged 1 commit intobazel-contrib:masterfrom
rafikk:go-env-override

Conversation

@rafikk
Copy link
Copy Markdown
Contributor

@rafikk rafikk commented Oct 2, 2025

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

This PR fixes an inconsistency in how environment variables interact with go_env. Prior to this PR, environment variables could override settings in go_env within go_repository, but could not override go_env when invoking @rules_go//go.

Which issues(s) does this PR fix?

Fixes #4462

Other notes for review

@fmeum fmeum enabled auto-merge (squash) October 2, 2025 12:01
@fmeum fmeum merged commit 7ef8fb1 into bazel-contrib:master Oct 2, 2025
1 check passed
@jayconrod
Copy link
Copy Markdown
Collaborator

Thanks for fixing this!

@rafikk rafikk deleted the go-env-override branch October 2, 2025 19:01
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.

Environment variables in go_env are inconsistently overrideable

3 participants