Merge rust-bitcoin/rust-bitcoin#1992: Update docs and format test file

02890d3fba Use spaces instead of tabs (yancy)
a640f0f034 Refer to the location where the deps are pinned (yancy)

Pull request description:

  A rollup of two simple commits.  1) add a line to point developers to the CI test where the deps are tested and 2) replace tabs with spaces (spaces are used everywhere else) in `contrib/test.sh`.

ACKs for top commit:
  apoelstra:
    ACK 02890d3fba
  tcharding:
    ACK 02890d3fba

Tree-SHA512: 29b02e6d91a169429fe931a97ff7f86ac99016c6356f85d887a84141b3eec57527f85a43aeb3905a4acc73730e33a505c265b6a22ffbca1b102b63adf8599e4f
This commit is contained in:
Andrew Poelstra 2023-08-14 18:48:05 +00:00
commit 29af523beb
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
2 changed files with 21 additions and 19 deletions

View File

@ -82,6 +82,8 @@ cargo update -p proc-macro2 --precise 1.0.63
cargo update -p serde_test --precise 1.0.175 cargo update -p serde_test --precise 1.0.175
``` ```
The above commands are sourced from `./contrib/test.sh`.
## External dependencies ## External dependencies
We integrate with a few external libraries, most notably `serde`. These We integrate with a few external libraries, most notably `serde`. These

View File

@ -22,25 +22,25 @@ fi
for dep in $DEPS for dep in $DEPS
do do
cp "Cargo-$dep.lock" Cargo.lock cp "Cargo-$dep.lock" Cargo.lock
for crate in ${CRATES} for crate in ${CRATES}
do do
( (
cd "$crate" cd "$crate"
./contrib/test.sh ./contrib/test.sh
) )
done done
if [ "$dep" = recent ]; if [ "$dep" = recent ];
then then
# We always test committed dependencies but we want to warn if they could've been updated # We always test committed dependencies but we want to warn if they could've been updated
cargo update cargo update
if diff Cargo-recent.lock Cargo.lock; if diff Cargo-recent.lock Cargo.lock;
then then
echo Dependencies are up to date echo Dependencies are up to date
else else
echo "::warning file=Cargo-recent.lock::Dependencies could be updated" echo "::warning file=Cargo-recent.lock::Dependencies could be updated"
fi fi
fi fi
done done
exit 0 exit 0