我使用 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,但收到报告说它可以与 eg 一起使用。 1.8.3. ??
最佳答案
我们今天在 Buildkite 上看到了一个非常相似的问题由于最近发布了新的 bundler 版本 https://rubygems.org/gems/bundler/versions/1.11.0
我们通过规定要安装的 bundler 版本来构建工作。
gem install -v 1.10.6 bundler --no-rdoc --no-ri
并强制使用它
bundle _1.10.6_ install
关于ruby - 特拉维斯报告损坏的 Gemfile.lock 的奇怪消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34276324/