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 should have options to include / exclude semver-incompatible versions #247

Closed
shepmaster opened this issue Sep 30, 2018 · 2 comments

Comments

@shepmaster
Copy link

When updating my dependencies, I tend to run just plain cargo update as I generally only care about updating my lockfile. About the only time I'm interested in changing the manifest file is when I need to make changes for semver reasons. Specifically, I want to know when a new semver-incompatible version of a dependency has been released and I want to

  • Support both the old and the new version
  • Support only the new version

The fact that cargo upgrade changes semver-compatible versions is mostly annoying to me — I don't want to force my downstream users to be more tightly constrained than they need to be.

I would propose that an option be added to allow only changing versions of those dependencies where the newer version is not semver compatible with the current version.

@vi
Copy link

vi commented Dec 23, 2018

Workaround: Run cargo update, then cargo outdated -d 1, followed by cargo upgrade <manually specified list from cargo oudated>

@DCjanus
Copy link
Contributor

DCjanus commented Jan 11, 2020

Shoule be closed by #360

@ordian ordian closed this as completed Jan 11, 2020
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

4 participants