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

ruby-head won't install with ruby 3 #5112

Closed
BrianHawley opened this issue Jul 22, 2021 · 0 comments · Fixed by #5115
Closed

ruby-head won't install with ruby 3 #5112

BrianHawley opened this issue Jul 22, 2021 · 0 comments · Fixed by #5115

Comments

@BrianHawley
Copy link
Contributor

Description

I want to be able to install ruby-head if I only have ruby 3 installed, but it looks for ruby 2, and tries to install truffleruby if it doesn't find it (which is not available on all platforms).

Steps to reproduce

  1. Install rvm and get master, if it isn't installed.
  2. If any MRI ruby 2 or 1.9 is installed, uninstall it so it doesn't get chosen.
  3. rvm install ruby-head

Expected behavior

If you don't have any MRI ruby installed, it should install the latest MRI ruby release (3.0.2 at the time of writing), then attempt to install ruby-head. If you have a MRI ruby 3 installed, it should use it to attempt to install ruby-head.

Actual behavior

It doesn't use ruby 3 to install ruby-head. Instead, it tries to install the latest truffleruby (which fails on the platform I tested) rather than the latest ruby.

I don't have command logs because I did this on a platform where it would be awkward to retrieve them. However, I tracked down the cause and will be making a PR.

BrianHawley added a commit to BrianHawley/rvm that referenced this issue Jul 22, 2021
* Adds ruby 3 as an allowed ruby to install ruby-head with.
* Be more specific about checking MRI rubies to exclude non-MRI rubies
  with the MRI ruby prefix somewhere in the version string.

Fixes rvm#5112.
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

Successfully merging a pull request may close this issue.

1 participant