我在我的Gemfile中添加了一个与resque gem无关的新gem,并且对bundle install存在问题。我不想运行包更新,因为我不想在Gemfile.lock中进行不必要的更改。在不做太多改变的情况下,克服这个错误的最好方法是什么?我想保持我的最新版本与以前的版本一致。
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.发布于 2020-12-10 21:42:48
resque-status的问题:它的最后一次提交(到目前为止,为0.5.0版本)是五年前完成的,因此一个过时的、未维护的gem也是如此。
只要这没有更新,你应该试试运气的一些叉子。这看起来很有希望,因为它更新了版本限制在宝石中,所以尝试添加到您的Gemfile中
gem 'resque-status', git: 'https://github.com/fishisfast/resque-status.git', branch: :master另一个解决方案是尝试另一个创业板,如resque-web,它看起来“有点”更好维护,但我没有承诺任何东西。
https://stackoverflow.com/questions/65240653
复制相似问题