open-nomad/scripts/install-protoc-gen-go.sh
Mahmood Ali 88cfe504a0 update grpc
Upgrade grpc to v1.27.1 and protobuf plugins to v1.3.4.
2020-03-03 08:39:54 -05:00

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