-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
staticcheck "couldn't load packages due to errors" but go test/build run fine #169
Comments
Not able to reproduce locally with latest
(I tried What version of Go are you using? |
Sorry I didn't mention that the CI job was for a pull request: golang/dep#1127 |
Ok, I can reproduce with that PR checked out:
Seems like a legitimate problem in |
Current braindump: the bug isn't in staticcheck per se: errcheck has the same issue. The issue is somehow related to the Edit: renaming bridge.go to any name that sorts alphabetically after constraint.go also fixes the issue. Fun times. Edit 2: got it down to 40 lines. Time to debug this. |
This is now golang/go#21804 |
This will be fixed in Go 1.11: golang/go@dd44895 |
Looks like this is fixed in |
This should be fixed now. |
I'm investigating this failing dep build https://travis-ci.org/golang/dep/jobs/272109382
staticcheck
emits a flurry of errors, butgo test
andgo build
execute just fine. I was only able to reproduce locally after ago get -u
. I'm not sure how out of date I was, but I suspect it was a recent change.Here is the output of a local
staticcheck ./internal/gps
https://gist.github.com/jmank88/fc96b870ed2b95654e387fdb0c136503Mostly
cannot use X as Y: missing method Z
Is this a bug/regression?
The text was updated successfully, but these errors were encountered: