Home > other >  Dependabot failing to upgrade Ruby dependency
Dependabot failing to upgrade Ruby dependency

Time:07-14

I have dependabot integrated into a github repo that I control. I've noticed that dependabot is no longer opening PRs for outdated dependencies, such as rubocop and rubocop-rspec.

I have an open ticket in the dependabot-core repo that describes the issue in more detail, including a log from an update attempt. However, the developers seem to have abandoned the ticket.

Could someone help me identify and resolve the issue with dependabot upgrades?

CodePudding user response:

The issue is that rubocop v1.30.0 bumped the minimum required ruby version to 2.6.

The gemspec in the repo specified the required_ruby_version as >= 2.5.0, which dependabot seems to consider to be incompatible with the rubocop requirement. (I think this is overly strict, as rubocop still supports a a TargetRubyVersion of 2.5.)

Nonetheless, bumping the required_ruby_version to >= 2.6.0 has unblocked the dependabot upgrades.

  • Related