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

Add command option to allow passing Go package option. #132

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

Conversation

jasonfriedland
Copy link

Compiling a proto definition without a go_package option now generates
the following warning:

2020/11/12 15:09:19 WARNING: Missing 'go_package' option in "pkg/protobuf/api/api.proto",
please specify it with the full Go package path as
a future release of protoc-gen-go will require this be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

This change allows the user to pass -go-pkg and have it used as the
value for option go_package in the generated .proto file.

Tested with protoc version 3.13.0.

Compiling a proto definition without a `go_package` option now generates
the following warning:

    2020/11/12 15:09:19 WARNING: Missing 'go_package' option in "pkg/protobuf/api/api.proto",
    please specify it with the full Go package path as
    a future release of protoc-gen-go will require this be specified.
    See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

This change allows the user to pass `-go-pkg` and have it used as the
value for `option go_package` in the generated .proto file.

Tested with protoc version 3.13.0.
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.

None yet

1 participant