Is there any work being done to reduce the size of the `zig-cache` directory?

While working on my emulator project I’ve noticed that size of the zig-cache directory can grow really fast and can easily pass the 200GB in size.

Has the core team looked into this issue yet?

It’s known: https://codeberg.org/ziglang/zig/issues/30193

Until automatic cleanup is implemented, you can just rm the folder whenever. (And if you use incremental compilation, there will be less garbage nowadays, according to the last comment.)

4 Likes