From 44de29bcf04163ff90c90b245fd9739bdb2d1f21 Mon Sep 17 00:00:00 2001 From: Evgeniy Stratonikov Date: Tue, 15 Mar 2022 15:44:47 +0300 Subject: [PATCH] scripts: add script for updating pkg/interop dependencies Signed-off-by: Evgeniy Stratonikov --- scripts/update_deps.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/update_deps.sh diff --git a/scripts/update_deps.sh b/scripts/update_deps.sh new file mode 100755 index 000000000..3ab5059b0 --- /dev/null +++ b/scripts/update_deps.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "Usage: ./update_deps.sh " + 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