Skip to content

Commit

Permalink
Update GO_TOOLCHAIN string to Label and add toolchain param to one mo…
Browse files Browse the repository at this point in the history
…re action
  • Loading branch information
kotlaja committed Nov 22, 2023
1 parent 2f29bd3 commit 0d07ed0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions extras/gomock.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def _gomock_source_impl(ctx):
ctx.file.mockgen_tool,
go_ctx.go,
],
toolchain = GO_TOOLCHAIN,
command = """
export GOPATH=$(pwd)/{gopath} &&
{cmd} {args} > {out}
Expand Down
2 changes: 1 addition & 1 deletion go/private/common.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

GO_TOOLCHAIN = "@io_bazel_rules_go//go:toolchain"
GO_TOOLCHAIN = Label("@io_bazel_rules_go//go:toolchain")

go_exts = [
".go",
Expand Down

0 comments on commit 0d07ed0

Please sign in to comment.