mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 09:29:38 +00:00
c7ece79cb4
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 ```
23 lines
491 B
Bash
Executable file
23 lines
491 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: ./update_deps.sh <revision>"
|
|
exit 1
|
|
fi
|
|
|
|
REV="$1"
|
|
root="$(git rev-parse --show-toplevel)"
|
|
|
|
cd "$root" || exit 1
|
|
go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV"
|
|
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 --compat=1.17
|
|
done
|
|
|
|
cd "$root"/internal/contracts/oracle_contract || exit 1
|
|
go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV"
|
|
go mod tidy
|