Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Comments

substitute environment variables in config files#572

Open
DoubleDi wants to merge 1 commit intouber:dev from
DoubleDi:dev
Open

substitute environment variables in config files #572
DoubleDi wants to merge 1 commit intouber:dev from
DoubleDi:dev

Conversation

@DoubleDi
Copy link

@DoubleDi DoubleDi commented Jan 29, 2021
edited
Loading

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.

Copy link

CLAassistant commented Jan 29, 2021
edited
Loading

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.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /