mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 06:23:17 -10:00
A first run resolved the tools' versions, downloading devvm's own mise first, only after base had built: 10 s on the mini, 5 s on fedora, in series. Neither needs the other, so create now starts Versions.Lock in the background as an image starts to build (resolveWhile's start, which build.Env.Building calls once an image is found unbuilt and its features are chosen) and waits for it after, cancelling it when the build fails. When every image is built already, nothing starts in the background, and Files resolves in the foreground with its status lines as before. While the build runs, the resolve says nothing, as the build has the terminal: a held Reporter keeps its messages, shows no status line and refuses every question as without a terminal, and its commands' lines in the run log are tagged resolve. Once the build ends, done releases it: what it held is said, what it does from then on shows, and devvm waits under resolving_tools when it's still running. done returns its error, so a failure is said once and the launch doesn't resolve again. A VM whose lock is already there reads it at once. TestHeld, TestResolveShowsAfterBuild and TestBuildingCalled fail when held shows a status line, when the wait shows none, and when Building isn't called. Docs: images.md's Versions. Co-Authored-By: Claude Opus 5.5 <[email protected]>