Skip to content

Commit 65d54e7

Browse files
committed
Add script to update-lock-files
Copy the script from `rust-bitcoin`, also add a `just` command to call it.
1 parent c61db1b commit 65d54e7

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

contrib/update-lock-files.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Update the minimal/recent lock file
4+
5+
set -euo pipefail
6+
7+
for file in Cargo-minimal.lock Cargo-recent.lock; do
8+
cp --force "$file" Cargo.lock
9+
cargo check
10+
cp --force Cargo.lock "$file"
11+
done

justfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ sane: lint
3131

3232
# Check for API changes.
3333
check-api:
34-
./contrib/check-for-api-changes.sh
34+
./contrib/check-for-api-changes.sh
35+
36+
# Update the lock files.
37+
update-lock-files:
38+
./contrib/update-lock-files.sh

0 commit comments

Comments
 (0)