https://pantsbuild.org/ logo
#general
Title
# general
p

purple-plastic-57801

05/16/2023, 3:13 PM
Let's say I have a
run_shell_command
"foo". Is there anyway I can say that foo must run before bar? Or do I need to use shell_command with outputs?
e

enough-analyst-54434

05/16/2023, 3:20 PM
Yeah - you need to chain data dependencies. I'm sure you can make a fake one.
a

ancient-vegetable-10556

05/16/2023, 4:21 PM
@purple-plastic-57801 If you want things to run in the sandbox, you should be using `shell_command`/`adhoc_tool` to chain commands together using
execution_dependencies
If you want to run them outside of the sandbox, you can only run a single target. You could, for instance, write a shell script that executed things in order, and make the
run_shell_command
execute that.
But you probably want to use `shell_command`/`adhoc_tool`.
3 Views