A week on and it's still working well; it required a gopls change (go.dev/cl/795221, hope that's released soon!). With 5 day pruning like Go does itself, that 5 day window leaves me sitting at about 150GB of cache, which comes out to about 20GB on disk. Very good!
Did a bit of hacking this weekend and cooked up "gocachez", a GOCACHEPROG which transparently compresses the Go build cache to save disk space at rest at the cost of CPU, with fairly good results. Building and testing TS would normally eat up roughly 4GB, but with gocachez it's only about 400MB.
0 reposts12 likes