Skip to content

cargo upgrade is inconsistent with cargo #737

@epage

Description

@epage

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:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions