ruby - Travis builds on Ruby 2.6.3 have bundler version mismatch
问题描述
When we upgraded our Rails app to use 2.6.3, with the version specified in
.ruby-version
Gemfile
.travis.yml
we get the problem that the "system bundler" with Ruby 2.6.3 is not the same version as the latest version of bundler
which is 2.0.1
So we get this error message
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
This doesn't happen with Ruby 2.5.3. I am guessing if we added a pre-install step to maybe delete the system bundler that would solve the problem. Would there be any other solutions?
解决方案
Have you tried a before_install
step to upgrade bundler
before it attempts bundle gem install
?
before_install: gem update bundler
推荐阅读
- visual-c++ - 如何避免重新编译未更改的代码?
- php - 在 Centos 7 上为 Laravel 5.6 安装 PHP 7.2
- android - android源代码中的问题,我该如何解决?
- c++ - std::set 构造函数签名混淆
- javascript - 我不能有选择地在一个元素上运行我的函数
- java - 无法使用 ***Spring Boot*** 在名称为“dispatcherServlet”的 servlet 中解析名称为“homePage”的视图
- windows - cpan shell 错误 - ActivePerl 5.24.3
- php - 使用 PHP 的证书固定不起作用
- sql - 如何将值列设置为值行?
- xamarin - Android 5 中不显示编辑器文本