-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change diesel compatibility messages #9927
Conversation
Diesel 1.4.8 fixes the critical behaviour. This commit changes the corresponding messages for `cargo fix` and normal builds to promt the user to just update the diesel version to fix the corresponding compilation errors.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) soon. Please see the contribution instructions for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for preparing the PR!
src/cargo/ops/fix.rs
Outdated
if pid.name() != "diesel" { | ||
return false; | ||
} | ||
Comparator { | ||
op: Op::Less, | ||
major: 1, | ||
minor: Some(4), | ||
patch: Some(8), | ||
pre: Prerelease::EMPTY, | ||
} | ||
.matches(pid.version()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be simplified a bit by just comparing with a Version:
if pid.name() != "diesel" { | |
return false; | |
} | |
Comparator { | |
op: Op::Less, | |
major: 1, | |
minor: Some(4), | |
patch: Some(8), | |
pre: Prerelease::EMPTY, | |
} | |
.matches(pid.version()) | |
pid.name() == "diesel" && pid.version() < &Version::new(1, 4, 8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
ef78977
to
dd03e40
Compare
Thanks! I'll take care of backporting this to beta later this week. @bors r+ |
📌 Commit dd03e40 has been approved by |
☀️ Test successful - checks-actions |
Update cargo 7 commits in 9a28ac83c9eb73e42ffafac552c0a55f00dbf40c..0121d66aa2ef5ffa9735f86c2b56f5fdc5a837a6 2021-09-18 15:42:28 -0500 to 2021-09-22 16:08:27 +0000 - Implement example completion for zsh (rust-lang/cargo#9939) - Bump curl-sys dependency (rust-lang/cargo#9937) - Add fetch smoke test. (rust-lang/cargo#9921) - Differentiate tests in progress bar. (rust-lang/cargo#9934) - Remove TOML incompatibility hacks (rust-lang/cargo#9932) - Change diesel compatibility messages (rust-lang/cargo#9927) - Remove broken link in contrib docs. (rust-lang/cargo#9928)
@ehuss What's the state of the beta backport? |
The beta update is waiting to be batched with a curl update, which we wanted to let ride on nightly for a bit to detect any major issues. It will probably happen next week. |
Change diesel compatibility messages Diesel 1.4.8 fixes the critical behaviour. This commit changes the corresponding messages for `cargo fix` and normal builds to prompt the user to just update the diesel version to fix the corresponding compilation errors. As discussed in rust-lang/rust#88903 (comment) Fixes rust-lang/rust#88903 Fixes rust-lang#9450
Diesel 1.4.8 fixes the critical behaviour. This commit changes the
corresponding messages for
cargo fix
and normal builds to prompt theuser to just update the diesel version to fix the corresponding
compilation errors.
As discussed in rust-lang/rust#88903 (comment)
Fixes rust-lang/rust#88903
Fixes #9450