Skip to content

Commit

Permalink
pin protoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Oct 4, 2024
1 parent e8c7f03 commit ed63fd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,14 @@ jobs:
with:
go-version: "1.22"

- name: Run "make generate" and check for changes
- name: Run "go generate" and check for changes
run: |
set -e
sudo apt -qq -y -o=Dpkg::Use-Pty=0 install protobuf-compiler
# ensure the version of 'protoc' matches the one that generated the files
PROTOBUF_VERSION="21.10"
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip
unzip protoc-${PROTOBUF_VERSION}-linux-x86_64.zip -d $HOME/.protoc
export PATH="$HOME/.protoc/bin:$PATH"
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
go generate ./...
Expand Down

0 comments on commit ed63fd9

Please sign in to comment.