Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/wasm_component_utils.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def validate_component_action(ctx, wasm_file, wit_file = None):
if not (hasattr(ctx.attr, "validate_wit") and ctx.attr.validate_wit):
return []

wasm_toolchain = ctx.toolchains.get("@rules_wasm_component//toolchains:wasm_tools_toolchain_type")
wasm_toolchain = ctx.toolchains["@rules_wasm_component//toolchains:wasm_tools_toolchain_type"]
if not wasm_toolchain:
return []

Expand Down
2 changes: 1 addition & 1 deletion wit/private/wit_bindgen.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _wit_bindgen_impl(ctx):
# Get wit-bindgen tool from appropriate toolchain
if ctx.attr.language == "go":
# Check if TinyGo toolchain is available
tinygo_toolchain = ctx.toolchains.get("@rules_wasm_component//toolchains:tinygo_toolchain_type")
tinygo_toolchain = ctx.toolchains["@rules_wasm_component//toolchains:tinygo_toolchain_type"]
if not tinygo_toolchain:
fail("TinyGo toolchain not available. Go WIT binding generation requires TinyGo toolchain.")
wit_bindgen = tinygo_toolchain.wit_bindgen_go
Expand Down
Loading