Commit a8c8851e authored by smartcontracts's avatar smartcontracts Committed by GitHub

maint: remove unnecessary snapshots check script (#13248)

We can do this with a justfile recipe.
Co-authored-by: default avatarMatthew Slipper <me@matthewslipper.com>
parent 750ed202
...@@ -130,11 +130,10 @@ gas-snapshot-check: build-go-ffi gas-snapshot-check-no-build ...@@ -130,11 +130,10 @@ gas-snapshot-check: build-go-ffi gas-snapshot-check-no-build
# Checks if the snapshots are up to date without building. # Checks if the snapshots are up to date without building.
snapshots-check-no-build: snapshots-check-no-build:
./scripts/checks/check-snapshots.sh --no-build just snapshots-no-build && git diff --exit-code snapshots
# Checks if the snapshots are up to date. # Checks if the snapshots are up to date.
snapshots-check: snapshots-check: build snapshots-check-no-build
./scripts/checks/check-snapshots.sh
# Checks interface correctness without building. # Checks interface correctness without building.
interfaces-check-no-build: interfaces-check-no-build:
......
#!/usr/bin/env bash
set -euo pipefail
# Check for the --no-build flag
# Generate snapshots
if [ "${1:-}" == "--no-build" ]; then
just snapshots-no-build
else
just snapshots
fi
# Check if the generated `snapshots` files are different from the committed versions
if git diff --exit-code snapshots > /dev/null; then
[ -z "$(git ls-files --others --exclude-standard snapshots)" ] || exit 1
else
exit 1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment