-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go, x/tools/gopls: misleading errors for invalid import #59433
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
Oh, this appears to simply be a Note that after removing the tag package, the CC @adonovan @matloob @bcmills I have not yet reproduced this with
|
Actually, this is a Go command bug. Compare the two
vs.
|
Moving this to the backlog, since it's a Go command bug and therefore not particularly actionable for gopls. |
Just noticed this while refactoring import paths:
In this case, I'm in the process of moving the 'tag' package, and the old location no longer exists. I believe the error message is due to the logic here: https://cs.opensource.google/go/x/tools/+/master:internal/gcimporter/iimport.go;l=218;drc=fa556487c5c2be818dd2bab43e16f1afa06f8f89
The problem is that we're now importing packages with broken metadata, and invalid imports appear to have package path "".
The text was updated successfully, but these errors were encountered: