From d7bb07230737245e6cb64fe57864c79155597010 Mon Sep 17 00:00:00 2001 From: thismars Date: Wed, 13 May 2026 20:43:53 +0900 Subject: [PATCH] fix: bump wasmvm muslc lib to v2.2.1 to match go.mod 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 --- Dockerfile.cosmwasm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.cosmwasm b/Dockerfile.cosmwasm index 36bdebd24..0d8d44e28 100644 --- a/Dockerfile.cosmwasm +++ b/Dockerfile.cosmwasm @@ -4,10 +4,10 @@ WORKDIR /go/src/github.com/forbole/callisto COPY . ./ RUN apk update && apk add --no-cache ca-certificates build-base git -ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a -ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a -RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 9ecb037336bd56076573dc18c26631a9d2099a7f2b40dc04b6cae31ffb4c8f9a -RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 6e4de7ba9bad4ae9679c7f9ecf7e283dd0160e71567c6a7be6ae47c81ebe7f32 +ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.2.1/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a +ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.2.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a +RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep ba6cb5db6b14a265c8556326c045880908db9b1d2ffb5d4aa9f09ac09b24cecc +RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep b3bd755efac0ff39c01b59b8110f961c48aa3eb93588071d7a628270cc1f2326 ## Copy the library you want to the final location that will be found by the linker flag `-lwasmvm_muslc` RUN cp /lib/libwasmvm_muslc.$(uname -m).a /lib/libwasmvm_muslc.a RUN go mod download