prototool
prototool copied to clipboard
substitute environment variables in config files
Hi! This PR fixes #529 #498.
The current protoc shell cmd:
protoc -I=. -I${GOPATH}/src -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=plugins=grpc:../pkg/server --grpc-gateway_out=logtostderr=true:../pkg/server --openapiv2_out=. server.proto
The analog prototool.yml:
protoc:
version: 3.11.0
includes:
- ".."
- ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
- ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway
...
There is also a way to vendor the deps using go mod vendor. But unfortunately the .proto imported files do not get vendored.