https://pantsbuild.org/ logo
#development
Title
# development
b

bitter-ability-32190

12/06/2022, 2:27 PM
What's the diference between
rule_runner.run_interactive_process
with
run_in_workspace=True
and running the
InteractiveProcess
for real? I'm seeing that in my process invocation (python): ā€¢
os.getcwd()
->
/tmp/pants-sandbox-PvheiB
ā€¢ build root ->
/tmp/_BUILD_ROOTqo_y5av8
I would've expected the code to run in the build root? EDIT: Or put another way, how can I have the CWD be the build root?
Oh is the "workspace" here the CWD of the test sandbox?!
Ah yup. Thats it. How can I make sure the CWD is the build root? šŸ˜­
h

hundreds-father-404

12/06/2022, 3:50 PM
how would you run the process "for real"?
b

bitter-ability-32190

12/06/2022, 3:51 PM
run_goal
. But I think I nailed down the issue to the "run in the test sandbox CWD" vs "run in the rule runner build root"
šŸ‘ 1
Just dunno the right way for rule runner ot be running in the build root. Maybe
run_interactive_process
should hotpatch
cwd
?
Yeah that solves it. Gonna make a little PR. Lol I'm 3 PRs deep