-
Notifications
You must be signed in to change notification settings - Fork 785
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
Add ability to omit Ruby minor/patch version when installing #2165
Comments
My personal opinion is that it might make sense to allow emitting patch (though I don't mind how it works currently), but it rarely makes sense to omit minor. |
ref: pyenv/pyenv#2487 |
Duplicate of #261 which has been considered and rejected. Extra questions that must be answered were this to be considered:
|
If it is not acceptable to have fuzzy matching to install/use the latest version, then a useful behavior can be that a fuzzy match will result in a message "The latest available version of ruby 2 is ruby 2.1.99 you can install this with Rbenv install 2.1.99" Or whatever syntax is required to show the customer |
@jasonkarns True, but I'm willing to reconsider it. Sometimes I'm lazy and I'd like for ruby-build to just install me the latest version of Ruby 3, whichever that is. Note that if this ships, fuzzy version matching would only work when installing, but not when activating a Ruby version through rbenv.
That's a good question! I'd vote for installing the latest available matching version, unless that exact version is already installed.
@fulldecent That is also a good idea; thanks! Let me think about this for a while. |
FWIW, I've poked at this with nodenv a bit. The issue we've run into is how tightly ruby-build couples the build definition file and the resulting built ruby. So what I had spiked out a few times was to add a generic function (to be used by the build def) to node-build that renames a built version according to its actual full version name. Then we could have a build definition just named We kept hitting gotchas, but nothing seemed horribly broken by the approach. |
Please make this work:
rbenv install 2
this and 2.7 should currently install 2.7.7.
The text was updated successfully, but these errors were encountered: