From a640f0f034eb9d15ce33aac81e4b3c0cd8e144c8 Mon Sep 17 00:00:00 2001 From: yancy Date: Sat, 12 Aug 2023 11:06:41 +0200 Subject: [PATCH 1/2] Refer to the location where the deps are pinned --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 57cdc8a4..a7cd5117 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,8 @@ cargo update -p proc-macro2 --precise 1.0.63 cargo update -p serde_test --precise 1.0.175 ``` +The above commands are sourced from `./contrib/test.sh`. + ## External dependencies We integrate with a few external libraries, most notably `serde`. These From 02890d3fbafac689c063eebc41f7094e262e47e0 Mon Sep 17 00:00:00 2001 From: yancy Date: Sat, 12 Aug 2023 11:07:15 +0200 Subject: [PATCH 2/2] Use spaces instead of tabs --- contrib/test.sh | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/contrib/test.sh b/contrib/test.sh index adee9fdf..74f8ffb3 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -22,25 +22,25 @@ fi for dep in $DEPS do - cp "Cargo-$dep.lock" Cargo.lock - for crate in ${CRATES} - do - ( - cd "$crate" - ./contrib/test.sh - ) - done - if [ "$dep" = recent ]; - then - # We always test committed dependencies but we want to warn if they could've been updated - cargo update - if diff Cargo-recent.lock Cargo.lock; - then - echo Dependencies are up to date - else - echo "::warning file=Cargo-recent.lock::Dependencies could be updated" - fi - fi + cp "Cargo-$dep.lock" Cargo.lock + for crate in ${CRATES} + do + ( + cd "$crate" + ./contrib/test.sh + ) + done + if [ "$dep" = recent ]; + then + # We always test committed dependencies but we want to warn if they could've been updated + cargo update + if diff Cargo-recent.lock Cargo.lock; + then + echo Dependencies are up to date + else + echo "::warning file=Cargo-recent.lock::Dependencies could be updated" + fi + fi done exit 0