martha#342: a broken folder met by two installs keeps the good copy #349
Loading…
Reference in a new issue
No description provided.
Delete branch "saturnus/342-broken-folder-race"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (bug): when two installs of Martha's own Claude Code meet a broken folder that is already there, the second never removes the good copy the first placed.
Refs #342 (Jupiter's note 2 in the #329 review)
clearTheBrokenFoldermoves the broken folder aside into an.installing-folder and never removes it in place. If another install placed its copy there in the meantime, that copy is put back. ENOENT on the move counts as already cleared.meanwhile, acts inside the race window.npm testran in its own namespace: installer 169/169, src 5915 pass, 0 fail. One earlier run had anapprovepty timeout in prove_a_clean_install, which this change does not reach; the rerun was green. check:private on the range found nothing.d4188de8' into saturnus/342-broken-folder-race cb27c667f0