-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed as not planned
Labels
C-bugCategory: bugCategory: bugS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
Problem
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.toml
unless 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.
Steps
cargo +nightly -Zunstable-options update --breaking
- Notice that nothing is listed as changed
cargo upgrade
- Notice how it updates dependencies in
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
❯ cargo version --verbose
cargo 1.79.0 (ffa9cf99a 2024-06-03)
release: 1.79.0
commit-hash: ffa9cf99a594e59032757403d4c780b46dc2c43a
commit-date: 2024-06-03
host: x86_64-unknown-linux-gnu
libgit2: 1.7.2 (sys:0.18.3 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w 11 Sep 2023
os: Arch Linux Rolling Release [64-bit]
❯ cargo +nightly version --verbose
cargo 1.81.0-nightly (a515d4634 2024-07-02)
release: 1.81.0-nightly
commit-hash: a515d463427b3912ec0365d106791f88c1c14e1b
commit-date: 2024-07-02
host: x86_64-unknown-linux-gnu
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.8.0-DEV (sys:0.4.73+curl-8.8.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w 11 Sep 2023
os: Arch Linux Rolling Release [64-bit]
Skgland
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bugS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.