Skip to content

Commit

Permalink
Switch to gogofaster (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin authored Apr 6, 2020
1 parent adb046f commit 77017f9
Show file tree
Hide file tree
Showing 23 changed files with 2,053 additions and 16,351 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PROTO_ROOT := temporal-proto
PROTO_DIRS = $(sort $(dir $(wildcard $(PROTO_ROOT)/*/*.proto)))
PROTO_SERVICES = $(wildcard $(PROTO_ROOT)/*/service.proto)
PROTO_OUT := .
PROTO_IMPORT := $(PROTO_ROOT):$(GOPATH)/src/github.com/gogo/protobuf
PROTO_IMPORT := $(PROTO_ROOT):$(GOPATH)/src/github.com/gogo/protobuf/protobuf

all: update-proto-submodule grpc grpc-mock copyright gomodtidy

Expand All @@ -32,11 +32,11 @@ grpc: gogo-grpc

gogo-grpc: clean $(PROTO_OUT)
echo "Compiling for gogo-gRPC..."
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc --proto_path=$(PROTO_IMPORT) --gogoslick_out=Mprotobuf/google/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mprotobuf/google/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;)
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc --proto_path=$(PROTO_IMPORT) --gogofaster_out=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;)

gogo-protobuf: clean $(PROTO_OUT)
echo "Compiling for gogo-protobuf..."
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc --proto_path=$(PROTO_IMPORT) --gogoslick_out=Mprotobuf/google/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mprotobuf/google/protobuf/timestamp.proto=github.com/gogo/protobuf/types,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;)
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc --proto_path=$(PROTO_IMPORT) --gogofaster_out=Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;)

go-protobuf: clean $(PROTO_OUT)
echo "Compiling for go-protobuf..."
Expand Down Expand Up @@ -64,7 +64,7 @@ grpc-install: gogo-protobuf-install
GO111MODULE=off go get -u google.golang.org/grpc

gogo-protobuf-install: go-protobuf-install
GO111MODULE=off go get -u github.com/gogo/protobuf/protoc-gen-gogoslick
GO111MODULE=off go get -u github.com/gogo/protobuf/protoc-gen-gogofaster

go-protobuf-install:
GO111MODULE=off go get -u github.com/golang/protobuf/protoc-gen-go
Expand Down
110 changes: 45 additions & 65 deletions common/enum.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 77017f9

Please sign in to comment.