当我们将Rails应用程序升级为使用2.6.3时,其版本指定为
.ruby-version
Gemfile
.travis.yml
我们遇到的问题是Ruby 2.6.3的“系统捆绑器”与bundler
的最新版本2.0.1的版本不同
因此我们收到此错误消息
Fetching bundler-2.0.1.gem
bundler's executable "bundle" conflicts with /home/travis/.rvm/rubies/ruby-2.6.3/bin/bundle
Overwrite the executable? [yN]
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated
在Ruby 2.5.3中不会发生这种情况。我在猜测是否我们添加了预安装步骤来删除可能解决问题的系统捆绑程序。还有其他解决方案吗?
答案 0 :(得分:1)
您是否尝试过before_install
步骤来升级bundler
,然后再尝试bundle gem install
?
before_install: gem update bundler