fix: bump wasmvm muslc lib to v2.2.1 to match go.mod#13
Merged
Conversation
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
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bump the wasmvm muslc static library fetched in
Dockerfile.cosmwasmfromv1.1.1tov2.2.1, aligning it with the version declared ingo.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 downloadbut failed atmake buildwithundefined reference to ...@GLIBC_*errors when linkinglibwasmvm.x86_64.soon Alpine/musl.Root cause: the Dockerfile downloaded the v1.1.1 muslc static lib, so the linker fell back to the glibc-linked
.soembedded 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
cosmos/v0.50.x-beta<repo>:cosmos_v0.50.x-beta-<version>published to Docker Hub