openapi2proto icon indicating copy to clipboard operation
openapi2proto copied to clipboard

Add command option to allow passing Go package option.

Open jasonfriedland opened this issue 4 years ago • 1 comments

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.

jasonfriedland avatar Nov 12 '20 04:11 jasonfriedland

this will be really nice to have...

dreisel avatar Jun 06 '24 16:06 dreisel