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

fix(cargo): set default rangeStrategy to 'bump' #4751

Merged
merged 2 commits into from Oct 31, 2019

Conversation

nchashch
Copy link
Contributor

Change cargo manager's default rangeStrategy to bump.

It fixes unexpected "downgrading" behavior when updating normal versions like 0.9.21, which are treated as caret ranges by cargo.

For example if rangeStrategy is 'replace', an update like 0.9.21 -> 0.9.22 will result in newValue = 0.9.0, because "caret range" 0.9.0 contains both =0.9.21 and =0.9.22.

Tested with an example crate on gitlab.

Closes #4620

* It fixes unexpected "downgrading" behavior when updating normal
  versions like `0.9.21`, which are treated as caret ranges by cargo.

  For example if rangeStrategy is 'replace', an update like
  `0.9.21` -> `0.9.22` will result in newValue = `0.9.0`, because
  "caret range" `0.9.0` contains both `=0.9.21` and `=0.9.22`
@nchashch nchashch changed the title Fix/cargo downgrade bug fix: Fix cargo downgrade bug Oct 30, 2019
@rarkins
Copy link
Collaborator

rarkins commented Oct 30, 2019

Sounds like our “replace” strategy is flawed though?

@rarkins rarkins changed the title fix: Fix cargo downgrade bug fix(cargo): set default rangeStrategy to 'bump' Oct 31, 2019
@rarkins rarkins merged commit f2534bc into renovatebot:master Oct 31, 2019
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 19.65.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renovate downgrade rust reqwest crate
3 participants