Skip to content

proposal: cmd/go: generate add flag to fail fast #57118

@tzachshabtay

Description

@tzachshabtay

In our project we run go generate ./... on a big code-base, if there's an error go generate skips the package and carries on, only returning an error code at the end. This makes it hard to scroll through the mountain of logs to find the actual error.

It would be great if we had a fail fast flag, i.e something like go generate --fail-fast ./... that would stop on the first error it sees, to make it clear where the error is coming from (and also to save time).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions