-
Notifications
You must be signed in to change notification settings - Fork 868
self update mechanism for 0.16+ #1913
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
Comments
Hi @jeffguorg , using your OS-package manager, |
@Stratus3D get it. still thanks to you and community for your great work!
sure! it is exciting to have it in system package manager. but
So people like me still want a way to use the latest version, while it is still managed somehow, by itself or by system package manager, instead of just been put in the PATH and updated by hand. and we don't want to deal with PPAs or COPR, which increases the complexity of system management. in such cases, the need of self update is still sensible. i understand it is a choice already made and i believe it is a good choice, just searching for a method that make it work better. |
There are definitely downsides to our approach. We may re-visit this in the future. |
A dedicated command would be great. Or we could have a plugin to manage the versions of asdf itself: asdf plugin add asdf
asdf install asdf latest
asdf global asdf latest |
it will not work for now. I have tried that. you don't even need an new asdf plugin. just use golang plugin and write
how asdf works:
why plugin managed asdf does not workif you put an shim to asdf to shims directory, it will loop between step 2 - 3
a possible solution, a patch to asdf, could be that: when asdf update the shims, it tries to resolve the absolute path to it self by os.Executable and use it in shims whenever possible. but here is the problem: you need to reshim EVERY TIME YOU UPDATE ASDF and it can break easily. i think it can work theoretically but will not work in reality. |
Is your feature request related to a problem? Please describe
hi. i was using asdf for a few years. it's fantastic when i need to setup and sync development environment across a few boxes. i can update plugins, installations, default packages, and of course i can
asdf update
to update asdf itself.but since 0.16 asdf has no self update mechanism, i can no longer update itself.
on some system asdf is packaged and thus i can install it with package manager. it's good. but what about other systems?
Describe the proposed solution
i just want asdf update or similar things to manage itself
Describe similar
asdf
features and why they are not sufficientasdf update
is the closest thing, but it is removedDescribe other workarounds you've considered
i...
i'm thinking about something like https://github.com/fynelabs/selfupdate or https://github.com/minio/selfupdate
The text was updated successfully, but these errors were encountered: