File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments