Skip to content

Commit ed2fa68

Browse files
committedJul 12, 2024
Add tools and update lock files
Copy over the `update-lock-files.sh` script from `bitcoin` and add a `just` command. (Note the update lock files script should really be in `rust-bitcoin-maintainer-tools`.)
1 parent 62833b1 commit ed2fa68

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed
 

‎Cargo-minimal.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ dependencies = [
316316

317317
[[package]]
318318
name = "miniscript"
319-
version = "12.0.0"
319+
version = "12.1.0"
320320
dependencies = [
321321
"bech32",
322322
"bitcoin",

‎Cargo-recent.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ dependencies = [
316316

317317
[[package]]
318318
name = "miniscript"
319-
version = "12.0.0"
319+
version = "12.1.0"
320320
dependencies = [
321321
"bech32",
322322
"bitcoin",

‎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

+4
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ sane: fmt-check lint
3737

3838
# doctests don't get run from workspace root with `cargo test`.
3939
cargo test --quiet --doc || exit 1
40+
41+
# Update the recent and minimal lock files.
42+
update-lock-files:
43+
contrib/update-lock-files.sh

0 commit comments

Comments
 (0)