-
Notifications
You must be signed in to change notification settings - Fork 7
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
Allow to specify version from command line or via environment variables #21
Comments
Apart from this, for development purposes, I have always dreamed, if I can put into my project some dot file, which would help to override the system defaults for specific project (BTW this is something similar to what Windows does with manifest files). |
Or maybe even for runtime? E.g. if shebang specified |
Yes, this is what it does already. It does runtime re-exec of some name, like /usr/bin/node, to a specific versioned one, like /usr/bin/node18. The path is not even taken into account, so you could do this like /home/user/bin/ruby -> /usr/bin/alts and have it redirect based on some priority setting. Currently, the overrides happen on system or user level. So for users, at present it will look in your What could be done is something like What do you think? |
I think that first something like |
This would change behaviour quite a bit from current and also it would be less efficient. It would mean reading directory of every parent until there is something found (like nodejs, for example). But if we went with it, it would need another env variable for this alternative behaviour. so something like, |
RubyGems has stubs doing something similar to alts and they supports to execute the alternative version from command line, e.g. given there is
rdoc
command, you can runrdoc _4.6.0_
which executes the 4.6.0 version.Similarly, there is used rubypick on Fedora to execute Ruby, where there are also supported environment variables to influence the version executed.
The text was updated successfully, but these errors were encountered: