What are my options for dealing with targets that ...
# general
h
What are my options for dealing with targets that create files that I’d like to be available outside of the sandbox? Is disabling
run_goal_use_sandbox
my only option or is there an output functionality I’m missing?
a
Is your use-case calling
pants run
on a script that outputs a file? If you pass a parameter to the script that is an absolute path to the output location it can use it to output it anywhere, even if the script itself runs in a sandbox
h
Yep that is the case. I thought that might be possible, but the docs don’t cover it in much detail. Thanks!
Do you know if
<buildroot>
is stored somewhere that would make this easy to reference inside a
pants run
process?
a
maybe you can pass it as an ENV variable to the run goal?
h
Ah can just use PWD or PANTS_BUILDROOT_OVERRIDE