Skip to content

Commit

Permalink
Treat protoc warnings as errors (#3113)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin committed Jul 18, 2022
1 parent 2cf6ec2 commit 881f37d
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 116 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This doc is for contributors to Temporal Server (hopefully that's you!)
- Install on Ubuntu with `sudo apt install golang`.
* [Protocol buffers compiler](https://github.com/protocolbuffers/protobuf/) (only if you are going to change `proto` files):
- Install on macOS with `brew install protobuf`.
- Install on Ubuntu with `sudo apt install protobuf-compiler`.
- Download all other versions from [protoc release page](https://github.com/protocolbuffers/protobuf/releases).
* [Temporal CLI tctl](https://github.com/temporalio/tctl)
- Homebrew `brew install tctl`
- Go install `make update-tctl`
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ protoc: $(PROTO_OUT)
@printf $(COLOR) "Build proto files..."
# Run protoc separately for each directory because of different package names.
$(foreach PROTO_DIR,$(PROTO_DIRS),\
protoc $(PROTO_IMPORTS) \
protoc --fatal_warnings $(PROTO_IMPORTS) \
--gogoslick_out=Mgoogle/protobuf/descriptor.proto=github.com/golang/protobuf/protoc-gen-go/descriptor,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc,paths=source_relative:$(PROTO_OUT) \
$(PROTO_DIR)*.proto \
$(NEWLINE))
Expand Down
Loading

0 comments on commit 881f37d

Please sign in to comment.