rvm / rvm1-ansible

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

Installing bundler fails when using a <major>.<minor>-latest version of Ruby #205

Open gthank opened 5 years ago

gthank commented 5 years ago
---
dependencies:
  - { role: ubuntu-common }
  - { role: rvm.ruby,
      tags: ruby,
      rvm1_rubies: ['ruby-2.3-latest'],
      rvm1_ruby_install_flags: '-C --with-jemalloc',  # Use jemalloc
      rvm1_install_flags: '--auto-dotfiles',          # Remove --user-install from defaults
      rvm1_install_path: /usr/local/rvm,              # Set to system location
      rvm1_user: root                                 # Need root account to access system location
    }

fails, but the following does not.

---
dependencies:
  - { role: ubuntu-common }
  - { role: rvm.ruby,
      tags: ruby,
      rvm1_rubies: ['ruby-2.3.8'],
      rvm1_ruby_install_flags: '-C --with-jemalloc',  # Use jemalloc
      rvm1_install_flags: '--auto-dotfiles',          # Remove --user-install from defaults
      rvm1_install_path: /usr/local/rvm,              # Set to system location
      rvm1_user: root                                 # Need root account to access system location
    }

The problem seems to be that the actual version getting installed is being shown by RVM as 2.3.8-latest, and when the bundler install script greps through the installed rubies, its search for 2.3-latest gets no results.