Skip to content

Commit a54c3e7

Browse files
committed
fix: temporarily disable wasmsign2 due to missing upstream binary
The wasmsign2 v0.2.7-rc.2 release referenced in MODULE.bazel does not exist. The pulseengine/wasmsign2 repository is not accessible, and the official wasm-signatures/wasmsign2 repository (latest: 0.2.6) does not publish pre-built WASM binaries. Changes: - Comment out wasmsign2_cli_wasm http_file in MODULE.bazel - Replace wasmsign2_wrapper with stub that fails gracefully at runtime - Add TODO to re-enable when official binaries are available This allows builds to complete while component signing functionality is temporarily unavailable. The stub prevents build-time failures in targets that reference wasmsign2_wrapper.
1 parent b4e9eb0 commit a54c3e7

File tree

2 files changed

+46
-22
lines changed

2 files changed

+46
-22
lines changed

MODULE.bazel

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,14 @@ http_file(
204204
)
205205

206206
# wasmsign2 CLI WASM binary for component signing
207-
http_file(
208-
name = "wasmsign2_cli_wasm",
209-
downloaded_file_path = "wasmsign2.wasm",
210-
sha256 = "0a2ba6a55621d83980daa7f38e3770ba6b9342736971a0cebf613df08377cd34",
211-
url = "https://github.com/pulseengine/wasmsign2/releases/download/v0.2.7-rc.2/wasmsign2-cli.wasm",
212-
)
207+
# Commented out temporarily: release v0.2.7-rc.2 not available
208+
# TODO: Update to use official wasm-signatures/wasmsign2 when WASM binary is published
209+
# http_file(
210+
# name = "wasmsign2_cli_wasm",
211+
# downloaded_file_path = "wasmsign2.wasm",
212+
# sha256 = "0a2ba6a55621d83980daa7f38e3770ba6b9342736971a0cebf613df08377cd34",
213+
# url = "https://github.com/pulseengine/wasmsign2/releases/download/v0.2.7-rc.2/wasmsign2-cli.wasm",
214+
# )
213215

214216
# WASM Tools Component toolchain for universal wasm-tools operations
215217
register_toolchains("//toolchains:wasm_tools_component_toolchain_local")

tools/wasmsign2_wrapper/BUILD.bazel

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,50 @@
33
This wrapper executes the pre-built wasmsign2.wasm component via wasmtime,
44
resolving symlinks to real paths to work with both Bazel's sandbox and
55
WASI's security model.
6+
7+
TEMPORARILY DISABLED: wasmsign2 binary not available
8+
TODO: Re-enable when wasmsign2 WASM binary is published
69
"""
710

811
load("@rules_go//go:def.bzl", "go_binary")
912

1013
package(default_visibility = ["//visibility:public"])
1114

12-
# Wrapper binary that executes wasmsign2.wasm with path resolution
13-
go_binary(
14-
name = "wasmsign2_wrapper",
15-
srcs = ["main.go"],
16-
data = [
17-
"@wasmsign2_cli_wasm//file",
18-
"@wasmtime_toolchain//:wasmtime",
19-
],
20-
pure = "on", # Pure Go for cross-platform compatibility
21-
visibility = ["//visibility:public"],
22-
deps = ["@rules_go//go/runfiles"],
23-
)
15+
# Temporarily commented out - wasmsign2 binary not available
16+
# # Wrapper binary that executes wasmsign2.wasm with path resolution
17+
# go_binary(
18+
# name = "wasmsign2_wrapper",
19+
# srcs = ["main.go"],
20+
# data = [
21+
# "@wasmsign2_cli_wasm//file",
22+
# "@wasmtime_toolchain//:wasmtime",
23+
# ],
24+
# pure = "on", # Pure Go for cross-platform compatibility
25+
# visibility = ["//visibility:public"],
26+
# deps = ["@rules_go//go/runfiles"],
27+
# )
28+
#
29+
# # Export for easy access in toolchains
30+
# alias(
31+
# name = "wasmsign2",
32+
# actual = ":wasmsign2_wrapper",
33+
# visibility = ["//visibility:public"],
34+
# )
2435

25-
# Export for easy access in toolchains
26-
alias(
27-
name = "wasmsign2",
28-
actual = ":wasmsign2_wrapper",
36+
# Stub target to prevent build failures while wasmsign2 is unavailable
37+
# This will fail at runtime if actually used, but allows builds to complete
38+
genrule(
39+
name = "wasmsign2_wrapper",
40+
outs = ["wasmsign2_stub.sh"],
41+
cmd = """
42+
cat > $@ << 'EOF'
43+
#!/bin/sh
44+
echo "ERROR: wasmsign2 is temporarily unavailable" >&2
45+
echo "The wasmsign2 binary could not be downloaded from upstream" >&2
46+
exit 1
47+
EOF
48+
chmod +x $@
49+
""",
50+
executable = True,
2951
visibility = ["//visibility:public"],
3052
)

0 commit comments

Comments
 (0)