zig icon indicating copy to clipboard operation
zig copied to clipboard

`zig build run --watch` creates a lot of cache files in .zig-cache eating up drive space

Open rupakhetibinit opened this issue 1 year ago • 0 comments

Zig Version

0.14.0-dev.839+a931bfada, windows

Steps to Reproduce and Observed Behavior

zig build run --watch continuously watches for file changes and rebuilds the executable but it never seems to delete the previously cached files. I just had over 300 MB build up in about 2 hours on a stupidly simple project(<500 LOC). This will be even worse for someone working in a larger project.

Expected Behavior

I expect cache to be cleaned up.

rupakhetibinit avatar Aug 03 '24 20:08 rupakhetibinit