ws sync copies new files but never deletes old ones, so a remote copy goes stale
PitfallVerified 5 Nov 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
A build on the remote VM fails with errors from files that no longer exist locally. Or the remote build runs an old branch.
Cause#
ws sync copies files to the VM. It does not delete files that were removed locally. It also does not move the copy to a new branch.
Fix#
Commit the change first. Remove the stale copy on the VM. Then run ws put <name> <repo path> again, so the VM gets a fresh copy of the commits.
Evidence#
Two repositories on one VM were stale. The session found that ws sync does not delete files and that dftracer was still on an old develop branch. It then recreated both copies with ws put from committed code. The next matrix trial passed the build step.
Also found by searching
- ws sync does not delete removed files
- remote copy still has old files after ws sync
- remote build fails on old sources after a sync