-
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
cargo update --breaking
doesn't respect pre release
#14178
Comments
I don't think Cargo allows upgrade pre-release versions at this moment. You may need to specify each crate separately with the That said, maybe at this moment before figuring out the correct SemVer for pre-releases, cc @torhovland |
Yes, it looks like we should not try to upgrade (or downgrade) dependencies that are currently on a pre-release. Except maybe if there is a proper release that is higher than the current pre? @epage Thoughts? I will be away for a few weeks now, so if anybody wants to tackle this, feel free. Nice to see that we are faster than |
Yes,
|
Also, being faster is easy; cargo-edit does not use the sparse registry. |
added to #12425 (comment). |
If no one on this, I will take a look |
cargo update --breaking
doesn't respect pre release
I don't know if this issue was properly addressed here — the currently nightly means that something like derive-more, on version I personally pretty strongly feel that this upgrade should be done automatically with the breaking flag? I think that's was @torhovland was getting at with:
Also, in an ideal world, I do feel like it should bump pre-releases if there are several of them — what was the issue with upgrading automatically from What do others think about that approach?
|
@TheLostLambda Much appreciate your options.
My PR just prevents
I saw @torhovland had submitted serval PR maybe relevent to your suggestions. If not, I am very pleasure to submit anthor PR to solve this issues. |
Thanks for the swift response!
That's good to know, that's what it looked like to me too!
And good to know — I'll take a look! Perhaps we should re-open this issue if it was only partially addressed by your PR? |
Isn't this what was pointed out in #14250 (comment) and is listed in the last checkbox in #12425 (comment) |
@Skgland That's a good eye! Sorry for missing those! The first one, #14250 (comment), seems to correctly point out that the first two of those tests are "unsolved" things that we'd like to support, and I agree we should support them! The second link, the last checkbox in #12425 (comment) I think matches my suggestion! These both I think are good ideas:
Though I, like the author, am less sold on:
Perhaps that's better as EDIT: Either way, I think this issue should be reopened? Or some new issue made to track that last checkbox! |
@TheLostLambda for the problem that was reported in this Issue, it has been resolved (just because it has prerelease in the title does not mean ti covers every prerelease case). This should not be re-opened. If there is another problem with the behavior, open an issue for it. |
Problem
Hello!
I use
cargo update
fromnightly
release to upgrade dependenciesHowever looks like
cargo
doesn't respect beta semver:Notice the line
Upgrading tauri ^2.0.0-beta.21 -> ^1.7.0
Steps
Then compare with https://crates.io/crates/tauri/versions
Possible Solution(s)
Respect beta versions
Notes
Also, I wanted to say that I'm really looking forward to seeing this feature, as I'm using cargo upgrade from
cargo-edit
, which takes tremendous time to upgrade dependencies, while cargo update from nightly does the same job much quicker.Version
The text was updated successfully, but these errors were encountered: