bazel-contrib / bazel-gazelle

Gazelle is a Bazel build file generator for Bazel projects. It natively supports Go and protobuf, and it may be extended to support new languages and custom rule sets.
Apache License 2.0
1.19k stars 378 forks source link

go_repository_cache: set GOTOOLCHAIN to 'local' #1859

Closed lbcjbb closed 2 months ago

lbcjbb commented 2 months ago

What type of PR is this?

Bug fix

What package or component does this PR mostly affect?

go_repository_cache

What does this PR do? Why is it needed?

Override the GOTOOLCHAIN local environment parameter defined by go env -w to use the local Go environment made available by gazelle.

Which issues(s) does this PR fix?

Fixes #1858

Other notes for review

Same fix than https://github.com/bazelbuild/rules_go/pull/3660 in rules_go.