*: pin protoc-gen-go dependencies
This commit is contained in:
parent
861d4ae447
commit
35063da41e
@ -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
|
||||
|
10
Makefile
10
Makefile
@ -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
|
||||
|
||||
|
7
scripts/git-diff
Executable file
7
scripts/git-diff
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
DIFF=$( git diff . )
|
||||
if [ "$DIFF" != "" ]; then
|
||||
echo "$DIFF" >&2
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user