https://pantsbuild.org/ logo
b

bitter-ability-32190

08/23/2022, 8:42 PM
Since
./pants run my_file.py
now runs the script in your workspace, should we elide add support for
./pants run my_script.sh
?
s

sparse-lifeguard-95737

08/23/2022, 8:45 PM
I would say no -
experimental_run_shell_command
can also be used to run shell scripts and arbitrary CLI tools from the PATH (and maybe go binaries? not sure what the integration looks like there)
oh wait I misread the extension at the end of your question (thought it was
.py
and not
.sh
) 🤔
b

bitter-ability-32190

08/23/2022, 8:46 PM
Oh huh I didn't notice the
command
field. So this would be complimentary
(changed the question)
👍 1
h

hundreds-father-404

08/23/2022, 9:07 PM
yeah I think running an arbitrary
.sh
script makes a ton of sense. And note that the shell backend currently doesn't hook up into
run
at all, so it's free to add without breaking semantics
2 Views