Skip to content

Commit 1d4c2da

Browse files
committed
CI: Pin dependencies for MSRV
Loads of deps break MSRV at the moment because the Rust ecosystem is upgrading to edition 2021 left, right, and centre without bumping crate versions. Pin various crates in CI for MSRV test run.
1 parent 7bd815f commit 1d4c2da

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contrib/test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
set -xe
33

4+
MSRV="1\.41\.1"
5+
46
# Just echo all the relevant env vars to help debug Travis.
57
echo "RUSTFMTCHECK: \"$RUSTFMTCHECK\""
68
echo "BITCOINVERSION: \"$BITCOINVERSION\""
@@ -11,6 +13,14 @@ if [ -n "$RUSTFMTCHECK" ]; then
1113
cargo fmt --all -- --check
1214
fi
1315

16+
# Test pinned versions (these are from rust-bitcoin pinning for 1.48).
17+
if cargo --version | grep ${MSRV}; then
18+
cargo update -p serde_json --precise 1.0.99
19+
cargo update -p serde --precise 1.0.156
20+
cargo update -p quote --precise 1.0.30
21+
cargo update -p proc-macro2 --precise 1.0.63
22+
fi
23+
1424
# Integration test.
1525
if [ -n "$BITCOINVERSION" ]; then
1626
wget https://bitcoincore.org/bin/bitcoin-core-$BITCOINVERSION/bitcoin-$BITCOINVERSION-x86_64-linux-gnu.tar.gz

0 commit comments

Comments
 (0)