Merge pull request #9109 from benbuzbee/gopath-proto

Use GOPATH/src explicitly in proto build target
This commit is contained in:
Mahmood Ali 2020-10-18 18:21:31 -05:00 committed by GitHub
commit 1f215e47d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,7 +244,7 @@ generate-structs: ## Update generated code
proto:
@echo "--> Generating proto bindings..."
@for file in $$(git ls-files "*.proto" | grep -E -v -- "vendor\/.*.proto|demo\/.*.proto"); do \
protoc -I . -I ../../.. --go_out=plugins=grpc:. $$file; \
protoc -I . -I $(shell go env GOPATH)/src --go_out=plugins=grpc:. $$file; \
done
.PHONY: generate-examples