Skip to content

Commit dcaece1

Browse files
committed
ci: use the fallback resolver for deps
1 parent 3e242f5 commit dcaece1

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎ci/test_full.sh‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ check_version() {
2121
]]
2222
}
2323

24+
export CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback
25+
generate_lockfile() {
26+
cargo generate-lockfile
27+
if ! check_version 1.85 ; then
28+
cargo +stable update
29+
fi
30+
}
31+
2432
echo "Testing $CRATE on rustc $RUST_VERSION"
2533
if ! check_version $MSRV ; then
2634
echo "The minimum for $CRATE is rustc $MSRV"
@@ -30,11 +38,7 @@ fi
3038
FEATURES=()
3139
echo "Testing supported features: ${FEATURES[*]}"
3240

33-
cargo generate-lockfile
34-
35-
# num-traits 0.2.19 started using dep: features, which requires 1.60 and is
36-
# otherwise ignored down to 1.51, but we need a manual downgrade before that.
37-
check_version 1.51 || cargo update -p num-traits --precise 0.2.18
41+
generate_lockfile
3842

3943
set -x
4044

0 commit comments

Comments
 (0)