From b9f45b30576df2f522ecebed5bb5dafe0285cddd Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Mon, 1 Jul 2024 16:32:16 +0200 Subject: [PATCH] fix: Set toolchain to avoid errors If we do not specify a correct toolchain Go was failing with the following error: go: downloading go1.22 (linux/amd64) go: download go1.22 for linux/amd64: toolchain not available Signed-off-by: Antonio Navarro Perez --- contribs/gnodev/go.mod | 2 ++ contribs/gnofaucet/go.mod | 2 ++ contribs/gnokeykc/go.mod | 2 ++ contribs/gnomd/go.mod | 2 ++ go.mod | 2 ++ misc/autocounterd/go.mod | 2 ++ misc/devdeps/go.mod | 2 ++ misc/docs-linter/go.mod | 2 ++ misc/loop/go.mod | 2 ++ tm2/pkg/libtm/go.mod | 2 ++ 10 files changed, 20 insertions(+) diff --git a/contribs/gnodev/go.mod b/contribs/gnodev/go.mod index e36ca960bc0..6d2c7a34293 100644 --- a/contribs/gnodev/go.mod +++ b/contribs/gnodev/go.mod @@ -2,6 +2,8 @@ module github.com/gnolang/gno/contribs/gnodev go 1.22 +toolchain go1.22.4 + replace github.com/gnolang/gno => ../.. require ( diff --git a/contribs/gnofaucet/go.mod b/contribs/gnofaucet/go.mod index 44ef29aa82a..e4b63c7a9e9 100644 --- a/contribs/gnofaucet/go.mod +++ b/contribs/gnofaucet/go.mod @@ -2,6 +2,8 @@ module github.com/gnolang/gno/contribs/gnofaucet go 1.22 +toolchain go1.22.4 + require ( github.com/gnolang/faucet v0.2.1 github.com/gnolang/gno v0.0.0-20240429120125-3832b1312d7d diff --git a/contribs/gnokeykc/go.mod b/contribs/gnokeykc/go.mod index 9dc122ffb56..711cafed241 100644 --- a/contribs/gnokeykc/go.mod +++ b/contribs/gnokeykc/go.mod @@ -2,6 +2,8 @@ module github.com/gnolang/gno/contribs/gnokeykc go 1.22 +toolchain go1.22.4 + replace github.com/gnolang/gno => ../.. require ( diff --git a/contribs/gnomd/go.mod b/contribs/gnomd/go.mod index 0aae2564395..8bc352d4848 100644 --- a/contribs/gnomd/go.mod +++ b/contribs/gnomd/go.mod @@ -2,6 +2,8 @@ module github.com/gnolang/gno/contribs/gnomd go 1.22 +toolchain go1.22.4 + require github.com/MichaelMure/go-term-markdown v0.1.4 require ( diff --git a/go.mod b/go.mod index a7f0d4b0ca4..d2b4a5f9825 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/gnolang/gno go 1.22 +toolchain go1.22.4 + require ( dario.cat/mergo v1.0.0 github.com/btcsuite/btcd/btcec/v2 v2.3.3 diff --git a/misc/autocounterd/go.mod b/misc/autocounterd/go.mod index c879f980d10..12297e3c6ca 100644 --- a/misc/autocounterd/go.mod +++ b/misc/autocounterd/go.mod @@ -2,6 +2,8 @@ module loop go 1.22 +toolchain go1.22.4 + require github.com/gnolang/gno v0.0.0-20240125181217-b6193518e278 require ( diff --git a/misc/devdeps/go.mod b/misc/devdeps/go.mod index 230c6b74686..e0cb385020e 100644 --- a/misc/devdeps/go.mod +++ b/misc/devdeps/go.mod @@ -2,6 +2,8 @@ module github.com/gnolang/gno/misc/devdeps go 1.22 +toolchain go1.22.4 + require ( github.com/golangci/golangci-lint v1.54.2 // sync with github action golang.org/x/tools v0.12.0 diff --git a/misc/docs-linter/go.mod b/misc/docs-linter/go.mod index 497d4aa8191..be771c9a952 100644 --- a/misc/docs-linter/go.mod +++ b/misc/docs-linter/go.mod @@ -2,6 +2,8 @@ module linter go 1.22 +toolchain go1.22.4 + require ( github.com/gnolang/gno v0.0.0-20240516161351-0c9849a8ef0c github.com/stretchr/testify v1.9.0 diff --git a/misc/loop/go.mod b/misc/loop/go.mod index 59aac48fac8..91d0d6cdf34 100644 --- a/misc/loop/go.mod +++ b/misc/loop/go.mod @@ -2,6 +2,8 @@ module loop go 1.22 +toolchain go1.22.4 + require ( github.com/docker/docker v24.0.7+incompatible github.com/docker/go-connections v0.4.0 diff --git a/tm2/pkg/libtm/go.mod b/tm2/pkg/libtm/go.mod index 2aa405a96d3..e903dd664e6 100644 --- a/tm2/pkg/libtm/go.mod +++ b/tm2/pkg/libtm/go.mod @@ -2,6 +2,8 @@ module github.com/gnolang/libtm go 1.22 +toolchain go1.22.4 + require ( github.com/rs/xid v1.5.0 github.com/stretchr/testify v1.9.0