Commit 35063da4 authored by Eric Chiang's avatar Eric Chiang

*: pin protoc-gen-go dependencies

parent 861d4ae4
......@@ -25,6 +25,7 @@ install:
script:
- make testall
- ./scripts/test-k8s.sh
- make verify-proto # Ensure proto generation doesn't depend on external packages.
notifications:
email: false
......@@ -61,14 +61,14 @@ docker-image:
@sudo docker build -t $(DOCKER_IMAGE) .
.PHONY: proto
proto: api/api.pb.go server/internal/types.pb.go
api/api.pb.go: api/api.proto bin/protoc bin/protoc-gen-go
proto: bin/protoc bin/protoc-gen-go
@./bin/protoc --go_out=plugins=grpc:. --plugin=protoc-gen-go=./bin/protoc-gen-go api/*.proto
server/internal/types.pb.go: server/internal/types.proto bin/protoc bin/protoc-gen-go
@./bin/protoc --go_out=. --plugin=protoc-gen-go=./bin/protoc-gen-go server/internal/*.proto
.PHONY: verify-proto
verify-proto: proto
@./scripts/git-diff
bin/protoc: scripts/get-protoc
@./scripts/get-protoc bin/protoc
......
......@@ -128,11 +128,14 @@ import:
- peer
- transport
- package: github.com/golang/protobuf
version: 2bba0603135d7d7f5cb73b2125beeda19c09f4ef
version: 1e59b77b52bf8e4b449a57e6f79f21226d571845
subpackages:
- proto
- protoc-gen-go
- protoc-gen-go/grpc
- protoc-gen-go/descriptor
- protoc-gen-go/plugin
- protoc-gen-go/generator
- package: google.golang.org/genproto
version: 411e09b969b1170a9f0c467558eb4c4c110d9c77
......
#!/bin/bash -e
DIFF=$( git diff . )
if [ "$DIFF" != "" ]; then
echo "$DIFF" >&2
exit 1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment