Skip to content

Commit 77017f9

Browse files
authored
Switch to gogofaster (#14)
1 parent adb046f commit 77017f9

File tree

23 files changed

+2053
-16351
lines changed

23 files changed

+2053
-16351
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PROTO_ROOT := temporal-proto
1212
PROTO_DIRS = $(sort $(dir $(wildcard $(PROTO_ROOT)/*/*.proto)))
1313
PROTO_SERVICES = $(wildcard $(PROTO_ROOT)/*/service.proto)
1414
PROTO_OUT := .
15-
PROTO_IMPORT := $(PROTO_ROOT):$(GOPATH)/src/github.com/gogo/protobuf
15+
PROTO_IMPORT := $(PROTO_ROOT):$(GOPATH)/src/github.com/gogo/protobuf/protobuf
1616

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

@@ -32,11 +32,11 @@ grpc: gogo-grpc
3232

3333
gogo-grpc: clean $(PROTO_OUT)
3434
echo "Compiling for gogo-gRPC..."
35-
$(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;)
35+
$(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;)
3636

3737
gogo-protobuf: clean $(PROTO_OUT)
3838
echo "Compiling for gogo-protobuf..."
39-
$(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;)
39+
$(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;)
4040

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

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

6969
go-protobuf-install:
7070
GO111MODULE=off go get -u github.com/golang/protobuf/protoc-gen-go

common/enum.pb.go

Lines changed: 45 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)