use gogo/protobuf

This commit is contained in:
Ethan Buchman
2017-11-30 14:47:09 -05:00
parent 42a8e3240c
commit 308cb8e454
3 changed files with 101 additions and 104 deletions
+3 -3
View File
@@ -2,7 +2,8 @@ GOTOOLS = \
github.com/mitchellh/gox \
github.com/Masterminds/glide \
github.com/alecthomas/gometalinter \
github.com/ckaznocha/protoc-gen-lint
github.com/ckaznocha/protoc-gen-lint \
github.com/gogo/protobuf/protoc-gen-gogo
all: install test
@@ -17,13 +18,12 @@ install_protoc:
make install && \
cd .. && \
rm -rf protobuf-3.4.1
go get github.com/golang/protobuf/protoc-gen-go
protoc:
## On "error while loading shared libraries: libprotobuf.so.14: cannot open shared object file: No such file or directory"
## ldconfig (may require sudo)
## https://stackoverflow.com/a/25518702
protoc --go_out=plugins=grpc:. types/*.proto
protoc --gogo_out=plugins=grpc:. types/*.proto
install:
@ go install ./cmd/...