Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: go1.7 not finding ExampleT_M identifiers #16189
go version go1.7beta2 linux/amd64
In https://github.com/google/go-github we have Travis builds on Go versions
You can reproduce the error by typing:
$ go get github.com/google/go-github $ cd $GOPATH/src/github.com/google/go-github $ go tool vet -v .
See above. Note that type
We are tracking this issue here if you would like to comment:
The naming convention to declare examples for a package has not changed in 1.7, as can be confirmed here:
So this indeed appears to be a bug/regression, rather than a valid change in behavior.
(Either that, or the documentation/specification was not updated to match new vet behavior.)
I have submitted CL 24487 that fixes the bug. Note however that you have to run
While looking into this bug I also discovered that the test for this use case (examples in _test package) seems to be wrong however it is not easy to fix because: