Skip to content

cmd/go: decouple cmd/cover action from build action for "go {build,test} -cover" #60006

@thanm

Description

@thanm

This is a feature request issue to track an idea for speeding up "go test -cover" and "go build -cover" slightly in the case where we're building multiple packages.

Currently the "go tool cover" invocation for a given package is lumped into the build action, e.g. the single action invokes first "go tool cover" and then "go tool compile". It might be more efficient to break out the "go tool cover" invocation into its own separate action, then make the build action dependent on that action.

The advantage here is that the "cover" action doesn't have to wait on any of the build action's dependencies (the compiler needs the deps, but the cover tool does not). This would result in increased parallelism in the build and would help speed things up somewhat (subject to constraints on number of packages, number of processors, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.GoCommandcmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolSpeed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions