ci: check direct minimal versions#4173
Open
ricochet wants to merge 2 commits intolaunchbadge:mainfrom
Open
Conversation
Switch minimal-versions CI check to direct-minimal-versions Avoids failures caused by incorrect lower bounds in transitive dependencies (e.g. native-tls 0.2.12 declaring openssl ^0.10.29 but requiring >= 0.10.46 for Pkcs12::parse2). direct-minimal- versions only resolves our own declared lower bounds to their minimums.
To eliminate another dep to manage, brought in launchbadge#4171 All workspace Cargo.toml files bumped direct dependency minimum versions to be compatible with transitive requirements under direct-minimal-versions: - memchr 2.4.1 → 2.5.0 (winnow needs ^2.5) - futures-* → 0.3.31 (futures-util needs futures-core ^0.3.31) - serde → 1.0.218, serde_json → 1.0.85 - proc-macro2 → 1.0.83, syn → 2.0.87, quote → 1.0.35 - tokio → 1.20.1, time → 0.3.37, uuid → 1.12.1 - smallvec → 1.10.0, bitflags → 2.4, percent-encoding → 2.3.0 - rand → 0.8.5, dotenvy → 0.15.7, plus many others Aligned all examples to the same minimums, then regenerated Cargo.lock with normal resolver.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switch minimal-versions CI check to direct-minimal-versions
Avoids failures caused by incorrect lower bounds in transitive dependencies (e.g. native-tls 0.2.12 declaring openssl ^0.10.29 but requiring >= 0.10.46 for Pkcs12::parse2). direct-minimal-versions only resolves our own declared lower bounds to their minimums.
To eliminate another dep to manage, brought in #4171
All workspace Cargo.toml files bumped direct dependency minimum versions to be compatible with transitive requirements:
Essentially looping until
cargo +nightly generate-lockfile -Z direct-minimal-versionsandcargo build --all-featuresran clean.Aligned all examples to the same minimums, then regenerated Cargo.lock with normal resolver.
Does your PR solve an issue?
This is an alternative approach to fixing CI on main, as opposed to bumping our minimal version for openssl in #4172
Is this a breaking change?
No