wide-midnight-78598
05/09/2024, 2:09 AMmigrate style goal for plugin code (or pants code)? We have something for updating build files, but is that basically it?wide-midnight-78598
05/09/2024, 2:09 AMbroad-processor-92400
05/09/2024, 2:50 AMpants peek to ensure it lists all built-in goals: https://www.pantsbuild.org/2.20/reference/goalswide-midnight-78598
05/09/2024, 4:00 AMfast-nail-55400
05/09/2024, 3:25 PMfast-nail-55400
05/09/2024, 3:26 PMfix goal?wide-midnight-78598
05/09/2024, 3:29 PMpyupgrade which runs as a fixer. I hadn't really thought about where it would fit into the ecosystem, as this is just a proof of concept for my plugins repo
https://github.com/sureshjoshi/pants-plugins/blob/6ac20eec2065691932ec97e312b14c587926001b/pants-plugins/experimental/migrate/rules.py#L18-L49
We have the big call_by_name_migrate builtin goal, we have update-build-files goal which handles deprecations, etc. So, consolidation would be nice, but yeah, not there yet anyways.wide-midnight-78598
05/12/2024, 8:29 PM"pants.backend.plugin_development" backend?
As in, the act of having that backend enabled unlocks all the migration functionality anyways (regardless of what goal we use to actually run that functionality).
So like, maybe if that backend is enabled, it'll occasionally do a deprecation check (which happens anyways), and then says "hey, you should run fix on those in-repo deprecations" or something.
I had a slightly more robust idea which was to enable a plugin goal to add some super basic CLI add-ons to make life about 10% easier for in-repo plugin developers (pants plugin init, pants plugin migrate ... kinda thing)wide-midnight-78598
05/12/2024, 8:32 PMfast-nail-55400
05/12/2024, 9:07 PM