green-match-66337
05/23/2022, 10:33 PMwitty-crayon-22786
05/23/2022, 11:09 PMexperimental_shell_command
: https://www.pantsbuild.org/docs/run-shell-commands … but note that the process will run in a sandbox.green-match-66337
05/23/2022, 11:16 PMwitty-crayon-22786
05/23/2022, 11:18 PMexperimental_shell_command
to consume a pex_binary
and manipulate it.pex_binary(name='a', ..)
experimental_shell_command(name='b', dependencies=['a'], ..)
archive(name='c', dependencies=['b'], ..)
…would allow you to create an archive after manipulating a PEX. but feeding a PEX through a script like this loses type information: it’s no longer a PEX from Pants’ perspectivevenv
execution_mode, latency should be within 50 ms of an existing venv after the first rungreen-match-66337
05/23/2022, 11:25 PMwitty-crayon-22786
05/23/2022, 11:26 PMexperimental_shell_command
should be roughly equivalent to genrule
green-match-66337
05/23/2022, 11:39 PMhappy-kitchen-89482
05/24/2022, 5:39 AMgreen-match-66337
05/24/2022, 5:39 AMhappy-kitchen-89482
05/24/2022, 1:32 PM