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

juliaup gc should remove compiled and environments folders that are no longer needed #1039

Open
numbermaniac opened this issue Sep 6, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@numbermaniac
Copy link

I had Julia release 1.10.5 and beta 1.11rc3 both installed using Juliaup. I used juliaup remove release to remove the 1.10.5 installation, and then afterwards, used juliaup gc. To my surprise, the .julia/compiled/v1.10/ and .julia/environments/v1.10/ folders remained, which is significant because the first one was using 700MB of storage. I would've expected them to be deleted since they're no longer needed.

It would be great if juliaup gc could detect when such folders are no longer needed and remove them accordingly. Thank you!

(If it helps: Juliaup 1.17.4, macOS 14.6.1)

@davidanthoff
Copy link
Collaborator

My gut feeling is that we can/should do something about the .julia/compiled folder, but not .julia/environments. The compiled folder is really just a cache/optimization, so deleting that seems fine. But the environments folder is really user-controlled/created data, and I think we should just never delete anything there.

@davidanthoff davidanthoff added the enhancement New feature or request label Sep 6, 2024
@KristofferC
Copy link
Sponsor Member

Should imo be a part of Pkg.gc since that already handles artifacts and packages.

@davidanthoff
Copy link
Collaborator

But Pkg.gc presumably doesn't know which Julia versions are installed, right?

@numbermaniac
Copy link
Author

Yeah - I assume a Pkg in one Julia installation wouldn't know what other Julia installations you have, so it would need to be managed by juliaup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants