-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(buildtool): introduce script/go.bash wrapper (#1485)
This wrapper invokes buildtool's gofixpath to ensure we end up executing the correct version of golang. Part of ooni/probe#2664.
- Loading branch information
1 parent
b1de281
commit e9dc6f1
Showing
4 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
# We invoke ./script/internal/go.bash through the gofixpath subcommand such that | ||
# the "go" binary in PATH is the correct version of go. | ||
# | ||
# See https://github.com/ooni/probe/issues/2664 | ||
go run ./internal/cmd/buildtool gofixpath -- ./script/internal/go.bash "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
# If this script is invoked by ./script/go.bash, then go is | ||
# the correct version of go expected by the buildtool. | ||
# | ||
# See https://github.com/ooni/probe/issues/2664 | ||
go "$@" |