x/tools/go/packages: support ad-hoc packages #32587
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
gopls
users have been reporting a common issue -gopls
fails outside of$GOPATH
without ago.mod
file. This is to be expected, becausego/packages
does not support thefile=
query on ad-hoc packages. Ideally,go list
would support thefile=
query, eliminating the need forgo/packages
to implement this support. In the meantime,go/packages
should add support for ad-hoc packages./cc @matloob
The text was updated successfully, but these errors were encountered: