mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
install specific version of protoc-gen-go
This commit is contained in:
9
scripts/install-protoc-gen-go.sh
Normal file
9
scripts/install-protoc-gen-go.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
GIT_TAG="v1.2.0" # 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
|
||||
Reference in New Issue
Block a user