Skip to content

Commit c86df2e

Browse files
avrabeclaude
andcommitted
fix: remove unnecessary wasmtime toolchain dependency from cpp_component and file_ops_actions
The Go-based file_ops wrapper handles file operations directly without needing wasmtime. Removed wasmtime_toolchain reference from file_ops_actions.bzl and removed the toolchain dependency from cpp_component rule to fix missing toolchain configuration errors in CI. This fixes the CI failure: 'toolchain type //toolchains:wasmtime_toolchain_type was requested but only types [//toolchains:cpp_component_toolchain_type, //toolchains:file_ops_toolchain_type] are configured' 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent e22d1c4 commit c86df2e

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

MODULE.bazel.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/bazel_helpers/file_ops_actions.bzl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,8 @@ def prepare_workspace_action(ctx, config):
151151
file_ops_toolchain = ctx.toolchains["@rules_wasm_component//toolchains:file_ops_toolchain_type"]
152152
file_ops_tool = file_ops_toolchain.file_ops_component
153153

154-
# Get wasmtime and WASM component from toolchain
155-
wasmtime_toolchain = ctx.toolchains["@rules_wasm_component//toolchains:wasmtime_toolchain_type"]
156-
wasmtime_binary = wasmtime_toolchain.wasmtime
157-
158-
wasm_component = file_ops_toolchain.file_ops_wasm_component
159-
160154
# Collect all input files and build operations list
161-
all_inputs = [wasmtime_binary, wasm_component]
155+
all_inputs = [file_ops_tool]
162156
operations = []
163157

164158
# Process source files
@@ -220,8 +214,6 @@ def prepare_workspace_action(ctx, config):
220214
file_ops_config = {
221215
"workspace_dir": workspace_dir.path, # Use full path for local execution
222216
"operations": operations,
223-
"wasmtime_path": wasmtime_binary.path,
224-
"wasm_component_path": wasm_component.path,
225217
}
226218

227219
# Write config to a JSON file

0 commit comments

Comments
 (0)