The Bazel sandbox sets the working directory to /proc/self/cwd.
Passing paths relative to this directory across process boundaries won't
work because the daemon can have a different working directory. The fix is
to consistently use a wrapper that resolves the virtual working directory
symlink and make paths relative to the real underlying directory.
The Bazel sandbox sets the working directory to
/proc/self/cwd
. Passing paths relative to this directory across process boundaries won't work because the daemon can have a different working directory. The fix is to consistently use a wrapper that resolves the virtual working directory symlink and make paths relative to the real underlying directory.