Skip to content

Commit

Permalink
Add script to update-lock-files
Browse files Browse the repository at this point in the history
Copy the script from `rust-bitcoin`, also add a `just` command to call
it.
  • Loading branch information
tcharding committed Mar 27, 2024
1 parent c61db1b commit 65d54e7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions contrib/update-lock-files.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 5 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ sane: lint
# Check for API changes.
check-api:
./contrib/check-for-api-changes.sh
./contrib/check-for-api-changes.sh
# Update the lock files.
update-lock-files:
./contrib/update-lock-files.sh

0 comments on commit 65d54e7

Please sign in to comment.