Skip to content

Where should BUILD file formatters/fixers + deprecations fixer live? #17289

Answered by cognifloyd
thejcannon asked this question in Q&A
Discussion options

You must be logged in to vote

#17289 (reply in thread)

@kaos had a very good point about making the backend more descriptive. So, I vote:

  • Keep build file formatters at pants.backends.build_files.fmt.<tool>
  • Plan on adding pants.toml specific fixers in something like pants.backends.pants_config.fix.<tool>

I think pants_config is generic enough to include fixers that touch both pants.toml and BUILD files (eg remove a deprecated option from pants.toml and update the affected targets at once).

The BUILD formatters, however will always be specific to BUILD files, so it's helpful to call that out in the backend name, so I think those should still stay under pants.backends.build_files even after we add fixers under pants.ba…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
7 replies
@thejcannon
Comment options

thejcannon Oct 20, 2022
Maintainer Author

@Eric-Arellano
Comment options

@thejcannon
Comment options

thejcannon Oct 20, 2022
Maintainer Author

@Eric-Arellano
Comment options

@kaos
Comment options

kaos Oct 20, 2022
Collaborator

Comment options

You must be logged in to vote
2 replies
@Eric-Arellano
Comment options

@thejcannon
Comment options

thejcannon Oct 21, 2022
Maintainer Author

Answer selected by cczona
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants