Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

substitute environment variables in config files #572

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

DoubleDi
Copy link

@DoubleDi DoubleDi commented Jan 29, 2021

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.

@CLAassistant
Copy link

CLAassistant commented Jan 29, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants