88cfe504a0
Upgrade grpc to v1.27.1 and protobuf plugins to v1.3.4.
10 lines
427 B
Bash
10 lines
427 B
Bash
#!/usr/bin/env bash
|
|
|
|
GIT_TAG="v1.3.4" # change as needed
|
|
echo "Installing protobuf/protoc-gen-go@${GIT_TAG} ..."
|
|
|
|
# Either fetch in existing repo or use go get to clone
|
|
git -C "$(go env GOPATH)"/src/github.com/golang/protobuf fetch -q || go get -d -u github.com/golang/protobuf/protoc-gen-go
|
|
git -C "$(go env GOPATH)"/src/github.com/golang/protobuf checkout --quiet $GIT_TAG
|
|
go install github.com/golang/protobuf/protoc-gen-go
|