Where should BUILD file formatters/fixers + deprecations fixer live? #17289
-
Currently we have However we're adding the deprecations fixers, which today operate solely on Which begs the question, where do opt-in metadata-y things belong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
My vote is |
Beta Was this translation helpful? Give feedback.
-
@kaos had a very good point about making the backend more descriptive. So, I vote:
I think The |
Beta Was this translation helpful? Give feedback.
#17289 (reply in thread)
@kaos had a very good point about making the backend more descriptive. So, I vote:
pants.backends.build_files.fmt.<tool>
pants.backends.pants_config.fix.<tool>
I think
pants_config
is generic enough to include fixers that touch bothpants.toml
andBUILD
files (eg remove a deprecated option from pants.toml and update the affected targets at once).The
BUILD
formatters, however will always be specific toBUILD
files, so it's helpful to call that out in the backend name, so I think those should still stay underpants.backends.build_files
even after we add fixers underpants.ba…