Search code examples
ruby-on-railsrubyrubygemsbundler

resque-status is not compatible with my current resque version


I added a new gem to my Gemfile unrelated to the resque gem and I've having issues with bundle install. I do not want to run bundle update because I don't wan't to make unnecessary changes within the Gemfile.lock. What is the best way to get past this error without making too many changes? I want to keep my resque versions consistent with previous versions.

Bundler could not find compatible versions for gem "resque":
  In snapshot (Gemfile.lock):
    resque (= 2.0.0)

  In Gemfile:
    resque (~> 2.0.0)

    resque-status was resolved to 0.5.0, which depends on
      resque (~> 1.19)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Solution

  • The problem with resque-status: its last commit (to date, for 0.5.0 version) was done 5 years ago, so is a pretty outdated and unmaintained gem.
    As long as this isn't updated, you should try luck with some of the forks. This looks promising, as it update the version restrictions in the gemspec, so try adding to your Gemfile:

    gem 'resque-status', git: 'https://github.com/fishisfast/resque-status.git', branch: :master
    

    Another solution is trying with another gem, like resque-web, which looks "a bit" more maintained, but I don't promise anything.