Skip to content

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

@gthank

Description

@gthank
---
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions