Add a script for updating lock files

Every time one of the dependencies is explicitly changed we have to
update the minimal/recent lock files. Add a script to do so.
This commit is contained in:
Tobin C. Harding 2023-08-21 15:06:24 +10:00
parent 5bf2117dc4
commit 8b84227aec
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 11 additions and 0 deletions

11
contrib/update-lock-files.sh Executable file
View File

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