我怎样才能找出为什么宝石包已经锁定特定版本的宝石?

时间:2011-03-08 11:38:48

标签: ruby gem bundler

我正在尝试在我的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?

1 个答案:

答案 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)