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

[question] Is there a way to control the size of Conan cache? #10667

Closed
harsszegi opened this issue Feb 26, 2022 · 3 comments · Fixed by #14054
Closed

[question] Is there a way to control the size of Conan cache? #10667

harsszegi opened this issue Feb 26, 2022 · 3 comments · Fixed by #14054
Milestone

Comments

@harsszegi
Copy link

Hi,
we bumped into the situation on our CI system that Conan's cache practically grows endlessly over time.
Is there a plan / way to "garbage collect" - via Conan itself (e.g. a command line extension to conan, or a separate python script packages into the Conan distribution, I don't know) - the cache? I mean like erase the oldest N entries to make sure that the cache's size doesn't go above X Gb?
Thanks,

@czoido
Copy link
Contributor

czoido commented Feb 28, 2022

Hi @harsszegi,

Yes, that's something we are discussing to include in Conan 2.X. some kind of least-recently-used removal for Conan packages. Also, that could be added as an extension with a custom command, or some similar mechanism.

@czoido czoido added this to the 2.X milestone Feb 28, 2022
@harsszegi
Copy link
Author

Aok, thanks a lot for the info!

@memsharded memsharded modified the milestones: 2.X, 2.0.14 Oct 18, 2023
@memsharded
Copy link
Member

Conan has finally implemented this in #14054, it has been merged it will be in next 2.0.14 release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants