experimental_run_shell_command
Run a script in the workspace, with all dependencies packaged/copied into a chroot.
Example BUILD file:
experimental_run_shell_command(
command="./scripts/my-script.sh --data-files-dir={chroot}",
dependencies=["src/project/files:data"],
)
The command
may use either {chroot}
on the command line, or the $CHROOT
environment variable to get the root directory for where any dependencies are located.
In contrast to the experimental_shell_command
, in addition to workdir
you only have the command
and dependencies
fields as the tools
you are going to use are already on the PATH which is inherited from the Pants environment. Also, the outputs
does not apply, as any output files produced will end up directly in your project tree.
Backend: pants.backend.shell