Skip to content

Commit 00157eb

Browse files
committed
Detect the current version of rustls before pinning
1 parent 463e432 commit 00157eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/ci-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ function PIN_RELEASE_DEPS {
2121
# indexmap 2.6.0 upgraded to hashbrown 0.15, which unfortunately bumped their MSRV to rustc 1.65 with the 0.15.1 release (and 2.7.0 was released since).
2222
[ "$RUSTC_MINOR_VERSION" -lt 65 ] && cargo update -p indexmap@2.7.0 --precise "2.5.0" --verbose
2323

24+
CURRENT_RUSTLS="$(cargo tree --features=electrum | grep -o 'rustls v0.23.*' | sed 's/rustls v//')"
2425
# Starting with version 0.23.20, the `rustls` crate has an MSRV of rustc 1.71.0
25-
[ "$RUSTC_MINOR_VERSION" -lt 71 ] && cargo update -p rustls@0.23.20 --precise "0.23.19" --verbose
26+
[ "$RUSTC_MINOR_VERSION" -lt 71 ] && cargo update -p rustls@"$CURRENT_RUSTLS" --precise "0.23.19" --verbose
2627

2728
return 0 # Don't fail the script if our rustc is higher than the last check
2829
}

0 commit comments

Comments
 (0)