[Binary Caching] Add cleanup feature of old/deprecated archives #19589
julianxhokaxhiu
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Related: setting a size limit for the cache #19452 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello vcpkg team, has there been some progress towards this direction? Any help needed in case? Thank you in advance, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
vcpkg is awesome, it helps you to finally define your dependencies through a manifest, and manage them very easily through CMake. But there's a problem: when moving forward with your project, by simply updating your tooling or moving forward with your own manifest file, new cached archives will be produced and old ones will settle there, forever, unless manually deleted.
It would be nice if vcpkg had a way to cleanup those automatically, through a dedicated action in the command line.
Proposed solution
Upon building new cached archives for a given port, old ones are marked as "deprecated". vcpkg keeps track of this info somewhere and then through a command line tool you could cleanup those, using something like
vcpkg cache clean
.An additional parameter
--force
might be introduced, which would cleanup ALL the cache, including cached archives which are not marked as deprecated.Describe alternatives you've considered
At the moment I'm deleting the folder in
%localappdata%\vcpkg
from time to time and rebuilding the entire ports from scratch, but it's far from optimal especially if you have ports which takes quite some time to be built ( ffmpeg for eg. )Additional context
N/A
Beta Was this translation helpful? Give feedback.
All reactions