Skip to content

Commit

Permalink
go.mod: Update google.golang.org/grpc and its dependencies
Browse files Browse the repository at this point in the history
Also update the other places where specific versions are referenced
and recompile the protos.

PiperOrigin-RevId: 716217088
  • Loading branch information
gnoack authored and copybara-github committed Jan 17, 2025
1 parent 789e3b3 commit 266d303
Show file tree
Hide file tree
Showing 31 changed files with 577 additions and 1,931 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- name: Set up Go
run: |
go get -u golang.org/x/lint/golint
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.1
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.35.1
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.1
- uses: actions/setup-python@v4
with:
python-version: '3.11'
Expand Down
17 changes: 17 additions & 0 deletions fleetspeak/generate_go_py_protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ set -e

echo 'Transpiling required protos to Go and Python.'

if [[ "$(python -m grpc_tools.protoc --version)" != "libprotoc 26.1" ]]; then
echo "Wrong grpc_tools.protoc version"
exit 1
fi

if [[ "$(protoc-gen-go --version)" != "protoc-gen-go v1.35.1" ]]; then
echo "Wrong protoc-gen-go version, please run:"
echo "$ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.35.1"
exit 1
fi

if [[ "$(protoc-gen-go-grpc --version)" != "protoc-gen-go-grpc 1.5.1" ]]; then
echo "Wrong protoc-gen-go-grpc version, please run:"
echo "$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.1"
exit 1
fi

# Go to this script's directory.
cd "$(/usr/bin/dirname "$(/bin/readlink -e "${0}")")"

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 266d303

Please sign in to comment.