killercup / cargo-edit

A utility for managing cargo dependencies from the command line.
http://killercup.github.io/cargo-edit/
MIT License
3.09k stars 148 forks source link

Test output mismatch with Rust 1.78 and .cargo/config #894

Closed ptrcnull closed 5 months ago

ptrcnull commented 6 months ago

Rust version: 1.78.0 cargo-edit version: 0.12.2 + backport of 67e110a957d289b3fbd65bcb7bf243b7fe685df0

excerpt from build logs:


---- lockfile::case stdout ----
thread 'lockfile::case' panicked at tests/cargo-upgrade/lockfile/mod.rs:22:10:

---- expected: tests/cargo-upgrade/lockfile/stderr.log
++++ actual:   stderr
   1    1 |     Updating '[ROOTURL]/registry' index
   2    2 |     Checking virtual workspace's dependencies
   3    3 |     Checking four's dependencies
   4    4 |     Checking one's dependencies
   5    5 |     Checking three's dependencies
   6    6 |     Checking two's dependencies
   7    7 |    Upgrading recursive dependencies
        8 + warning: `[ROOT]/home/.cargo/config` is deprecated in favor of `config.toml`
        9 + note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`

Update with SNAPSHOTS=overwrite

---- upgrade_workspace::case stdout ----
thread 'upgrade_workspace::case' panicked at tests/cargo-upgrade/upgrade_workspace/mod.rs:22:10:

---- expected: tests/cargo-upgrade/upgrade_workspace/stderr.log
++++ actual:   stderr
   1    1 |     Updating '[ROOTURL]/registry' index
   2    2 |     Checking virtual workspace's dependencies
   3    3 |     Checking four's dependencies
   4    4 |     Checking one's dependencies
   5    5 |     Checking three's dependencies
   6    6 |     Checking two's dependencies
   7    7 |    Upgrading recursive dependencies
        8 + warning: `[ROOT]/home/.cargo/config` is deprecated in favor of `config.toml`
        9 + note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`

Update with SNAPSHOTS=overwrite
epage commented 5 months ago

I believe this was resolved in 522160cdfd057bfc993034ce8d5f776782acf609