paths names the files that were built elsewhere: Dirs.ShareLock
(tools.lock), RetentionLock, GroupsLock, ToolImage, QEMUWrapper,
DefaultLima and ToolsBuildPrefix, and paths.VM's comment says what
backend/ holds. The structure test's owners rule fails a filepath.Join
onto a Data or Config field outside internal/paths, and an os.MkdirTemp
or os.CreateTemp there with a literal name (pathCases).
Fixes:
- state.RemoveFolder deletes a VM's folder holding the VM's lock, so a
change another devvm is making lands first and none after it; teardown
and clear use it (TestRemoveFolder).
- Retention at a command's start skipped tool images when tools/.lock
existed, a file nothing makes: it asks tools.Env.ShareBusy, which tries
the share's lock (TestLockShare).
- An image's build VM's folder (its sandbox profile and start record) is
deleted once the image is built (TestBuildImageBase; layout.txtar).
- doctor says what in vms/ it can't read (vms_unreadable) instead of
dropping the error (TestVMFolderProblems).
- devvm rm VM checks again after asking: a folder that came back, a VM
made again, or an agent VM stopped meanwhile keeps the VM
(TestRmVMChecksAgain).
Docs: overview's run/ and locks, rm VM's second check, space's run/ row
and doctor's findings, images' retention and the share's lock,
Contributing's owners table.
Co-Authored-By: Claude Opus 5.5 <[email protected]>