x/tools/gopls: source.organizeImports offers filepath instead of package path #46630
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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.
Note this only happens using go
tip
(version above).What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Ran
source.organizeImports
to resolveuseless.Name
in the presence of a module cache which contains the following:What did you expect to see?
The saved file reflect the contents of
main.go.golden
What did you see instead?
The following diff:
cc @stamblerre @heschi
FYI @leitzler
The text was updated successfully, but these errors were encountered: