github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/scripts/update_deps.sh (about) 1 #!/bin/sh 2 3 if [ -z "$1" ]; then 4 echo "Usage: ./update_deps.sh <revision>" 5 exit 1 6 fi 7 8 REV="$1" 9 root="$(git rev-parse --show-toplevel)" 10 11 cd "$root" || exit 1 12 go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV" 13 go mod tidy 14 15 for dir in "$root"/examples/*/; do 16 cd "$dir" || exit 1 17 go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV" 18 go mod tidy 19 done 20 21 for dir in "$root"/examples/zkp/*/; do 22 cd "$dir" || exit 1 23 go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV" 24 go mod tidy 25 done 26 27 cd "$root"/internal/contracts/oracle_contract || exit 1 28 go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV" 29 go mod tidy