nelhage / llama

Apache License 2.0
589 stars 24 forks source link

Fix absolute path resolution for Bazel sandboxing. #33

Closed jpeach closed 3 years ago

jpeach commented 3 years ago

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.