diff options
| author | Joseph Richey <joerichey@google.com> | 2018-12-04 15:10:54 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-04 15:10:54 -0800 |
| commit | 7e8d04041908d4867846bea00e009c089d878d01 (patch) | |
| tree | a2d5b86aa7c23243580192e5b68dfec46917c5ae /Makefile | |
| parent | 15af139f45208bc8bf1696629c7e8a5dcc2140ce (diff) | |
| parent | 9475b3e930768edb05ae385620580dbf31db14a4 (diff) | |
Merge pull request #114 from ebiggers/fix-make-gen
Makefile: use a specific protoc-gen-go version
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -171,7 +171,9 @@ $(BIN)/golint: GO111MODULE=off go get github.com/golang/lint/golint GO111MODULE=off go build -o $@ github.com/golang/lint/golint $(BIN)/protoc-gen-go: - GO111MODULE=off go get github.com/golang/protobuf/protoc-gen-go + GO111MODULE=off go get -d github.com/golang/protobuf/protoc-gen-go + git -C "$(shell go env GOPATH)/src/github.com/golang/protobuf" checkout v1.2.0 + go install github.com/golang/protobuf/protoc-gen-go GO111MODULE=off go build -o $@ github.com/golang/protobuf/protoc-gen-go $(BIN)/goimports: GO111MODULE=off go get golang.org/x/tools/cmd/goimports |