Skip to content

Commit 9e82d27

Browse files
LegNeatoclaude
andcommitted
Disable Bazel sandbox for Rust FFI genrule
The Bazel sandbox blocks cargo from accessing ~/.cargo/git/ to fetch git dependencies like rspirv, causing the build to fail with "Operation not permitted". Setting local = True disables sandboxing for this genrule, allowing cargo to fetch dependencies normally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent f37845e commit 9e82d27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ genrule(
152152
"//conditions:default": build_rust_cmd("release"),
153153
}),
154154
tools = [":build_rust_ffi"],
155+
# Disable sandbox to allow cargo to access ~/.cargo for git dependencies
156+
local = True,
155157
tags = ["requires-cargo"],
156158
)
157159

0 commit comments

Comments
 (0)