devbox/internal/syncer
shoemoney 57ebed35b5 fix(dataloss): don't clobber a .devignore'd/guarded local file on pull 🩸🛟
The pull merge compared the hub against 'ours' = a .devignore/secret-guard
FILTERED manifest. A file still on disk but excluded from 'ours' looked like a
local delete, so a hub edit to that path hit 'case tOK && !oOK' and overwrote
the on-disk bytes with NO conflict copy — silently destroying ignored configs
and the very .env/keys the guard exists to protect (a teammate pushing .env
could wipe your local secret).

Now: in that branch, stat the real file first; if it's actually present,
preserve it as a .conflict-<host>-<ts> copy before applying the hub version —
honoring the 'never lose a byte' promise. Regression test proves the local
bytes survive.
2026-06-23 02:28:51 -05:00
..
deploy_test.go feat(M6.5): devbox deploy — pin a mount to a snapshot (no push) 🚀 2026-06-23 01:17:20 -05:00
hooks_integration_test.go feat(M5): lifecycle hooks 🪝 2026-06-23 00:48:16 -05:00
preserve_ignored_test.go fix(dataloss): don't clobber a .devignore'd/guarded local file on pull 🩸🛟 2026-06-23 02:28:51 -05:00
pull.go fix(dataloss): don't clobber a .devignore'd/guarded local file on pull 🩸🛟 2026-06-23 02:28:51 -05:00
pull_test.go feat(M5): lifecycle hooks 🪝 2026-06-23 00:48:16 -05:00
restore_test.go feat(M6): versioning — log, restore, hub gc 🕰️ 2026-06-23 01:01:54 -05:00
safejoin_test.go fix(sec): contain manifest paths + verify blob integrity on download 🛡️🧊 2026-06-23 02:24:32 -05:00
syncer.go feat(M5): lifecycle hooks 🪝 2026-06-23 00:48:16 -05:00
syncer_test.go feat(M5): lifecycle hooks 🪝 2026-06-23 00:48:16 -05:00