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 <shaleva.ann@nspcc.ru>
This commit is contained in:
Anna Shaleva 2023-10-04 18:29:11 +03:00
parent 1745b21142
commit b5a75b1485
2 changed files with 10 additions and 0 deletions

View file

@ -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"

View file

@ -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