bitter-ability-32190
09/23/2022, 6:23 PMargs
options to tools which don't take argv _today_"
Pros of adding it:
⢠Future-proof. The user who is using Pants today can upgrade the version of the tool to one that does take argv
, and can now pass args
⦠Otherwise the user would have to either fork the support in-repo, or upstream the change and wait and upgrade Pants š
⢠Consistency across all tool subsystems. They all have args
option
Cons of adding it:
⢠Funky UI for users of versions that don't take an argv. They try and pass something and the tool goes boombitter-ability-32190
09/23/2022, 6:24 PMhundreds-father-404
09/23/2022, 6:26 PMbitter-ability-32190
09/23/2022, 6:42 PMbitter-ability-32190
09/23/2022, 6:43 PMfast-nail-55400
09/24/2022, 4:33 AMfast-nail-55400
09/24/2022, 4:34 AMfast-nail-55400
09/24/2022, 4:35 AMfast-nail-55400
09/24/2022, 4:35 AMfast-nail-55400
09/24/2022, 4:36 AMfast-nail-55400
09/24/2022, 4:36 AMfast-nail-55400
09/24/2022, 4:37 AM.scalafmt.conf
files and not command-line parametersfast-nail-55400
09/24/2022, 4:38 AMargs
in that case for scalafmt pluginfast-nail-55400
09/24/2022, 4:39 AMThe user who is using Pants today can upgrade the version of the tool to one that does take, and can now pass argsargv
args
are only necessary if the user can actually take advantage of them. If there is a future version of the tool that could make use of them, I submit that then and only then should Pants be updated to add that option. Moreover, the Pants rule for the tool would need to check the version and error if args were passed when an older version of the tool was configured. Thus, the Pants rule would need to be aware of versioning in any case.hundreds-father-404
09/26/2022, 2:02 PMI submit that then and only then should Pants be updated to add that option.Strong +1. And if users aren't willing to wait for a new Pants version, they can use an in-repo plugin. In the future, maybe we do your proposal to decouple backends from core Pants versions also