-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Proto3 repeated field not packed by default #197
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 bugs seems points to protobuf/protoc-gen-go/generator/generator.go Line 1554 in 545732f
As Proto3 specified, repeated fields of scalar numeric types use packed encoding by default. We should add some check here. ** This is an urgent bug because the official Protobuf Javascript implementation doesn't read tag to detect binary is packed or not. ** |
Thanks for your comment. Yeah, I've also submitted an issue regarding the JavaScript parser which was labelled as a bug. |
Message definitions
proto3_test.proto
:Compiled via:
Result
proto3_test.pb.go
:The repeated field with default
packed
setting compiles to a non-packed field although it should be packed by default.The text was updated successfully, but these errors were encountered: