Skip to content

Add opt-in flag for buf generate to delete out dir #2437

@weeco

Description

@weeco

When running buf generate I usually run rm -rf before, so that deleted proto code will not be forever stale in your output directory. When using buf's workspaces and having multiple modules it would be nice if you can rely on buf deleting these output directories, as the buf cli is already aware of the output directories.

Since this may not be the desired behaviour for everyone I'm proposing to make an opt-in flag/config for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions