2011-03-08 33 views
14

我试图在我的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

你能告诉我们Gemfile.lock的? – 2011-03-08 12:05:06

回答

19

原来只是运行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) 
相关问题