-
Notifications
You must be signed in to change notification settings - Fork 412
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
Cannot create an alias to a version range #185
Comments
Solving this will also provide infrastructure for solving #121. a function that resolves a version to all the possible versions might be helpful for both, something like Then we can do let resolveInstalledVersion = version =>
switch (installedVersionsFor(version)) {
| [] => Error(Version_not_found)
| [version] => version
| versions => Error(Too_many_versions_found(versions))
} And then we can "decorate" the input for both Are you interested in doing a PR? I'd be happy to help over discord is someone's interested! |
Unfortunately, I'm not familiar with ReasonML. :( I did do some Ocaml stuff back in the days at the university but I'm not sure how much I remember after all these years. That said, if this doesn't require very substantial changes then maybe I'd be able to try something with some guidance. |
This is now possible thanks to @tatchi 😄 |
Hey, I'm gonna try to implement this one :) |
With
nvm
I could do this:and have the default always point to the latest installed
12.x.y
version. Withfnm
this doesn't work, you have to provide a full version:In my experience, aliasing the default to a concrete Node version is not convenient. I want a specific major as different majors may have a breaking change but other than that, I want the latest.
The text was updated successfully, but these errors were encountered: