Merge rust-bitcoin/rust-bitcoin#2012: Add a script for updating lock files

8b84227aec Add a script for updating lock files (Tobin C. Harding)

Pull request description:

  Every time one of the dependencies is explicitly changed we have to update the minimal/recent lock files. Add a script to do so.

ACKs for top commit:
  apoelstra:
    ACK 8b84227aec
  sanket1729:
    ACK 8b84227aec

Tree-SHA512: f165308131077c55712d9ae5b85a4dc5f0f24c660dd4c196c48a53f64411b25714b2f32d3a6538f040b3d8ef5240df7d16b7b66561e0d8bb49245b44eb8f522c
This commit is contained in:
Andrew Poelstra 2023-08-24 15:50:42 +00:00
commit da1836edf5
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
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