Skip to content

fix: bump wasmvm muslc lib to v2.2.1 to match go.mod#13

Merged
thismars merged 1 commit into
cosmos/v0.50.x-betafrom
fix/dockerfile-go-version
May 14, 2026
Merged

fix: bump wasmvm muslc lib to v2.2.1 to match go.mod#13
thismars merged 1 commit into
cosmos/v0.50.x-betafrom
fix/dockerfile-go-version

Conversation

@thismars

@thismars thismars commented May 14, 2026

Copy link
Copy Markdown

Summary

Bump the wasmvm muslc static library fetched in Dockerfile.cosmwasm from v1.1.1 to v2.2.1, aligning it with the version declared in go.mod (github.com/CosmWasm/wasmvm/v2 v2.2.1).

Background

After PR #12 fixed the Go toolchain version, the docker-build workflow progressed past go mod download but failed at make build with undefined reference to ...@GLIBC_* errors when linking libwasmvm.x86_64.so on Alpine/musl.

Root cause: the Dockerfile downloaded the v1.1.1 muslc static lib, so the linker fell back to the glibc-linked .so embedded in the v2.2.1 Go module, which is incompatible with musl.

Bumping the muslc lib (and SHA-256 checksums) to v2.2.1 makes the native dependency match the Go module version.

dependency match the Go module version.

Checksums sourced from:
https://github.com/CosmWasm/wasmvm/releases/download/v2.2.1/checksums.txt

Test plan

  • docker-build workflow succeeds after merge to cosmos/v0.50.x-beta
  • Image <repo>:cosmos_v0.50.x-beta-<version> published to Docker Hub
  • Verify the image runs against testnet before promoting beta to mainnet

go.mod requires github.com/CosmWasm/wasmvm/v2 v2.2.1 but the Dockerfile
fetched the v1.1.1 muslc static lib, causing the linker to fall back to
wasmvm v2.2.1's bundled glibc .so and emit undefined-reference errors
on Alpine/musl. Bumping the muslc lib (and checksums) to v2.2.1 aligns
the native dependency with the Go module version.

Checksums sourced from:
https://github.com/CosmWasm/wasmvm/releases/download/v2.2.1/checksums.txt
@thismars thismars merged commit 954fb2a into cosmos/v0.50.x-beta May 14, 2026
4 checks passed
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.

1 participant