Skip to content

Commit

Permalink
bump go
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis committed Sep 26, 2024
1 parent 923e84c commit 2e4d69e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21.4-alpine AS go-builder
FROM golang:1.22.7-alpine AS go-builder

RUN apk add --no-cache ca-certificates build-base git

Expand All @@ -10,11 +10,11 @@ COPY . /code
#ADD https://github.com/CosmWasm/wasmvm/releases/download/v$wasmvm/libwasmvm_muslc.$arch.a /lib/libwasmvm_muslc.$arch.a
## Download
RUN WASMVM_VERSION=$(grep github.com/CosmWasm/wasmvm demo/go.mod | cut -d' ' -f2) && \
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm_muslc.$(uname -m).a \
-O /lib/libwasmvm_muslc.$(uname -m).a && \
# verify checksum
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \
sha256sum /lib/libwasmvm_muslc.$(uname -m).a | grep $(cat /tmp/checksums.txt | grep libwasmvm_muslc.$(uname -m) | cut -d ' ' -f 1)
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm_muslc.$(uname -m).a \
-O /lib/libwasmvm_muslc.$(uname -m).a && \
# verify checksum
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \
sha256sum /lib/libwasmvm_muslc.$(uname -m).a | grep $(cat /tmp/checksums.txt | grep libwasmvm_muslc.$(uname -m) | cut -d ' ' -f 1)

# force it to use static lib (from above) not standard libgo_cosmwasm.so file
# then log output of file /code/bin/bcd
Expand Down
4 changes: 1 addition & 3 deletions demo/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/babylonlabs-io/babylon-sdk/demo

go 1.21

toolchain go1.21.4
go 1.22

require (
github.com/CosmWasm/wasmd v0.51.0
Expand Down
4 changes: 1 addition & 3 deletions go.work
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
go 1.22

toolchain go1.22.7
go 1.22.7

use (
demo
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module github.com/babylonlabs-io/babylon-sdk/tests/e2e

go 1.22

toolchain go1.22.7

require (
github.com/CosmWasm/wasmd v0.51.0
github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect
Expand Down
4 changes: 1 addition & 3 deletions x/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/babylonlabs-io/babylon-sdk/x

go 1.21

toolchain go1.21.4
go 1.22

require (
github.com/CosmWasm/wasmd v0.51.0
Expand Down

0 comments on commit 2e4d69e

Please sign in to comment.