Travis报告了Gemfile.lock损坏的奇怪消息

我使用bundler来安装东西,因为我已经添加了Gemfile.lock ,travis开始抱怨:

 Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section: 'echoe' 

当然,一切都在当地运作。 它也可以使用DeployBot 。 我甚至安装了docker ubuntu并尝试过,还可以。 我的Gemfile.lock没有损坏。 使用相同版本的ruby和bundler。

到底是怎么回事?

更新

这与bundler版本有关。 我使用的是1.11.0,但得到报告称它与例如。 1.8.3。 ??

由于最近发布了新的捆绑版本https://rubygems.org/gems/bundler/versions/1.11.0,我们今天在Buildkite上看到了一个非常类似的问题。

我们通过规定要安装的bundler版本来构建工作。

 gem install -v 1.10.6 bundler --no-rdoc --no-ri 

并强迫使用它

 bundle _1.10.6_ install 

首先,删除gem锁文件:

 rm -f Gemfile.lock 

然后安装依赖项:

 bundle install 

您可以更新依赖项以确保不会收到错误:

 bundle update