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

Clean up old downloaded dependencies no longer in use #3438

Open
AuroraLS3 opened this issue Jan 28, 2024 · 3 comments
Open

Clean up old downloaded dependencies no longer in use #3438

AuroraLS3 opened this issue Jan 28, 2024 · 3 comments
Labels
Improvement (UX) Issues that suggest enhancing user experience using the plugin

Comments

@AuroraLS3
Copy link
Collaborator

I would like to be able to..

Automatically clean up /plugins/Plan/libraries folder of unused libraries

Is your feature request related to a problem? Please describe.

When updating library versions the old versions stay behind in the library folder without being deleted.

The resource files generated by DependencyDownload could be read to verify which files should be deleted as they have a hash in them.

@AuroraLS3 AuroraLS3 added the Improvement (UX) Issues that suggest enhancing user experience using the plugin label Jan 28, 2024
@Vankka
Copy link
Contributor

Vankka commented Feb 17, 2024

DependencyManager has a cleanupCacheDirectory method, though that only accounts for the dependenc(y/ies) in that DependencyManager.

I opened Vankka/DependencyDownload#18 for adding the cleanup method to ApplicationDependencyManager (allows managing single-use DependencyManagers) which would make this much easier to solve with multiple DependencyManagers in use

@AuroraLS3
Copy link
Collaborator Author

Thanks! :)

@AuroraLS3
Copy link
Collaborator Author

Yep looks like using the cleanupCacheDirectory cleans any files not loaded by that DependencyManager, so if used by both, all files will be deleted (but one will fail since it's loaded already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement (UX) Issues that suggest enhancing user experience using the plugin
Projects
Status: INBOX
Development

No branches or pull requests

2 participants