happy-kitchen-8948207/13/2021, 1:16 AM
goal running existing
files in the repo. But there is an issue with the cwd:
is currently set up to run with the cwd as the sandbox root. But handwritten
files are usually authored under the assumption that the
is wherever the
is. This affects what relpaths in
are relative to, for example.
It seems like the right thing to do is to set
on the underlying
is. I've tried this, but unfortunately the
shim script machinery doesn't like it.
We could strip the relevant prefix so that
ends up in the root, under the reasonable assumption that everything it references is under it in the repo. However this causes issues with capturing the output of running
which writes in unpredictable locations under the cwd. So we'd have to capture the entire sandbox as output (this currently fails, due to absolute symlinks in the pex cache dir, but we could fix that I imagine).
Any thoughts on which is the right way to go? Could the Pex/VenvPex machinery be easily made to support running from a cwd other than the root, or is that just asking for trouble?
enough-analyst-5443407/13/2021, 2:05 AM
happy-kitchen-8948207/13/2021, 3:57 AM
enough-analyst-5443407/13/2021, 4:38 AM
happy-kitchen-8948207/14/2021, 1:57 PM