Commit 846925e
fix: remove 'tools' parameter from file_ops actions to enable runfiles
When a binary is passed as 'executable' in ctx.actions.run(), Bazel
automatically provides runfiles support. However, also passing it in the
'tools' parameter prevents runfiles from being properly initialized in
the sandbox.
Remove the 'tools = [file_ops_tool]' parameter from both:
- prepare_workspace_action() / PrepareWorkspaceHermetic action
- setup_js_workspace_action() / SetupJSWorkspace action
This allows the file_ops binary to properly initialize its runfiles
and locate its data dependencies (wasmtime binary, WASM components, etc.)
Fixes: "Failed to initialize runfiles: runfiles: no runfiles found" error
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 527685b commit 846925e
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
| |||
458 | 457 | | |
459 | 458 | | |
460 | 459 | | |
461 | | - | |
462 | 460 | | |
463 | 461 | | |
464 | 462 | | |
0 commit comments