forked from TrueCloudLab/neoneo-go
scripts: add script for updating pkg/interop dependencies
Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
dfedae3f84
commit
44de29bcf0
1 changed files with 19 additions and 0 deletions
19
scripts/update_deps.sh
Executable file
19
scripts/update_deps.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/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
|
Loading…
Reference in a new issue