Skip to content

cmd/go: add work package pattern matching all packages in work modules #71294

@matloob

Description

@matloob

Proposal Details

I'm making this proposal to resolve #50745

This proposal is to add a new package meta-pattern to join the already existing all, std, cmd, and tool patterns. The work pattern would match all packages in the work (formerly called main) modules: either the single work module in module mode or the set of workspace modules in workspace mode.

This would allow for a single pattern to build or test all of those packages, similar to using ./... at the root of a module to test a single module's packages.

cc @hyangah @rsc @samthanawalla

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Accepted

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions