Add a script for updating lock files
Every time one of the dependencies is explicitly changed we have to update the minimal/recent lock files. Add a script to do so.
This commit is contained in:
parent
5bf2117dc4
commit
8b84227aec
|
@ -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
|
Loading…
Reference in New Issue