11$(VERBOSE ) .SILENT :
22# ############################ Main targets #############################
3- # Install everything, run all linters, and compile proto files.
4- install : grpc-install api-linter-install buf-install proto
3+ ci-build : install proto
4+
5+ # Install dependencies.
6+ install : grpc-install api-linter-install buf-install
57
68# Run all linters and compile proto files.
79proto : grpc
@@ -43,21 +45,21 @@ fix-path:
4345# #### Plugins & tools #####
4446grpc-install : gogo-protobuf-install
4547 printf $(COLOR ) " Install/update gRPC plugins..."
46- GO111MODULE=on go get google.golang.org/grpc@v1.34 .0
48+ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc @v1.1 .0
4749
4850gogo-protobuf-install : go-protobuf-install
49- go get github.com/temporalio/gogo-protobuf/protoc-gen-gogoslick
51+ GO111MODULE=off go get github.com/temporalio/gogo-protobuf/protoc-gen-gogoslick
5052
5153go-protobuf-install :
52- GO111MODULE=on go
get github.com/golang/protobuf/
[email protected] 54+ go
install github.com/golang/protobuf/
[email protected] 5355
5456api-linter-install :
5557 printf $(COLOR ) " Install/update api-linter..."
56- GO111MODULE=on go get github.com/googleapis/api-linter/cmd/api-linter@v1.10 .0
58+ go install github.com/googleapis/api-linter/cmd/api-linter@v1.22 .0
5759
5860buf-install :
5961 printf $(COLOR ) " Install/update buf..."
60- GO111MODULE=on go get github.com/bufbuild/buf/cmd/buf@v0.33.0
62+ go install github.com/bufbuild/buf/cmd/buf@v0.43.2
6163
6264# #### Linters #####
6365api-linter :
@@ -66,10 +68,11 @@ api-linter:
6668
6769buf-lint :
6870 printf $(COLOR ) " Run buf linter..."
69- (cd $( PROTO_ROOT) && buf check lint)
71+ (cd $( PROTO_ROOT) && buf lint)
7072
7173buf-breaking :
72- @printf $(COLOR ) " Run buf breaking changes check against master branch..."
74+ @printf $(COLOR ) " Run buf breaking changes check against master branch..."
75+ @ (cd $( PROTO_ROOT) && buf breaking --against ' .git#branch=master' )
7376
7477# #### Clean #####
7578clean :
0 commit comments