Skip to content

Commit 01efac7

Browse files
committed
Use --sandbox_fake_username with bazel build
1 parent 713e902 commit 01efac7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/root/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ build --workspace_status_command hack/print-workspace-status.sh
77

88
# Make /tmp hermetic
99
build --sandbox_tmpfs_path=/tmp
10+
11+
# Ensure that Bazel never runs as root, which can cause unit tests to fail.
12+
# This flag requires Bazel 0.5.0+
13+
build --sandbox_fake_username

0 commit comments

Comments
 (0)