mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-24 09:30:36 +00:00
b5a75b1485
And ignore on dependency checks, we update all the examples at once anyway, so may safely skip the check for zkp folder. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
29 lines
611 B
Bash
Executable file
29 lines
611 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
|
|
done
|
|
|
|
for dir in "$root"/examples/zkp/*/; do
|
|
cd "$dir" || exit 1
|
|
go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV"
|
|
go mod tidy
|
|
done
|
|
|
|
cd "$root"/internal/contracts/oracle_contract || exit 1
|
|
go get github.com/nspcc-dev/neo-go/pkg/interop@"$REV"
|
|
go mod tidy
|