Open novas0x2a opened 9 months ago
I find that logic also fails under rules_rust which sets PATH
to a single entry that doesn't include dirname
or realpath
:
PATH="bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/rust_toolchain/lib/rustlib/x86_64-unknown-linux-gnu/bin" ...
Perhaps this is a rules_rust bug?
I think this line needs to be rewritten but I'm not sure how to verify the change works.
What happened?
incompatible_sandbox_hermetic_tmp causes some relative paths to change, and results in this logic no longer pointing to the correct location (on my machine, it just ends up being /tmp)
This produces an error like:
Version
Development (host) and target OS/architectures: linux/amd64
Output of
bazel --version
: 7.0.0Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
How to reproduce
from aspect/gcc-toolchain:
Any other information?
What seems to work is to pass the previously calculated execroot into _render_tool_paths and then further into the wrapper via a new
__EXECROOT__
substitution but i'm not sure if that's an approach that would backfire in some way.