Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo upgrade is inconsistent with cargo #737

Closed
epage opened this issue Jul 14, 2022 · 2 comments
Closed

cargo upgrade is inconsistent with cargo #737

epage opened this issue Jul 14, 2022 · 2 comments

Comments

@epage
Copy link
Collaborator

epage commented Jul 14, 2022

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:

@epage
Copy link
Collaborator Author

epage commented Jul 14, 2022

cargo outdated uses the -i / --ignore flag

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

@epage
Copy link
Collaborator Author

epage commented Sep 9, 2022

#785 fixed this by removing manifest selection

@epage epage closed this as completed Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant