Skip to content

cmd/go: generate: be more informative/verbose #67471

@adonovan

Description

@adonovan

Running go generate ./... can take a while in a large project, but it is not easy to know why. It doesn't print a summary of what commands it ran, and neither -x nor -v lead to intelligible output. It would be nice if -v would print additional logging of the start and end time of each command, along with the location of the directive that triggered it, in a format such as this:

internal/protocol/command/interface.go:5: go run -tags=generate generate.go [start] 
...logs...
internal/protocol/command/interface.go:5: go run -tags=generate generate.go [success, 1.23s] 

@matloob

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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions