Skip to content

Commit d7995cf

Browse files
committed
force go version
1 parent fdaf943 commit d7995cf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/vulncheck.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,21 @@ jobs:
4848
go-version: ${{ steps.get-go-version.outputs.go-version }}
4949
cache: true
5050

51-
- name: Install tools and run make generate
51+
- name: Force Go Path
5252
run: |
53-
NEW_GO_PATH="$(go env GOROOT)/bin"
54-
export PATH="$NEW_GO_PATH:$PATH"
53+
# This forces the version from setup-go to the top of the PATH for all future steps
54+
echo "$(go env GOROOT)/bin" >> $GITHUB_PATH
55+
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
5556

57+
- name: Install tools and run make generate
58+
run: |
5659
go version
5760

5861
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.32.0
5962
go install github.com/maxbrunsfeld/counterfeiter/v6@v6.11.2
6063
go install github.com/bufbuild/buf/cmd/buf@v1.30.1
6164

62-
export PATH="$PATH:$(go env GOPATH)/bin"
63-
make generate
65+
make generate GO=$(which go)
6466
env:
6567
GOTOOLCHAIN: local
6668

0 commit comments

Comments
 (0)