From c7ece79cb42c67b74715a5053147f0c35c72d256 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 23 Sep 2022 09:05:08 +0300 Subject: [PATCH] scripts: ignore go 1.16 compat for dependency updator script Otherwise the following error occurs while updating dependency: ``` github.com/nspcc-dev/neo-go/examples/nft-nd-nns tested by github.com/nspcc-dev/neo-go/examples/nft-nd-nns.test imports github.com/nspcc-dev/neo-go/pkg/compiler imports gopkg.in/yaml.v3 tested by gopkg.in/yaml.v3.test imports gopkg.in/check.v1 imports github.com/kr/pretty loaded from github.com/kr/pretty@v0.1.0, but go 1.16 would select v0.3.0 github.com/nspcc-dev/neo-go/examples/nft-nd-nns tested by github.com/nspcc-dev/neo-go/examples/nft-nd-nns.test imports github.com/nspcc-dev/neo-go/pkg/compiler imports gopkg.in/yaml.v3 tested by gopkg.in/yaml.v3.test imports gopkg.in/check.v1 imports github.com/kr/pretty imports github.com/kr/text loaded from github.com/kr/text@v0.1.0, but go 1.16 would select v0.2.0 To upgrade to the versions selected by go 1.16: go mod tidy -go=1.16 && go mod tidy -go=1.17 If reproducibility with go 1.16 is not needed: go mod tidy -compat=1.17 For other options, see: https://golang.org/doc/modules/pruning ``` --- scripts/update_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_deps.sh b/scripts/update_deps.sh index 5a1d71028..603ee2b7a 100755 --- a/scripts/update_deps.sh +++ b/scripts/update_deps.sh @@ -15,7 +15,7 @@ go mod tidy for dir in "$root"/examples/*/; do cd "$dir" || exit 1 go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV" - go mod tidy + go mod tidy --compat=1.17 done cd "$root"/internal/contracts/oracle_contract || exit 1