Skip to content
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

Use ProtoSize() in MarshalTo when enabled #618

Merged
merged 1 commit into from
Sep 4, 2019
Merged

Use ProtoSize() in MarshalTo when enabled #618

merged 1 commit into from
Sep 4, 2019

Conversation

gaffneyc
Copy link
Contributor

@gaffneyc gaffneyc commented Sep 4, 2019

When generating MarshalTo it was not checking the ProtoSizer option. I've based this off of the other places that the option is used.

Fixes #617

@jmarais
Copy link
Contributor

jmarais commented Sep 4, 2019

Thanks for the fix. I think you just need to call make in the project root to regenerate all the proto files in the project and then travis will pass.

@gaffneyc
Copy link
Contributor Author

gaffneyc commented Sep 4, 2019

Thanks, I've regenerated them and just force pushed the changes.

@jmarais jmarais merged commit 23325ce into gogo:master Sep 4, 2019
@gaffneyc gaffneyc deleted the issue617 branch September 4, 2019 21:23
timpalpant pushed a commit to timpalpant/protobuf that referenced this pull request Oct 6, 2019
Fixes gogo#617
Adds test which generates a marshalTo for a oneof message. This will fail to compile if the wrong size method is generated in the marshalTo method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MarshalTo does not check ProtoSizer option in 1.3.0
2 participants