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

gem install bundler -v ‘< 2’
Fetching bundler-1.17.3.gem
Successfully installed bundler-1.17.3
1 gem installed
$ bundle install --jobs=3 --retry=3
Fetching gem metadata from
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:

$ 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)

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…

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