首页 > 解决方案 > 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

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?

标签: rubytravis-ci

解决方案


Have you tried a before_install step to upgrade bundler before it attempts bundle gem install?

before_install: gem update bundler

推荐阅读