Skip to content

Don't orphan old julia versions when failing to delete them. #1205

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ghyatzo
Copy link
Contributor

@ghyatzo ghyatzo commented May 10, 2025

Alternative to #1146 fixes #1153

only remove a version from the installed version database if we successfully deleted them.
When failing to remove a version, at least on windows, it is most likely that that version is still running somewhere.
Added a bit of text to hint at that possibility.

With this change juliaup gc works as intended after that message.

regarding #1146: it might still be useful to have orphan pruning capabilities as a fallback, but i've opted to keep the two PRs separate for easier review and merging

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.

Julia versions assumed removed even if failing to remove them, leads to orphaned versions.
1 participant