Skip to content

Commit

Permalink
Let @rules_go//go file path end with /bin/go
Browse files Browse the repository at this point in the history
This improves compatibility with external tooling.
  • Loading branch information
fmeum committed Dec 20, 2023
1 parent 9adc8e1 commit 3042329
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/tools/go_bin_runner/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ go_library(

go_binary(
name = "go_bin_runner",
# Make this binary usable as a drop-in replacement for the actual go binary with external tools.
out = select({
"@platforms//os:windows": "bin/go.exe",
"//conditions:default": "bin/go",
}),
data = [":go_bin_for_host"],
embed = [":go_bin_runner_lib"],
visibility = ["//go:__pkg__"],
Expand Down

0 comments on commit 3042329

Please sign in to comment.