From b5a75b148552081f3eeceea6e004d4d1dda4e243 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 4 Oct 2023 18:29:11 +0300 Subject: [PATCH] scripts: add zkp examples to dependencies updator 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 --- scripts/check_deps.sh | 4 ++++ scripts/update_deps.sh | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/scripts/check_deps.sh b/scripts/check_deps.sh index 1c3c7567f..e9b260fe9 100755 --- a/scripts/check_deps.sh +++ b/scripts/check_deps.sh @@ -16,6 +16,10 @@ git merge-base --is-ancestor "$INTEROP_COMMIT" HEAD || die "pkg/interop commit $INTEROP_COMMIT was not found in git" for dir in examples/*/; do + if [ -z "${dir#*zkp/}" ]; then + continue + fi + INTEROP_COMMIT="$(sed -E -n -e 's/.*pkg\/interop.+-.+-(\w+)/\1/ p' "$dir/go.mod")" git merge-base --is-ancestor "$INTEROP_COMMIT" HEAD || die "$dir: pkg/interop commit $INTEROP_COMMIT was not found in git" diff --git a/scripts/update_deps.sh b/scripts/update_deps.sh index 5a1d71028..4b939af6c 100755 --- a/scripts/update_deps.sh +++ b/scripts/update_deps.sh @@ -18,6 +18,12 @@ for dir in "$root"/examples/*/; do 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