prototool icon indicating copy to clipboard operation
prototool copied to clipboard

substitute environment variables in config files

Open DoubleDi opened this issue 5 years ago • 1 comments

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.

DoubleDi avatar Jan 29 '21 19:01 DoubleDi

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 29 '21 19:01 CLAassistant