Skip to content

Commit

Permalink
Add a script to update lock files (#379)
Browse files Browse the repository at this point in the history
This can be manually run by contributors in order to keep their PRs up
to date.

Sourced [from
rust-bitcoin](https://github.com/rust-bitcoin/rust-bitcoin/blob/master/contrib/update-lock-files.sh)
  • Loading branch information
spacebear21 authored Oct 28, 2024
2 parents 5b0b587 + 33ca38d commit 24d5e9f
Showing 1 changed file with 11 additions and 0 deletions.
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 -f "$file" Cargo.lock
cargo check
cp -f Cargo.lock "$file"
done

0 comments on commit 24d5e9f

Please sign in to comment.