我正在尝试在我的gem文件中指定thrift gem的版本。
gem 'thrift', "~> 0.6.0"
当我尝试运行bundle install
时,我收到此错误:
You have requested:
thrift ~> 0.6.0
The bundle currently has thrift locked at 0.5.0.
Try running `bundle update thrift`
如何找出导致它被锁定在早期版本的原因?它是否符合我在gem文件中列出的另一个gem的要求?
或者仅仅是因为安装的版本是0.5.0,并且在gem文件中指定版本不会更新已安装的gem?
答案 0 :(得分:20)
结果只是运行bundle update thrift
将显示锁定版本的内容:
$ bundle update thrift
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "thrift":
In Gemfile:
evernote depends on
thrift (~> 0.5.0)
thrift (0.6.0)