From bb751535d3f9cb9627a33b27a053483a6b0478f2 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 8 Aug 2022 11:54:10 +0300 Subject: [PATCH] *: bump minimum supported go version Close #2497. --- cli/input/readpass_unix.go | 1 - cli/input/readpass_windows.go | 1 - cli/server/signals_unix.go | 1 - cli/server/signals_windows.go | 1 - 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 +- go.mod | 2 +- pkg/core/transaction/fuzz_test.go | 1 - pkg/interop/go.mod | 2 +- pkg/network/fuzz_test.go | 1 - pkg/vm/fuzz_test.go | 1 - 20 files changed, 13 insertions(+), 20 deletions(-) diff --git a/cli/input/readpass_unix.go b/cli/input/readpass_unix.go index 1a0021e44..c6f5f0da4 100644 --- a/cli/input/readpass_unix.go +++ b/cli/input/readpass_unix.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows package input diff --git a/cli/input/readpass_windows.go b/cli/input/readpass_windows.go index b9782c310..1d3ed20d1 100644 --- a/cli/input/readpass_windows.go +++ b/cli/input/readpass_windows.go @@ -1,5 +1,4 @@ //go:build windows -// +build windows package input diff --git a/cli/server/signals_unix.go b/cli/server/signals_unix.go index 1f63dfaad..ef9135b3a 100644 --- a/cli/server/signals_unix.go +++ b/cli/server/signals_unix.go @@ -1,5 +1,4 @@ //go:build !windows -// +build !windows package server diff --git a/cli/server/signals_windows.go b/cli/server/signals_windows.go index 4465c1e21..30a70334c 100644 --- a/cli/server/signals_windows.go +++ b/cli/server/signals_windows.go @@ -1,5 +1,4 @@ //go:build windows -// +build windows package server diff --git a/examples/engine/go.mod b/examples/engine/go.mod index 6829880e9..a23b8e44e 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/examples/events/go.mod b/examples/events/go.mod index 33e27b435..2ff00fa24 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/examples/iterator/go.mod b/examples/iterator/go.mod index b7b53ae0f..5e89af3e4 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/examples/nft-d/go.mod b/examples/nft-d/go.mod index af8943a4a..ebac6f9cb 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/examples/nft-nd-nns/go.mod b/examples/nft-nd-nns/go.mod index 5bf0fc16f..05b860a3c 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.16 +go 1.17 require ( github.com/nspcc-dev/neo-go v0.99.1-pre.0.20220711130119-3594c4f760bc diff --git a/examples/nft-nd/go.mod b/examples/nft-nd/go.mod index d32ed69cc..96d25dbb5 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/examples/oracle/go.mod b/examples/oracle/go.mod index 9151d1ed8..e7bc02f6f 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/examples/runtime/go.mod b/examples/runtime/go.mod index 22535671e..f420b0f15 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/examples/storage/go.mod b/examples/storage/go.mod index b4b2d01e5..a14313382 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/examples/timer/go.mod b/examples/timer/go.mod index 62b634258..6ee4bc36d 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/examples/token/go.mod b/examples/token/go.mod index 146997014..945b116cf 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.16 +go 1.17 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220728140123-61cfbbd33fa2 diff --git a/go.mod b/go.mod index 6dbb07acc..829ec808d 100644 --- a/go.mod +++ b/go.mod @@ -33,4 +33,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 ) -go 1.16 +go 1.17 diff --git a/pkg/core/transaction/fuzz_test.go b/pkg/core/transaction/fuzz_test.go index adfb99521..8c2c16aa9 100644 --- a/pkg/core/transaction/fuzz_test.go +++ b/pkg/core/transaction/fuzz_test.go @@ -1,5 +1,4 @@ //go:build go1.18 -// +build go1.18 package transaction diff --git a/pkg/interop/go.mod b/pkg/interop/go.mod index 6aa0ab4c8..2e0512988 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.16 \ No newline at end of file +go 1.17 \ No newline at end of file diff --git a/pkg/network/fuzz_test.go b/pkg/network/fuzz_test.go index c6caa171b..f5c18956e 100644 --- a/pkg/network/fuzz_test.go +++ b/pkg/network/fuzz_test.go @@ -1,5 +1,4 @@ //go:build go1.18 -// +build go1.18 package network diff --git a/pkg/vm/fuzz_test.go b/pkg/vm/fuzz_test.go index 5b9fc5f9a..fc9434f93 100644 --- a/pkg/vm/fuzz_test.go +++ b/pkg/vm/fuzz_test.go @@ -1,5 +1,4 @@ //go:build go1.18 -// +build go1.18 package vm