From 9050d410997d02bf2bfbe480bc61f1953682d13f Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Fri, 15 Jan 2021 09:22:56 +0300 Subject: [PATCH] [#311] Rewrite make protoc target similarly to neofs-api-go Signed-off-by: Leonard Lyubich --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7617bc68ba..fd94c8000e 100644 --- a/Makefile +++ b/Makefile @@ -58,16 +58,14 @@ test_dep: # Regenerate proto files: protoc: @GOPRIVATE=github.com/nspcc-dev go mod vendor - # Install specific version for gogo-proto - @go list -f '{{.Path}}/...@{{.Version}}' -m github.com/gogo/protobuf | xargs go get -v # Install specific version for protobuf lib @go list -f '{{.Path}}/...@{{.Version}}' -m github.com/golang/protobuf | xargs go get -v # Protoc generate @for f in `find . -type f -name '*.proto' -not -path './vendor/*'`; do \ echo "⇒ Processing $$f "; \ protoc \ - --proto_path=.:./vendor:./vendor/github.com/nspcc-dev/neofs-api-go:/usr/local/include:./pkg/services/control \ - --gofast_out=plugins=grpc,paths=source_relative:. $$f; \ + --proto_path=.:./vendor:/usr/local/include \ + --go_out=plugins=grpc,paths=source_relative:. $$f; \ done rm -rf vendor