Ruby-head builds fail on xenial at `bundle exec rake`

https://travis-ci.com/site-prism/site_prism-all_there/jobs/212256927#L338

gem install bundler -v ‘< 2’
Fetching bundler-1.17.3.gem
Successfully installed bundler-1.17.3
1 gem installed
install.bundler
45.52s
$ bundle install --jobs=3 --retry=3
Fetching gem metadata from https://rubygems.org/
Resolving dependencies…
Using rake 12.3.2
{and many others}

Bundle complete! 6 Gemfile dependencies, 30 gems now installed.
Use bundle info [gemname] to see where a bundled gem is installed.
Post-install message from rubocop:
Performance Cops will be removed from RuboCop 0.68. Use rubocop-performance gem instead.
Put this in your Gemfile.
gem ‘rubocop-performance’
And then execute:
$ bundle install
Put this into your .rubocop.yml.
require: rubocop-performance
More information: https://github.com/rubocop-hq/rubocop-performance

0.59s
$ bundle exec rake
Traceback (most recent call last):
3: from /home/travis/.rvm/gems/ruby-head/bin/ruby_executable_hooks:24:in <main>' 2: from /home/travis/.rvm/gems/ruby-head/bin/ruby_executable_hooks:24:ineval’
1: from /home/travis/.rvm/gems/ruby-head/bin/bundle:23:in <main>' /home/travis/.rvm/gems/ruby-head/bin/bundle:23:inload’: cannot load such file – /home/travis/.rvm/rubies/ruby-head/lib/bin/bundle (LoadError)

https://travis-ci.com/site-prism/site_prism-all_there/jobs/212256927#L247

Try removing the bundler that comes with ruby-head.

This doesn’t work as it is a default gem. And just crashes the system.

This feels a bit of a hacky workaround also…

https://travis-ci.com/site-prism/site_prism-all_there/jobs/212546163

I’ve tried a couple of ways of doing this to no avail. I’ve also reinstalled the previous bundler again, but again nothing seems to want to work.

I’m guessing this isn’t specifically a travis issue, but it’s a pain to triage because ruby-head previously did work. Is there any direct contacts you have there?

This is a bundler issue, and the same thing was happening in Puma CI. It works for bundler as a gem install, works in Ruby Core CI, but does not work when installed as a default gem with nested bundler calls…

I’ve got a PR open in bundler for it.

1 Like