cmd/go: make 'cmd/internal/load' public #25998
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
For a piece of build-related tooling, I recently had call to list the
main
packages within a source tree.I was disappointed to discover that
go list
uses an internal package to perform this task, and therefore the code to list Packages isn't available for use outside ofgo
itself.I'd like to propose that at least a public-facing interface over
cmd/internal/load
be made available, since listing packages is a fundamental operation to development related tooling. The consequence of the
load
package not being available that eithergo list
which means that that interface must be made safe for machine use (and also that errors in that task will only be discovered at runtime.)The text was updated successfully, but these errors were encountered: