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

go_context: set GOTOOLCHAIN to 'local' #3660

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions go/private/context.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,12 @@ def go_context(ctx, attr = None):
# Explicitly clear this environment variable to ensure that doesn't
# happen. See #2291 for more information.
"GOPATH": "",

# Since v1.21.0, set GOTOOLCHAIN to "local" to use the current toolchain
# and avoid downloading other toolchains.
#
# See https://go.dev/doc/toolchain for more info.
"GOTOOLCHAIN": "local",
}

# The level of support is determined by the platform constraints in
Expand Down