rattler-build icon indicating copy to clipboard operation
rattler-build copied to clipboard

provide CLI tool to clear any caches

Open beckermr opened this issue 4 months ago • 2 comments

I don't know how to clear rattler-build's internal caches of downloaded packages, repodata, source code, etc.

There is pixi clean cache, but it is unclear to me how that relates to rattler-build.

beckermr avatar Sep 05 '25 15:09 beckermr

I think this would be a great idea, we can basically just try to copy what pixi clean does and try to clean the caches for packages, repodata, build and source while providing an all command to clear all cache too. We can just take the --dry-run (show what would be deleted) and --cache-dir <PATH> to specify bld or cache folders to be deleted specially (with include/exclude too maybe? ) @wolfv

zelosleone avatar Sep 10 '25 07:09 zelosleone

Just like upload this might also be functionality that we could/should move to rattler so that it can be shared by multiple tools.

wolfv avatar Sep 13 '25 11:09 wolfv