Skip to content

fix MutateProto for dynamic proto messages with int32 and uint32 fields#21

Open
robnteligen wants to merge 1 commit intoyandex-cloud:masterfrom
robnteligen:dynamic-int32
Open

fix MutateProto for dynamic proto messages with int32 and uint32 fields#21
robnteligen wants to merge 1 commit intoyandex-cloud:masterfrom
robnteligen:dynamic-int32

Conversation

@robnteligen
Copy link

Fixes a bug when using Mutator.MutateProto() on proto objects of type dynamicpb.Message.

Two tests have been provided to showcase the bug, which results in a panic without the changes to mutator.go. E.g.

--- FAIL: Test_mutator_MutateDynamicProtoWithInt32 (0.00s)
panic: proto: testdata.Int32Message.value1: assigning invalid type int64 [recovered, repanicked]

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.

1 participant