You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was led to believe that cargo +nightly -Zunstable-options update --breaking should be a drop-in replacement for cargo upgrade -i. But it isn't. Specifically it doesn't seem to upgrade Cargo.tomlunless there is a breaking change.
I use cargo upgrade to upgrade to new minor versions in Cargo.toml too. There are several reasons for this:
As I'm on the latest version when developing, I can't be sure I'm not relying on some new API that didn't exist in the version that is declared in Cargo.toml. While I believe there is some "min-version" flag to test with, I prefer to just force everything the latest. (No I don't care about LTS distros like Debian etc, not one bit, nor about people who are not on the most recent stable Rust. My MSRV is N.)
If there are any security issues in a dependency I'd also prefer to force the latest version there too.
cargo update --breaking is not a direct replacement for cargo upgrade -i. When designing how update of breaking changes can be integrated into cargo update, we viewed --breaking as a "force" flag that will cause the requirements to change that are needed to make the update go forward.
The design was specified in #12425 (comment) and #12425 is in general the issue for this level of design discussion.
Closing in favor of #12425. If there is a reason for us to keep this open separately, let us know!
As i said, the linked issue is responsible for the design and feedback should be given there. We tried to socialize this through the Internals design thread, fcp, etc to ensure timely feedback before implementation. We are close to having a full implementation and planned to do Call for Testing to get more direct feedback.
In commenting on the design, I'd recommend first read the two comments of mine at the top of the issue and tailor your feedback with those comments in mind.
Problem
I was led to believe that
cargo +nightly -Zunstable-options update --breaking
should be a drop-in replacement forcargo upgrade -i
. But it isn't. Specifically it doesn't seem to upgradeCargo.toml
unless there is a breaking change.I use
cargo upgrade
to upgrade to new minor versions inCargo.toml
too. There are several reasons for this:Cargo.toml
. While I believe there is some "min-version" flag to test with, I prefer to just force everything the latest. (No I don't care about LTS distros like Debian etc, not one bit, nor about people who are not on the most recent stable Rust. My MSRV is N.)Steps
cargo +nightly -Zunstable-options update --breaking
cargo upgrade
Cargo.toml
as well.Possible Solution(s)
Possibly some people want this behaviour? So maybe add yet another flag to toggle that?
Notes
The behaviour described above can be observed on https://github.com/VorpalBlade/paketkoll (revision 0747756e401d304748c7d98c432df35eef44ac97) if you need to test it out.
Version
The text was updated successfully, but these errors were encountered: