Skip to content

fix(ci): compute the release checksum from the published wasm - #4

Merged
Wtiben merged 1 commit into
mainfrom
fix/release-checksum
Jul 27, 2026
Merged

fix(ci): compute the release checksum from the published wasm#4
Wtiben merged 1 commit into
mainfrom
fix/release-checksum

Conversation

@Wtiben

@Wtiben Wtiben commented Jul 27, 2026

Copy link
Copy Markdown
Owner

build-wasm-plugin writes a dotnet_toolchain.wasm.sha256 that does not match the wasm it leaves beside it in builds/, and the release step uploads both as-is. So the published checksum has never matched the published wasm.

This adds a step that recomputes the checksum from the exact file the release uploads, right after the publish build. The file format is unchanged (bare hash, no trailing newline), only the value is now correct.

The step is deliberately not gated on tag pushes, so a workflow_dispatch dry-run still exercises it, and it fails if no wasm turns up rather than quietly leaving a stale checksum in place.

The wasm asset itself was never affected. It matches its ghcr OCI layer byte for byte, and moon does not read the .sha256, which is why this went unnoticed.

I've also corrected the v0.1.0 asset in place, so the reported release verifies now rather than only future ones.

Fixes #2

`build-wasm-plugin` emits a dotnet_toolchain.wasm.sha256 that does not match
the wasm it leaves next to it in builds/, so the released checksum fails
verification for anyone who checks a download by hand. Recompute it from the
exact artifact the release step uploads.

The step is unconditional so a workflow_dispatch dry-run exercises it, and it
fails when no wasm is found rather than quietly leaving the stale file in place.

Fixes #2
@Wtiben
Wtiben merged commit 6ab22ee into main Jul 27, 2026
4 checks passed
@Wtiben
Wtiben deleted the fix/release-checksum branch July 27, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.1.0: dotnet_toolchain.wasm.sha256 does not match the wasm asset

1 participant