-
Notifications
You must be signed in to change notification settings - Fork 43
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
Garbage collection functionality #150
Comments
Yes, I have some thoughts on this: Some options:
|
Do you mean Artifacts.jl in Pkg.jl? FWIW, I do think the flexibility (e.g., |
Yeah, is Artfiacts part of Pkg right now? I thought it was a seperate stdlib.
Agreed. |
I think maybe the dynamic artifact creation in OhMyArtifacts.jl might work to achieve option 3. |
I think it's doable but would take some effort to integrate the two. There are some problems and behavior differences need to be resolved. Things like:
OTOH using Scratch.jl might probably be the most effortless and behavior consistent approach (though 1. 2. remains), we can just store each DataDep in a scratchspace folder and bind the lifetime to the caller project with |
@oxinabox I just tag a new release for OhMyArtifacts.jl. It should be able to handle directory now. I can try to make a PR to switch the backend to it, do you have a pointer on what files I would need to modified? |
Maybe scratch spaces, as you say are the better way to do this. |
It'd be really cool if DataDeps had a
gc
function which could identify old datadeps that aren't referenced/needed anymore and suggest deleting them. I'm not quite sure how it work, but it wouldn't need to be perfect. It could just make a best guess, ask the user, and they can always redownload things they actually need.The text was updated successfully, but these errors were encountered: