<#16901 `run` for `experimental_run_shell_command`...
# github-notifications
q
#16901 `run` for `experimental_run_shell_command` does not support passthrough args Issue created by stuhood Because the
Process
composed for a
experimental_run_shell_command
is built with `bash -c`: pants/src/python/pants/backend/shell/shell_command.py Line 226 in </pantsbuild/pants/commit/5a04478e210b88e28c644783866891a82b290c78|5a04478> ...appending additional args to argv (as the run goal does) does not work to pass those arguments to the script. To fix this, the setup for the
Process
should actually create a script file (via
CreateDigest
), and then invoke bash like:
Copy code
bash $script
...which would mean that appending the
run
args would look like:
Copy code
bash $script $args
pantsbuild/pants