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

proto: fix govet failures in Go 1.10 #505

Merged
merged 1 commit into from
Feb 1, 2018
Merged

proto: fix govet failures in Go 1.10 #505

merged 1 commit into from
Feb 1, 2018

Conversation

paranoiacblack
Copy link
Contributor

In Go 1.10, go test automatically runs go vet as well. This
uncovered a vet failure in TestUnmarshalRepeatingNonRepeatedExtension
where pb.ComplexExtension is passed as a fmt.Stringer to t.Errorf.
The string method exists only on the pointer-receiver type,
*pb.ComplexExtension.

In Go 1.10, `go test` automatically runs `go vet` as well.  This
uncovered a vet failure in `TestUnmarshalRepeatingNonRepeatedExtension`
where `pb.ComplexExtension` is passed as a `fmt.Stringer` to `t.Errorf`.
The string method exists only on the pointer-receiver type,
`*pb.ComplexExtension`.
@paranoiacblack paranoiacblack requested review from neild and dsnet February 1, 2018 23:23
@dsnet dsnet merged commit 97a81c9 into golang:dev Feb 1, 2018
@golang golang locked and limited conversation to collaborators Jun 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants