Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gthank opened this issue Aug 20, 2019 · 0 comments
Open

Comments

@gthank
Copy link

gthank commented Aug 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant