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

Prune versions not referenced in juliaup.json with --prune-orphans #1146

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

Conversation

christiangnrd
Copy link
Contributor

@christiangnrd christiangnrd commented Jan 17, 2025

I took a look at #1129 and it seems like if a direct download channel was deleted and the .juliaup folder was not, it would forever be ignored by the gc command. I attempt to address it by adding a --prune-orphans flag similar to the --prune-linked flag that will remove any folder that starts with "julia-" that is not referenced by the "juliaup.json" config file.

Name is definitely open for suggestions, and I'd love suggestions to make my code more idiomatic. At the moment it feels clunky.

If this approach is accepted, I'll write a test.

I also add some clarifying comments to the SystemChannel code to make it easier to understand.

This is to remove julia folders in the juliaup folder whose path is not referenced in juliaup.json

This will typically clean up direct download version that were somehow not removed.
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.

1 participant