←back to thread

302 points Bogdanp | 1 comments | | HN request time: 0.212s | source
Show context
namibj ◴[] No.44390866[source]
Incremental compilation good. If you want, freeze the initial incremental cache after a single fresh build to use for building/deploying updates, to mitigate the risk of intermediate states gradually corrupting the cache.

Works great with docker: upon new compiler version or major website update, rebuild the layer with the incremental cache; otherwise just run from the snapshot and build newest website update version/state, and upload/deploy the resulting static binary. Just set so that mere code changes won't force rebuilding the layer that caches/materializes the fresh clean build's incremental compilation cache.

replies(2): >>44390944 #>>44394709 #
1. maccard ◴[] No.44394709[source]
The intermediates for my project are 150GB+ alone. Last time I worked with docker images that large we had massive massive problems.