-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f7a59c
commit 10db5e3
Showing
4 changed files
with
6 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,33 +23,26 @@ PROTO_ROOT := . | |
PROTO_FILES = $(shell find $(PROTO_ROOT) -name "*.proto") | ||
PROTO_DIRS = $(sort $(dir $(PROTO_FILES))) | ||
PROTO_OUT := .gen | ||
PROTO_IMPORTS := -I=$(PROTO_ROOT) -I=$(GOPATH)/src/github.com/temporalio/gogo-protobuf/protobuf | ||
PROTO_IMPORTS := -I=$(PROTO_ROOT) | ||
|
||
$(PROTO_OUT): | ||
mkdir $(PROTO_OUT) | ||
|
||
##### Compile proto files for go ##### | ||
grpc: buf-lint api-linter buf-breaking gogo-grpc fix-path | ||
grpc: buf-lint api-linter buf-breaking fix-path | ||
|
||
go-grpc: clean $(PROTO_OUT) | ||
printf $(COLOR) "Compile for go-gRPC..." | ||
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc $(PROTO_IMPORTS) --go_out=plugins=grpc,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;) | ||
|
||
gogo-grpc: clean $(PROTO_OUT) | ||
printf $(COLOR) "Compile for gogo-gRPC..." | ||
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc $(PROTO_IMPORTS) --gogoslick_out=Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/descriptor.proto=github.com/golang/protobuf/protoc-gen-go/descriptor,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;) | ||
|
||
fix-path: | ||
mv -f $(PROTO_OUT)/temporal/api/* $(PROTO_OUT) && rm -rf $(PROTO_OUT)/temporal | ||
|
||
##### Plugins & tools ##### | ||
grpc-install: gogo-protobuf-install | ||
grpc-install: | ||
printf $(COLOR) "Install/update gRPC plugins..." | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
|
||
gogo-protobuf-install: go-protobuf-install | ||
GO111MODULE=off go get github.com/temporalio/gogo-protobuf/protoc-gen-gogoslick | ||
|
||
go-protobuf-install: | ||
go install github.com/golang/protobuf/[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
141 changes: 0 additions & 141 deletions
141
temporal-test-server/src/main/proto/dependencies/gogoproto/gogo.proto
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters