buf icon indicating copy to clipboard operation
buf copied to clipboard

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

Open weeco opened this issue 2 years ago • 1 comments

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.

weeco avatar Sep 13 '23 12:09 weeco

Yea we should definitely do this. This annoys me too.

bufdev avatar Jun 13 '24 21:06 bufdev

This has been implemented in #3124 and will go out in the next release. Feel free to watch this repository to get updates on when the release goes out!

bufdev avatar Jul 04 '24 18:07 bufdev