Skip to content
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

Force user to provide a version when uninstall #267

Merged
merged 1 commit into from
May 19, 2023

Conversation

hugo-tubi
Copy link
Contributor

As described in #266, if user type asdf uninstall erlang without a version, the kerl installation state will be break. The packages will be removed (i.e. the directory ~/.asdf/installs/erlang/ will be empty. However a re-installation on the same version will not work (unless manually touch files like ~.asdf/plugins/erlang/kerl-home/otp_installation.

This PR can prevent that situation. Other options may also possible, please guide me if we want go other options.

P.S I didn't add validation on version provided, since if the user type a asdf uninstall erlang <version-non-exists>, adsf would tell and refuse to continue, which is cool!

@natterstefan
Copy link

natterstefan commented Apr 27, 2023

Hi @hugo-tubi.

Thanks for adding this PR. After stumbling upon the same issue, I'd be happy if I'd known this before. Eventually, this - or your PR - helped me #266 (comment).

I'm looking forward to seeing this PR get merged.

@Stratus3D Stratus3D merged commit 1fdeee0 into asdf-vm:master May 19, 2023
@Stratus3D
Copy link
Member

Thanks for the PR @hugo-tubi !

@hugo-tubi hugo-tubi deleted the fix-uninstall branch May 22, 2023 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants