Skip to content

Commit

Permalink
feat(buildtool): introduce script/go.bash wrapper
Browse files Browse the repository at this point in the history
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
bassosimone committed Feb 1, 2024
1 parent b1de281 commit be11cf5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gofixpath.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
with:
go-version: "${{ matrix.goversion }}"

- run: go run ./internal/cmd/buildtool gofixpath -- go run ./internal/cmd/buildtool generic miniooni
- run: ./script/go.bash run ./internal/cmd/buildtool generic miniooni
3 changes: 3 additions & 0 deletions script/go.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -euxo pipefail
go run ./internal/cmd/buildtool gofixpath -- ./script/internal/go.bash "$@"
3 changes: 3 additions & 0 deletions script/internal/go.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -euxo pipefail
go "$@"

0 comments on commit be11cf5

Please sign in to comment.