devbox/cmd
shoemoney df33b5facd
Some checks are pending
CI / vet-build-test (push) Waiting to run
fix(hub): gc enumerates prunable manifest chunks before deleting blobs (cross-share double-prune leak)
Content-addressed snapshots can appear as prunable in two shares simultaneously.
The old inline manifestChunks call inside the prune loop read the blob after the
first share's iteration had already deleted it, returning ErrNotFound → nil hashes
→ DeleteSnapshot decremented nothing → chunk stayed at refcount 1 and leaked
forever. Pre-enumerate all chunk lists once before the deletion loop so both
(share,id) decrements always fire with the correct hash list.

No change to dry-run path: it never deletes blobs so ErrNotFound cannot occur there.
2026-06-30 18:30:22 -05:00
..
devbox round9-client: log swallowed hook failures, doctor free-disk check, validate devbox ignore pattern 🩺⚠️🙈 2026-06-30 18:07:53 -05:00
devbox-hub fix(hub): gc enumerates prunable manifest chunks before deleting blobs (cross-share double-prune leak) 2026-06-30 18:30:22 -05:00