-
Notifications
You must be signed in to change notification settings - Fork 780
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 "latest" in .tool-versions #1012
Comments
Updating your global deps is something you can script and run in user space, similar to most system package managers where installation of updates is opt-in on an update by update basis (note that We do not want to support this type of feature in
@Stratus3D I will PR an FAQ item for this issue so we can link to it in future. And and also propose an update to the legacy versions file support docs so we can link to it in discussions like asdf-vm/asdf-nodejs#235. |
Thanks, sounds good! |
I only recently found this discussion, and I can see that maintainers of ...before I found this discussion, and I realise now that it's unlikely to get merged, but I still would like to ask if there's any room for allowing users to express their preferences on variability. Given the range of tools/ecosystems that This means that for projects in those ecosystems, there is little incentive to pin to fully-specified versions like At the Guardian we have several hundred projects that run on the Java platform, and due to our security obligations we generally want to be running under the latest security-patched version of the Java runtime that matches our major-version requirement. We love I think there are at least some users who would accept some variability in exchange for staying up-to-date, and it's worth considering whether it's reasonable to allow them to select that. In terms of the existing |
Is your feature request related to a problem? Please describe
I would like the default version of various tools on my system to always be the latest available version.
Describe the proposed solution
I propose adding support for the special value "latest" within
.tool-versions
files. It would evaluate to the latest available version for that particular tool.One concern I see with this is the need to frequently check for updates to a given tool. To avoid this, available versions of a tool could be cached for some duration. Ideally, this duration would be configurable by the user.
Describe similar
asdf
features and why they are not sufficientCurrently, I can run
asdf global my-tool latest
, and the version in my global settings (~/.tool-versions
) will be set to the latest available version. However, when a new version of the tool is released, the default remains set to whatever value latest evaluated to when I last ran the command.Describe other workarounds you've considered
I've considered changing my
.zshrc
file to check for updates at shell launch, but this obviously has a significant negative impact on shell startup time.Another possible workaround is a
cron
job that would run a script to check for updates. This would work, but I ultimately feel this functionality may be useful enough to justify being built-in.The text was updated successfully, but these errors were encountered: