From 4cf18a1da62779e17bfa85ec808d174bc64418ef Mon Sep 17 00:00:00 2001 From: Grzegorz Prusak Date: Tue, 14 Jan 2025 14:13:50 +0100 Subject: [PATCH] fixed regex --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 03dc273123..089db5dba2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,12 @@ WORKDIR /code ADD go.mod go.sum ./ RUN set -eux; \ export ARCH=$(uname -m); \ - WASM_VERSION=$(go list -m all | grep github.com/CosmWasm/wasmvm | awk '{print $2}'); \ + # Currently github.com/CosmWasm/wasmvm is being overriden by github.com/sei-protocol/sei-wasmvm + # (see go.mod). However the rust precompiles are still fetched from the upstream repository. + # Here we assume that the sei-wasm release version is prefixed with the wasmvm release version + # with the matching precompiles. Therefore, to compute the download url, we just strip the suffix + # of the sei-wasm release version. + WASM_VERSION=$(go list -f {{.Replace.Version}} -m github.com/CosmWasm/wasmvm | sed s/-.*//); \ if [ ! -z "${WASM_VERSION}" ]; then \ wget -O /lib/libwasmvm_muslc.a https://github.com/CosmWasm/wasmvm/releases/download/${WASM_VERSION}/libwasmvm_muslc.${ARCH}.a; \ fi; \ @@ -45,4 +50,4 @@ COPY --from=go-builder /code/build/seid /usr/bin/seid # rest server, tendermint p2p, tendermint rpc EXPOSE 1317 26656 26657 -CMD ["/usr/bin/seid", "version"] \ No newline at end of file +CMD ["/usr/bin/seid", "version"]