rvm / rvm1-ansible

The official ansible RVM role to install and manage your Ruby versions.
MIT License
271 stars 136 forks source link

bundler requires RubyGems version >= 3.0.0 #193

Closed thbar closed 5 years ago

thbar commented 5 years ago

On an existing Ansible setup using this role, or for a fresh install, I'm getting this error:

TASK [rvm_io.ruby : Install bundler if not installed] ******************************************************************************************
# SNIP
  stderr: |-
    ERROR:  Error installing bundler:
            The last version of bundler (>= 0) to support your Ruby & RubyGems was 1.17.3. Try installing it with `gem install bundler -v 1.17.3`
            bundler requires RubyGems version >= 3.0.0. The current RubyGems version is 2.7.6. Try 'gem update --system' to update RubyGems itself.

If I understand correctly, this will affect anyone using this role without rvm1_bundler_install: False.

My understanding is that the available fixes are:

I will likely attempt to use the third solution for now, but wanted to document this since it will likely affect other rubyists.

thbar commented 5 years ago

There will be a bundler fix to avoid this problem https://github.com/bundler/bundler/pull/6867

thbar commented 5 years ago

The release of bundler v2.0.1 solves this for me.

Ideally, being able to pass a version (like in #191, but optional) would be great.

I'll close this for now.