cargo-edit icon indicating copy to clipboard operation
cargo-edit copied to clipboard

cargo upgrade is inconsistent with cargo

Open epage opened this issue 3 years ago • 1 comments

Normally, cargo commands have the following flags to control which packages are selected

  • --workspace to select all workspace members
  • --pkgid to select specific packages in a workspace
  • --exclude to de-select specific packages in a workspace

cargo upgrade instead has

  • --workspace normal
  • --pkgid normal
  • --exclude instead this is selecting which dependencies to not upgrade, the opposite of the positional arguments

cargo update follows the standard model by the selector flags control selecting packages in the lock file to upgrade.

Other precedence:

  • poetry doesn't have bulk upgrading yet, see https://github.com/python-poetry/poetry/issues/461
  • For yarn and pnpm, its unclear to me whether they are more like cargo update or cargo upgrade and if there is any precedent we can pull from

epage avatar Jul 14 '22 19:07 epage

cargo outdated uses the -i / --ignore flag

See https://crates.io/crates/cargo-outdated

epage avatar Jul 14 '22 20:07 epage

#785 fixed this by removing manifest selection

epage avatar Sep 09 '22 15:09 epage