2019-01-29 23:37:01 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-03-02 20:39:25 +00:00
|
|
|
GIT_TAG="v1.3.4" # change as needed
|
2019-01-29 23:37:01 +00:00
|
|
|
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
|