feat: allow source patches to be placed in user-defined output groups#46
Conversation
alexeagle
left a comment
There was a problem hiding this comment.
Sorry for delay!
Yes, my initial thinking was the simplest answer is for the .gitattributes file to indicate generated files, and the default setting most users would want is "generated code is always replaced without review".
Perhaps that solves the 80% case but it does make sense to me to have a simple way for users to define other semantics.
Deriving from I'll change |
c494eb3 to
ea92bfb
Compare
I don't think it's enough to put patches for source files into a single output group. In a build graph there may be different categories of patches and how they're dealt with. For example, you might want patches for a vendored bundle to be automatically applied on CI, but for a snapshot test you would want someone to carefully review the diff before committing.
This adds a mechanism to differentiate those categories via custom output groups. I don't think diff.bzl should go as far as defining what those categories are, so this seems like the appropriate level for customization.