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 23, 2025
1 parent a3821ce commit 70583ee
Show file tree
Hide file tree
Showing 31 changed files with 577 additions and 1,931 deletions.
17 changes: 17 additions & 0 deletions fleetspeak/generate_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/[email protected]"
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/[email protected]"
exit 1
fi

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

Expand Down
4 changes: 2 additions & 2 deletions fleetspeak/generate_protos_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -e

PROTOC_VER="26.1" # https://github.com/protocolbuffers/protobuf/releases
GEN_GO_VER="1.34.1" # https://pkg.go.dev/google.golang.org/protobuf/cmd/protoc-gen-go?tab=versions
GEN_GO_GRPC_VER="1.4.0" # https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc?tab=versions
GEN_GO_VER="1.35.1" # https://pkg.go.dev/google.golang.org/protobuf/cmd/protoc-gen-go?tab=versions
GEN_GO_GRPC_VER="1.5.1" # https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc?tab=versions

function err() {
echo "$*" >&2
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 70583ee

Please sign in to comment.