From 13ff95a3d3558707fd85a50033a08de6539207a8 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 4 Mar 2024 17:49:01 +0300 Subject: [PATCH] go.mod: upgrade minimum required Go version to 1.20 Signed-off-by: Anna Shaleva --- Makefile | 2 +- README.md | 2 +- cli/smartcontract/smart_contract.go | 2 +- cli/vm/cli_test.go | 2 +- examples/engine/go.mod | 2 +- examples/events/go.mod | 2 +- examples/iterator/go.mod | 2 +- examples/nft-d/go.mod | 2 +- examples/nft-nd-nns/go.mod | 2 +- examples/nft-nd/go.mod | 2 +- examples/oracle/go.mod | 2 +- examples/runtime/go.mod | 2 +- examples/storage/go.mod | 2 +- examples/timer/go.mod | 2 +- examples/token/go.mod | 2 +- examples/zkp/cubic_circuit/go.mod | 2 +- examples/zkp/xor_compat/go.mod | 2 +- go.mod | 2 +- internal/contracts/oracle_contract/go.mod | 2 +- pkg/interop/go.mod | 2 +- pkg/smartcontract/zkpbinding/binding.go | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 7fbbdb13d..e8b0c9c02 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ REPONAME = "neo-go" NETMODE ?= "privnet" BINARY=neo-go BINARY_PATH=./bin/$(BINARY)$(shell go env GOEXE) -GO_VERSION ?= 1.19 +GO_VERSION ?= 1.20 DESTDIR = "" SYSCONFIGDIR = "/etc" BINDIR = "/usr/bin" diff --git a/README.md b/README.md index 4a88b0832..a435c83c3 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ NeoGo, `:latest` points to the latest release) or build yourself. ### Building -Building NeoGo requires Go 1.19+ and `make`: +Building NeoGo requires Go 1.20+ and `make`: ``` make diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index de8cb4c49..4d4d10674 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -375,7 +375,7 @@ func initSmartContract(ctx *cli.Context) error { gm := []byte("module " + contractName + ` -go 1.19 +go 1.20 require ( github.com/nspcc-dev/neo-go/pkg/interop ` + ver + ` diff --git a/cli/vm/cli_test.go b/cli/vm/cli_test.go index 569513918..81c2d56b0 100644 --- a/cli/vm/cli_test.go +++ b/cli/vm/cli_test.go @@ -347,7 +347,7 @@ require ( github.com/nspcc-dev/neo-go/pkg/interop v0.0.0 ) replace github.com/nspcc-dev/neo-go/pkg/interop => ` + filepath.Join(wd, "../../pkg/interop") + ` -go 1.19`) +go 1.20`) require.NoError(t, os.WriteFile(filepath.Join(tmpDir, "go.mod"), goMod, os.ModePerm)) return filename } diff --git a/examples/engine/go.mod b/examples/engine/go.mod index 259d8f414..40bd3810a 100644 --- a/examples/engine/go.mod +++ b/examples/engine/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/engine -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/events/go.mod b/examples/events/go.mod index 898e16e49..d52037a51 100644 --- a/examples/events/go.mod +++ b/examples/events/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/events -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/iterator/go.mod b/examples/iterator/go.mod index 87b7e7f71..a71f43e99 100644 --- a/examples/iterator/go.mod +++ b/examples/iterator/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/iterator -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/nft-d/go.mod b/examples/nft-d/go.mod index 8709f571c..a27ef65e1 100644 --- a/examples/nft-d/go.mod +++ b/examples/nft-d/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/nft -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/nft-nd-nns/go.mod b/examples/nft-nd-nns/go.mod index 88ab26274..c4d040cce 100644 --- a/examples/nft-nd-nns/go.mod +++ b/examples/nft-nd-nns/go.mod @@ -1,6 +1,6 @@ module github.com/nspcc-dev/neo-go/examples/nft-nd-nns -go 1.19 +go 1.20 require ( github.com/nspcc-dev/neo-go v0.102.1-0.20231020181554-d89c8801d689 diff --git a/examples/nft-nd/go.mod b/examples/nft-nd/go.mod index 236b605e1..16d3433bc 100644 --- a/examples/nft-nd/go.mod +++ b/examples/nft-nd/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/nft-nd -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/oracle/go.mod b/examples/oracle/go.mod index 0453b08a6..1e30916d3 100644 --- a/examples/oracle/go.mod +++ b/examples/oracle/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/oracle -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/runtime/go.mod b/examples/runtime/go.mod index 440513532..75d947357 100644 --- a/examples/runtime/go.mod +++ b/examples/runtime/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/runtime -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/storage/go.mod b/examples/storage/go.mod index 009c5e290..f9cf20219 100644 --- a/examples/storage/go.mod +++ b/examples/storage/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/storage -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/timer/go.mod b/examples/timer/go.mod index 24c17b59f..388f80a7b 100644 --- a/examples/timer/go.mod +++ b/examples/timer/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/timer -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/token/go.mod b/examples/token/go.mod index cf10146ad..ce074aa12 100644 --- a/examples/token/go.mod +++ b/examples/token/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/token -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/examples/zkp/cubic_circuit/go.mod b/examples/zkp/cubic_circuit/go.mod index 3a7225032..a7cc285de 100644 --- a/examples/zkp/cubic_circuit/go.mod +++ b/examples/zkp/cubic_circuit/go.mod @@ -1,6 +1,6 @@ module github.com/nspcc-dev/neo-go/examples/zkp/cubic -go 1.19 +go 1.20 require ( github.com/consensys/gnark v0.9.1 diff --git a/examples/zkp/xor_compat/go.mod b/examples/zkp/xor_compat/go.mod index b6fb30805..edf86e3a3 100644 --- a/examples/zkp/xor_compat/go.mod +++ b/examples/zkp/xor_compat/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/zkp/xor -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/go.mod b/go.mod index 186803962..001c828a7 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/nspcc-dev/neo-go -go 1.19 +go 1.20 require ( github.com/chzyer/readline v1.5.1 diff --git a/internal/contracts/oracle_contract/go.mod b/internal/contracts/oracle_contract/go.mod index fd17f38fe..d5399fb20 100644 --- a/internal/contracts/oracle_contract/go.mod +++ b/internal/contracts/oracle_contract/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/internal/examples/oracle -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231127165613-b35f351f0ba0 diff --git a/pkg/interop/go.mod b/pkg/interop/go.mod index 1dbeee464..0d22c16d4 100644 --- a/pkg/interop/go.mod +++ b/pkg/interop/go.mod @@ -1,3 +1,3 @@ module github.com/nspcc-dev/neo-go/pkg/interop -go 1.19 +go 1.20 diff --git a/pkg/smartcontract/zkpbinding/binding.go b/pkg/smartcontract/zkpbinding/binding.go index 4cca65fbd..91ab10ba1 100644 --- a/pkg/smartcontract/zkpbinding/binding.go +++ b/pkg/smartcontract/zkpbinding/binding.go @@ -165,7 +165,7 @@ supportedstandards: []` // and dependency packages version needed for smart contract compilation. verifyGomod = `module verify -go 1.19 +go 1.20 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231004150345-8849ccde2524 `