install specific version of protoc-gen-go
This commit is contained in:
parent
05b1b03156
commit
32fd800583
|
@ -144,7 +144,7 @@ deps: ## Install build and development dependencies
|
|||
go get -u github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs
|
||||
go get -u github.com/a8m/tree/cmd/tree
|
||||
go get -u github.com/magiconair/vendorfmt/cmd/vendorfmt
|
||||
go get -u github.com/golang/protobuf/protoc-gen-go
|
||||
@bash -C "$(PROJECT_ROOT)/scripts/install-protoc-gen-go.sh"
|
||||
go get -u gotest.tools/gotestsum
|
||||
|
||||
.PHONY: lint-deps
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue