Skip to content

*: use proto.Unmarshal#18455

Merged
petermattis merged 1 commit intocockroachdb:masterfrom
petermattis:pmattis/proto-unmarshal
Sep 12, 2017
Merged

*: use proto.Unmarshal#18455
petermattis merged 1 commit intocockroachdb:masterfrom
petermattis:pmattis/proto-unmarshal

Conversation

@petermattis
Copy link
Copy Markdown
Collaborator

<proto>.Unmarshal has surprising behavior in that it merges with the
existing data in the structure instead of over-writing it.

Add TestProtoUnmarshal linter.

Fixes #18407

@petermattis petermattis requested a review from a team September 12, 2017 17:36
@petermattis petermattis requested a review from a team as a code owner September 12, 2017 17:36
@petermattis petermattis requested review from a team September 12, 2017 17:36
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@petermattis petermattis requested a review from tbg September 12, 2017 17:36
@tbg
Copy link
Copy Markdown
Member

tbg commented Sep 12, 2017

LGTM. Time to name all my variables somethingjson so I can still call .Unmarshal :trollface:

@petermattis petermattis force-pushed the pmattis/proto-unmarshal branch from 1c68abb to 7c8ea34 Compare September 12, 2017 18:23
`<proto>.Unmarshal` has surprising behavior in that it merges with the
existing data in the structure instead of over-writing it.

Add `TestProtoUnmarshal` linter.

Fixes cockroachdb#18407
@petermattis petermattis force-pushed the pmattis/proto-unmarshal branch from 7c8ea34 to 499bba5 Compare September 12, 2017 18:56
@petermattis petermattis merged commit 7662ce7 into cockroachdb:master Sep 12, 2017
@petermattis petermattis deleted the pmattis/proto-unmarshal branch September 12, 2017 19:54
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.

4 participants