gifted-lunch-20593
12/20/2024, 2:40 PMpex_binary
automatically brings into a sandbox sources?
shell_command(
name="baz",
command="ls > /tmp/ls",
tools=["ls"],
execution_dependencies=[
":server.pex",
],
)
❯ cat /tmp/ls
__init__.py
core
main.py
server.pex
wide-midnight-78598
12/20/2024, 3:29 PMTheDo you wantfield is passed tocommand
. The execution sandbox will include any files from thebash -c <command>
field. Any executable tools that might be used must be specified in thedependencies
field, in order to be available on thetools
while executing the command.PATH
run_shell_command
?
Unlike, the `run_shell_command` target runs directly in your workspace, without sandboxing.shell_command
gifted-lunch-20593
12/20/2024, 3:43 PMbroad-processor-92400
12/23/2024, 12:46 AM