-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
proto: MarshalText fails and prints to stderr #36
Comments
reflect.DeepEqual doesn't work with protos. You need to use proto.Equal. I'll make the extension failure return an error instead of printing. I don't know why you're getting an EOF there. That's weird. |
But still non-empty extension can't be equal to nil.
You can run the test locally to debug. |
aece6fb updates the text formatter to return an error instead of printing. |
Closing as duplicate of #667, which is to investigate all usages of |
#667 does not cover the main part of this "Part of the message gets lost". |
Are you referring to the fact that round-trip Marshal/Unmarshal produces different results? The proto text format does not have the property of full round-trip stability in the presence of unknown fields. This is not specific Go. |
The following program fails:
There are 2 issues here:
Definition of the protobuf is:
on commit 34a5f24
The text was updated successfully, but these errors were encountered: