-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/vet: panics with inconsistent import #16112
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
Comments
Bisected to CL 22123, so cc @griesemer I guess. |
I can't recreate the problem. I don't see any warnings or panics from vet. Does it get fixed if you run |
It's weird. It's not happening in my local machine either. I still keep the same go version. Guess my machine had cached something in tmp directory that might have caused this. Please feel free to close it. When I can reliably reproduce, I will revisit this issue. Thanks! |
OK. Thanks! |
I think I found a strange edge case for
go vet
.Here are my file structure:
And I just ran
go vet *.go
in~/go/src/github.com/gyuho/aaa
It shouldn't panic.
Could anyone take a look? Or am I doing something wrong?
It's weird. If I put all the code in one file (without 2.go) in top
aaa
package, I don't see this panic.Thanks!
The text was updated successfully, but these errors were encountered: