mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
When a backend that a VM's state names can't list its images, gc warns (gc_backend_skipped, linked to Cleaning up) with its Check's error, else its listing's, and leaves everything of that backend's alone: its images (not listed), its unused and current shared tool images and those whose backend devvm can't tell, its orphans (moved to the backends that couldn't be asked, so gc_orphans_unknown names it) and, with --caches, its cache. gc goes on with the other backends and succeeds. devvm images still fails, as it lists every backend's or none. listImages returns an imageListing (images, tools, unlisted backends); images uses its failUnlisted, gc's planGC its skip, withoutSkipped and the skipped set gcRun hands to gcCaches. Tests: TestWithoutSkipped; gc_skipped.txtar (Lima's stale image and tool deleted, smolvm's and an unknown backend's tool kept, the smolvm VM's state kept, gc succeeds, devvm images fails); gc_orphans.txtar's end. Docs: using/images.md's Cleaning up, using/space.md's leftovers, gc's help and the CLI reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>