cmd/go: add support for "contains:" patterns to go list #26718
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
cc @rsc @bcmills @suzmue @ianthehat
go/packages.Load
allows users to supply contains: as a pattern argument. All other patterns supplied toLoad
are accepted bygo list
and it would be helpful if contains: could be also. That would allowgo/packages.Load
to always make a singlego list
call.go list contains: would list the packages containing the given file. This is an operation that tools commonly need, and have approximated in the past by determining the directory of the package.
The text was updated successfully, but these errors were encountered: