You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These canonical repo names are correct only when rules_wasm_component is the root module. When it's consumed as a dependency (e.g. git_override/bazel_dep from a downstream project), bzlmod prefixes the canonical name with rules_wasm_component+ → rules_wasm_component++wasmtime+wasmtime_toolchain, so Rlocation fails at runtime:
Wasmtime binary not found at .../wasmsign2_wrapper.runfiles/+wasmtime+wasmtime_toolchain/wasmtime
This is the same bug just confirmed for loom_wrapper in #490 (verified downstream in jess). wasm_sign / wasm_verify / wasm_keygen will fail for any downstream consumer. In-repo CI doesn't catch it because there rules_wasm_component is the root module.
Use repo-mapping-aware resolution: Rlocation with the apparent repo name (wasmtime_toolchain/wasmtime) so the _repo_mapping translates it correctly in both root and dependency contexts.
Option 1 is what #490 (PR #497, commit f4eb4f8) adopted for loom_wrapper.
tools/wasmsign2_wrapper/main.golocates wasmtime and the wasm component via hardcoded canonical runfiles paths:These canonical repo names are correct only when rules_wasm_component is the root module. When it's consumed as a dependency (e.g.
git_override/bazel_depfrom a downstream project), bzlmod prefixes the canonical name withrules_wasm_component+→rules_wasm_component++wasmtime+wasmtime_toolchain, soRlocationfails at runtime:This is the same bug just confirmed for
loom_wrapperin #490 (verified downstream in jess).wasm_sign/wasm_verify/wasm_keygenwill fail for any downstream consumer. In-repo CI doesn't catch it because there rules_wasm_component is the root module.Fix options
Rlocationwith the apparent repo name (wasmtime_toolchain/wasmtime) so the_repo_mappingtranslates it correctly in both root and dependency contexts.Option 1 is what #490 (PR #497, commit f4eb4f8) adopted for loom_wrapper.