[#176] Makefile: use protoc-gen-go-grpc in protoc target

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/master
Leonard Lyubich 2021-09-28 18:10:48 +03:00 committed by Alex Vanin
parent d71ba40b78
commit 3c5c589e63
1 changed files with 4 additions and 2 deletions

View File

@ -46,8 +46,10 @@ protoc:
@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:/usr/local/include \
--go_out=plugins=grpc,paths=source_relative:. $$f; \
--proto_path=.:./vendor:/usr/local/include \
--go_out=. --go_opt=paths=source_relative \
--go-grpc_opt=require_unimplemented_servers=false \
--go-grpc_out=. --go-grpc_opt=paths=source_relative $$f; \
done
rm -rf vendor