x/tools/gopls: automatic imports sometimes pick non-optimal modules #60663
Labels
gopls/imports
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
oidc.ScopeOpenID
constantWhat did you expect to see?
Package "github.com/coreos/v3/go-oidc/oidc" imported by gopls
What did you see instead?
Package "github.com/coreos/go-oidc" imported by gopls
I would have expected the already-imported package to be used, instead gopls seems to pick any package that it might find suitable.
/cc @adonovan
The text was updated successfully, but these errors were encountered: