Skip to content

go/build: add the ability to list packages #10495

@josharian

Description

@josharian

This arose in the context of CL 9001, which @mdempsky wrote:

Lastly, an alternative approach I was considering was looking into moving cmd/go's package list resolving into go/build (or an internal helper package). Then cmd/api and deps_test.go could simply do something like ctxt.List("std") without needing to run cmd/go.

I have wanted this myself. I have a couple of (private) tools that shell out to go list std to get a listing of the stdlib's packages. It'd be nice not to have to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions