-
Notifications
You must be signed in to change notification settings - Fork 809
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
Fields are out of order #42
Comments
I must have missed it. Do you know what golang/protobuf does? |
so, it's not "MUST", just a should, but it shouldn't be too hard. Golang/Protobuf does serialize in tag order https://github.com/golang/protobuf/blob/master/proto/encode.go#L1177 |
Awesome thank you for reporting. |
I have made a fix on the proto3 branch |
I believe this is fixed. |
The generated marshalling code is building messages out of order. While still usable, this doesn't conform to spec.
Issue is most likely at https://github.com/gogo/protobuf/blob/master/plugin/marshalto/marshalto.go#L319, and
message.Field
just needs to be sorted by tag numberThe text was updated successfully, but these errors were encountered: