Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use go_package option if found. #417

Closed
wants to merge 1 commit into from
Closed

Conversation

notbdu
Copy link

@notbdu notbdu commented Jun 19, 2017

Currently, protoc-gen-grpc-gateway does not respect the go_package option for output path.

Check if a go_package option was specified and use that as the base output path.

@tmc
Copy link
Collaborator

tmc commented Sep 14, 2017

Thanks for your contribution! master has a build system fix, can you please rebase this?

@notbdu
Copy link
Author

notbdu commented Sep 14, 2017

Closing this PR in favor of #462.

@notbdu notbdu closed this Sep 14, 2017
gdbelvin added a commit to gdbelvin/keytransparency that referenced this pull request Dec 5, 2017
Force the generated proto file to have a package name of _proto
even though it lives in a folder with a different name. This is
nessecary because all proto packages must end in _proto AND proto
packages for APIs should live in a directory with their version number
eg. "v1".

This change requires an updated protoc-gen-grpc-gateway to respect
the go_package declaration.
grpc-ecosystem/grpc-gateway#417
gdbelvin added a commit to gdbelvin/keytransparency that referenced this pull request Dec 5, 2017
Force the generated proto file to have a package name of _proto
even though it lives in a folder with a different name. This is
nessecary because all proto packages must end in _proto AND proto
packages for APIs should live in a directory with their version number
eg. "v1".

This change requires an updated protoc-gen-grpc-gateway to respect
the go_package declaration.
grpc-ecosystem/grpc-gateway#417
gdbelvin added a commit to google/keytransparency that referenced this pull request Dec 6, 2017
Force the generated proto file to have a package name of _proto
even though it lives in a folder with a different name. This is
nessecary because all proto packages must end in _proto AND proto
packages for APIs should live in a directory with their version number
eg. "v1".

This change requires an updated protoc-gen-grpc-gateway to respect
the go_package declaration.
grpc-ecosystem/grpc-gateway#417
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants