Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: add support for "contains:" patterns to go list #26718

Closed
matloob opened this issue Jul 31, 2018 · 2 comments
Closed

cmd/go: add support for "contains:" patterns to go list #26718

matloob opened this issue Jul 31, 2018 · 2 comments
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

Comments

@matloob
Copy link
Contributor

matloob commented Jul 31, 2018

cc @rsc @bcmills @suzmue @ianthehat

go/packages.Load allows users to supply contains: as a pattern argument. All other patterns supplied to Load are accepted by go list and it would be helpful if contains: could be also. That would allow go/packages.Load to always make a single go 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.

@ianlancetaylor ianlancetaylor added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 3, 2018
@ianlancetaylor ianlancetaylor added this to the Go1.12 milestone Aug 3, 2018
@bcmills bcmills modified the milestones: Go1.12, Go1.13 Oct 24, 2018
@bcmills bcmills added the FeatureRequest Issues asking for a new feature that does not need a proposal. label Jan 18, 2019
@andybons andybons modified the milestones: Go1.13, Go1.14 Jul 8, 2019
@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
@seankhliao seankhliao added the GoCommand cmd/go label Feb 22, 2025
@matloob
Copy link
Contributor Author

matloob commented Apr 1, 2025

We don't have plans to work on this.

@matloob matloob closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2025
@matloob
Copy link
Contributor Author

matloob commented Apr 1, 2025

We don't have plans to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

6 participants