Closed blischalk closed 3 years ago
Please take a look at rangeStrategy. By default the bot only sends PRs if a new release doesn't satisfy the existing range.
What you are expecting is referred to as "bumping" in Renovate and won't happen by default because we don't like to narrow ranges unless the user opts into it. e.g. ~> 1.9.0
to ~> 1.9.1
.
What's probably a reasonable default though would be to update the lock file by default (leaving the range in-tact) but we didn't do that for historical reasons as people found the quantity of PRs out of the box overwhelming.
Thank you @rarkins . Adding 'rangeStrategy: update-lockfile' to the config allowed Renovate to pick up the patch level changes. I opened PR renovate/pull/7888 to update the docs for that config to indicate that bundler is also supported.
What Renovate type, platform and version are you using?
Latest Renovate bot release (23.94.0) in Docker. I have also forked the latest code and replicated this issue with
yarn start
.This does not seem to be platform dependent as I have reproduced the issue on GitLab and Github.
Describe the bug
Running Renovate against a Ruby code base that has patch level gem updates available upstream in Rubygems does not create pull requests to update dependencies with available patch level updates.
To Reproduce
I have created a simple sample public repo on Github here
Using a small Gemfile like the following:
That has the corresponding Gemfile.lock:
And a config.js like:
Running
yarn start
creates a config PR stating it would update Rubocop with a minor level update but no mention of the other 2 dependencies that have patch level updates.Debug logs also show that there are no available updates for the dependencies that do have upstream patch level updates available:
What I expect to happen
Merge requests are opened / would be opened upon config MR merge to upgrade:
Rubocop to ~>1.5.0 Rubocop-performance to ~> 1.9.1 Rubocop-rspec to ~> 2.0.1
What actually happens
A merge request to upgrade the minor version of Rubocop to ~> 1.5.0 is opened but no merge request for the patch level upgrades of Rubocop-performance and Rubocop-rspec occur.