Skip to content

Commit

Permalink
Make snapshot diffs smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybosamiya committed Mar 28, 2024
1 parent 5ebfb0e commit 3ee0a1e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 0 additions & 4 deletions examples/get_latest_verus_syntax_rs.sh

This file was deleted.

15 changes: 15 additions & 0 deletions examples/verus-snapshot/get_latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,20 @@ for path in $MOVE_PATHS; do
fi
done

# Until these files are formatted on Verus `main`, we want to just manually
# reformat it locally, to minimize the diff for the snapshots
FORCE_REFORMAT_PATHS="source/rust_verify/example/syntax.rs"
if [ "$FORCE_REFORMAT_PATHS" != "" ]; then
echo "[INFO] Reformatting paths not yet already formatted within Verus 'main'"
for path in $FORCE_REFORMAT_PATHS; do
echo " ... $path"
if [ -d "$path" ]; then
find "$path" -name '*.rs' -exec verusfmt {} \;
else
verusfmt "$path"
fi
done
fi

echo "[INFO] Cleaning up"
rm -rf verus-main verus.zip

0 comments on commit 3ee0a1e

Please sign in to comment.