Skip to content

Commit

Permalink
Add toolchain param to affected actions (#3760)
Browse files Browse the repository at this point in the history
* Add toolchain param to affected actions

* Move GO_TOOLCHAIN to common.bzl

* Update new location of GO_TOOLCHAIN

* Fix error

* Format files

* Add toolchain param to affected actions
  • Loading branch information
kotlaja authored Nov 21, 2023
1 parent 2dc0fd1 commit 2f29bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions go/private/rules/test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def _go_test_impl(ctx):
mnemonic = "GoTestGenTest",
executable = go.toolchain._builder,
arguments = [arguments],
toolchain = GO_TOOLCHAIN,
)

test_gc_linkopts = gc_linkopts(ctx)
Expand Down
1 change: 1 addition & 0 deletions proto/compiler.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def go_proto_compile(go, compiler, protos, imports, importpath):
progress_message = "Generating into %s" % go_srcs[0].dirname,
mnemonic = "GoProtocGen",
executable = compiler.internal.go_protoc,
toolchain = GO_TOOLCHAIN,
arguments = [args],
env = go.env,
# We may need the shell environment (potentially augmented with --action_env)
Expand Down

0 comments on commit 2f29bd3

Please sign in to comment.