You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes for various reasons a package may fail to resolve in the packagesdriver. When this happens, gopls warns about a BrokenImport.
What did you see happen?
The error indicates that it's not found in GOROOT/GOPATH even though it's likely something else went wrong while looking up the packages.
could not import github.com/bazelbuild/buildtools/build_proto (cannot find package "github.com/bazelbuild/buildtools/build_proto" in GOROOT or GOPATH) compiler BrokenImport
What did you expect to see?
could not import github.com/bazelbuild/buildtools/build_proto (package not provided by external packages driver in ./tools/gopackagesdriver.sh) compiler BrokenImport
The text was updated successfully, but these errors were encountered:
JamyDev
added
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
labels
Jan 5, 2024
Indirectly, the problem is that we serialize and cache diagnostics resulting from type checking, independent of where package information came from (though we do have the 'moduleMode' bit hashed into our cache key).
The simplest thing to do would be to hash GOPACKAGESDRIVER into the cache key, and use it in the error message. Though per this comment, perhaps we should do something more sophisticated. It's a pain to have to thread these type of superficial improvements through our cache key.
gopls version
0.14.1
go env
What did you do?
Sometimes for various reasons a package may fail to resolve in the packagesdriver. When this happens, gopls warns about a
BrokenImport
.What did you see happen?
The error indicates that it's not found in GOROOT/GOPATH even though it's likely something else went wrong while looking up the packages.
What did you expect to see?
Editor and settings
https://github.com/bazelbuild/rules_go/wiki/Editor-setup
Logs
No response
The text was updated successfully, but these errors were encountered: