cmd/vet: "cannot import, possibly version skew" regression #25596
Comments
(I am able to reproduce the vet error on darwin/amd64) |
From a cursory glance, this looks to be because |
Change https://golang.org/cl/115155 mentions this issue: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?Tested using
and
Does this issue reproduce with the latest release?
go1.10.2 and earlier releases do not fail the
go vet
check.What operating system and processor architecture are you using (
go env
)?Tested on:
What did you do?
A recent change on master has caused
go vet
to report an error (..."cannot import, possibly version skew"...) on code that previously passed with go1.10.2, and go-devel versions until recently.Multiple packages seem to be required - at least in the example I distilled:
Create $GOPATH/src/issue/a/a.go:
Create $GOPATH/src/issue/b/b.go:
Then run:
What did you expect to see?
go vet
should not report any errors.What did you see instead?
go vet
reports:Additional information
Bisecting the go project commits since this last passed with go-devel, indicates that the regression appeared with commit c730a93
The text was updated successfully, but these errors were encountered: