curved-television-6568
02/12/2022, 7:40 PMshell_command
in a pants.backend.experimental.shell
backend rather than a experimental_shell_command
in pants.backend.shell
… ?hundreds-father-404
02/12/2022, 7:40 PMhundreds-father-404
02/12/2022, 7:41 PMcurved-television-6568
02/12/2022, 7:42 PMcurved-television-6568
02/12/2022, 8:05 PMupdate-build-files
won’t be able to add the new pants.backend.experimental.shell
backend to pants.toml
though…curved-television-6568
02/12/2022, 8:12 PMWARNING pants.base.deprecated:deprecated.py:159 DEPRECATED: the target name experimental_shell_command will be removed in version 2.12.0.dev0.
Instead, use `shell_command`, which behaves the same. Run `./pants update-build-files` to automatically fix your BUILD files.
It would be good to also mention that the target has been relocated to a new backend.
Hmm… or that’s a different thing…fast-nail-55400
02/12/2022, 8:32 PMfast-nail-55400
02/12/2022, 8:33 PMcurved-television-6568
02/12/2022, 8:35 PM@deprecated
to also work for classes, so I can deprecated the target class from one of the backends.curved-television-6568
02/13/2022, 6:47 PMso I can deprecated the target class from one of the backends.Just realised this won’t work, as the target aliases is the same in both backends, so there’s no real telling them apart for the deprecation notice.
hundreds-father-404
02/14/2022, 3:30 PMTarget
mechanism for renaming the target, so that update-build-files
works. Then you'll want to add something like a check inside the rule for evaluating experimental_shell_command that the experimental backend is in global_options.backend_packages
curved-television-6568
02/14/2022, 4:29 PMcurved-television-6568
02/14/2022, 4:30 PMhundreds-father-404
02/14/2022, 4:35 PM_MaybeWarnBackendNotActivated
so that we memoize the warning