-
Notifications
You must be signed in to change notification settings - Fork 139
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
Support multiple activated versions with hierarchical preference #153
Comments
I'll have to look into the code to see how complex the solution is. A related feature I've been planning to take on (both for nodenv and rbenv upstream) is to allow the shims to "fall through" whenever an executable doesn't exist within the active version. So instead of an executable being invoked from another nodenv version, the call is invoked as if the shims didn't exist, and thereby invoking the next available match from |
Thanks for looking into this! If the pyenv implementation isn't too complex, I think it would be preferred to fall through as the fall through feature is really just a subset of the pyenv feature: fall through to the next available in The fall through feature definitely sounds simpler to implement. However, it might require an additional setting for users as part of The example scenario of The pyenv solution is elegant in that it's a superset of fall through and it wouldn't require adding a fall through toggle in |
This is the related thread which started my thinking along this line in rbenv a while back: rbenv/rbenv#865 |
It would be useful if users could specify multiple versions to have active at once like you can with
pyenv
. See here for documentation (Ctrl+F "advanced").For example, consider if a package that provides
~/.nodenv/versions/11.1.0/bin/program
is installed but no program is installed to~/.nodenv/versions/12.0.0/bin/program
. Settingnodenv global 12.0.0 11.1.0
could allow thenode
andnpm
shims to call Node 12.0.0 while allowing theprogram
shim to fall back and call 11.1.0 sinceprogram
is not present at~/.nodenv/versions/12.0.0/bin/program
.Thanks for the great work!
The text was updated successfully, but these errors were encountered: