Skip to content
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

Merged
merged 2 commits into from
Sep 21, 2021

Conversation

weiznich
Copy link
Contributor

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 #9450

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.
@rust-highfive
Copy link

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.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 20, 2021
Copy link
Contributor

@ehuss ehuss left a 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!

Comment on lines 326 to 336
if pid.name() != "diesel" {
return false;
}
Comparator {
op: Op::Less,
major: 1,
minor: Some(4),
patch: Some(8),
pre: Prerelease::EMPTY,
}
.matches(pid.version())
Copy link
Contributor

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:

Suggested change
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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

@ehuss
Copy link
Contributor

ehuss commented Sep 21, 2021

Thanks! I'll take care of backporting this to beta later this week.

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 21, 2021

📌 Commit dd03e40 has been approved by ehuss

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 21, 2021
@bors
Copy link
Collaborator

bors commented Sep 21, 2021

⌛ Testing commit dd03e40 with merge e79ba78...

@ehuss ehuss added the beta-nominated Nominated to backport to the beta branch. label Sep 21, 2021
@bors
Copy link
Collaborator

bors commented Sep 21, 2021

☀️ Test successful - checks-actions
Approved by: ehuss
Pushing e79ba78 to master...

@bors bors merged commit e79ba78 into rust-lang:master Sep 21, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 22, 2021
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)
@weiznich
Copy link
Contributor Author

@ehuss What's the state of the beta backport?

@ehuss
Copy link
Contributor

ehuss commented Sep 29, 2021

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.

ehuss pushed a commit to ehuss/cargo that referenced this pull request Oct 4, 2021
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
@ehuss ehuss mentioned this pull request Oct 4, 2021
bors added a commit that referenced this pull request Oct 4, 2021
[beta] 1.56 backports

Beta backports of:

- #9937 — Bump curl-sys to 0.4.48 with curl 7.79.1 which will hopefully fix the http2 errors
- #9927 — Change diesel compatibility messages
@ehuss ehuss modified the milestones: 1.57.0, 1.56.0 Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-nominated Nominated to backport to the beta branch. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to the 2021 edition via cargo fix breaks code Building diesel fails using resolver = "2"
4 participants