x/tools/gopls: gopls imports
not work for module defined in "go.work"
#52784
Labels
FrozenDueToAge
gopls/workspace
Issues related to support for modules or multi-module workspaces.
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
go env
What did you do?
go.work:
mod/go.mod:
mod/mod.go:
caller/go.mod:
caller/caller.go:
caller
dir, rungopls imports caller.go
What did you expect to see?
Both
fmt
andmod
are imported.What did you see instead?
Only
fmt
is imported, butmod
is not.The text was updated successfully, but these errors were encountered: