-
Notifications
You must be signed in to change notification settings - Fork 807
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
change to SupportPackageIsVersion3 for gRPC #185
Comments
+1. |
+1 |
i created #187 to fix this issue. |
Sorry for the delay |
The file index concept in golang/protobuf to avoid variable name conflicts is fundamentally flawed. gogoprotobuf rather uses the filename as a suffix to its generated variables to avoid many more conflicts. For example: Running these two in the same folder protoc --gogo_out=. a.proto will produce two variables with the same index value (0) and thus same name in the same package which will result in a go compiler error. So whether to merge this is an interesting question. Clearly they incremented the version number because they added a populated field which changes the API semantics. So this needs to be taken seriously. |
@tamird can you remember where we or someone logged this issue? I want to link it again. |
Ok so it just links to the generated fileDescriptor. This should be easy to merge. |
Done 55bbb6b |
@tamird please ignore my question. |
Thanks a lot! |
To fix build error with gRPC, having SupportPackageIsVersion3 instead of 2, regenerate protobuf. See also gogo/protobuf#185.
Could we change https://github.com/gogo/protobuf/blob/master/plugin/grpc/grpc.go#L51 to version 3?
Now it's
SupportPackageIsVersion3
in gRPC.Related:
Please feel free to close this if I am asking the wrong question.
Thanks!
The text was updated successfully, but these errors were encountered: