Explicitly adding a mount pair for file in the user's home directory #26205
-
In an attempt to increase hermeticity, we're interested in enabling |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Install Bazelisk. It allows you to have a bash script wrapper called
And your main |
Beta Was this translation helpful? Give feedback.
Install Bazelisk. It allows you to have a bash script wrapper called
tools/bazel
(https://github.com/bazelbuild/bazelisk?tab=readme-ov-file#ensuring-that-your-developers-use-bazelisk-rather-than-bazel) that can set up your variables and then it calls Bazel. Because.bazelrc
doesn't directly support environment variables, you can add your--sandbox_add_mount_pair
via this mechanism. For example, you could even generate a new .bazelrc like:tools/bazel
file: