-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Using FieldOptions in both Go and C++ #97
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
Comments
The Go code generator doesn't treat any import paths as particularly special (that might change as part of #50), so the The |
Sorry to ask after closing, but how does the M parameter work? |
You can include "M" in your --go_out flag in the following form:
So if you want to rewrite descriptor.proto (as per my original question), that would look like:
You can also include multiple "M" arguments as a comma separated list. |
Where can I read more about this "M" option? |
I have a *.proto file which uses FieldOptions.
I wish to use this protocol buffer from both C++ and go.
However, protoc-gen-go generates the following import path in the *.pb.go file:
However, in the go protobuf implementation descriptor.pb.go lives at a different path location. It seems to me that possibly protoc-gen-go should be special cased to write the import as:
Does this seem like reasonable behavior for descriptor.proto imports? If so, I will send a patch set. If not, I can easily work around this in our build layer.
The text was updated successfully, but these errors were encountered: