panic: New already declared #9
Comments
... and at tip:
|
Does this happen with all packages you're trying to check, or only specific ones? |
Looks like it's only |
I'm wondering if the gcimporter15 packages has several issues. When running a staticcheck that's compiled with tip on the
|
Okay, my issue was fixed by updating golang.org/x/tools/go/gcimporter15. Does the same help with your issue? |
Are you sure? Because I still seem to be able to reproduce it for that particular package |
Still doesn't work. I thought it did, but I was in the wrong directory. I still reproduce it. (sorry for the sneaky edit) |
This seems to be golang/go#15517 |
I'll close this issue. One bug is the one I mentioned earlier. The fix for that hasn't been backported to gcimporter15 yet; I filed an issue for that. Another bug can occur if you have object files in $GOPATH/pkg that were compiled with an older, buggy version of Go tip. That bug manifests itself in an almost identical fashion to this issue. In that case, you'll want to wipe pkg or rebuild your packages respectively. |
Not sure why it's happening, but I just saw this. I'll try to look into it at some point. Posting it here in case someone else can reproduce.
The text was updated successfully, but these errors were encountered: