diff --git a/contrib/update-lock-files.sh b/contrib/update-lock-files.sh new file mode 100755 index 0000000..02ba1f7 --- /dev/null +++ b/contrib/update-lock-files.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# +# Update the minimal/recent lock file + +set -euo pipefail + +for file in Cargo-minimal.lock Cargo-recent.lock; do + cp --force "$file" Cargo.lock + cargo check + cp --force Cargo.lock "$file" +done diff --git a/justfile b/justfile index fd8c17a..d98737d 100644 --- a/justfile +++ b/justfile @@ -31,4 +31,8 @@ sane: lint # Check for API changes. check-api: - ./contrib/check-for-api-changes.sh \ No newline at end of file + ./contrib/check-for-api-changes.sh + +# Update the lock files. +update-lock-files: + ./contrib/update-lock-files.sh