Files
devvm/testdata/script
w3cjandClaude Opus 5.5 b33b0a9b4c fix(tools): a shared tool that doesn't mount fails the launch
A tool image missing from the share, or one the VM couldn't mount or
link, used to be skipped with a line on stderr, and mise's auto_install
then downloaded the same version into the VM on first use. Now the
launch stops with a message naming the VM and the tools.

- assets/guest/tools.sh: tries every listed image, removes a failed
  one's empty mount point, says why on stderr, lists the failed files
  in /run/devvm/tools-unmounted (removed at the start of each run) and
  exits 1. Link failures (Docker's unpacked folders) count too.
- assets/guest/sync.sh: its devvm-tools call failing fails the setup.
- assets/container/services.sh: a devvm-tools failure doesn't stop a
  smolvm or Docker start; the launch's setup reports it.
- internal/vm/sync.go: after a failed setup, syncer.unmounted reads the
  VM's report with its own Exec (capped at 16 KiB, unmountedMax), and
  reported keeps only whole lines that are one of the VM's own tool
  files from its state, so the message carries devvm's values, never
  the VM's text. The setup's output still goes straight to the run log
  (a pipe would wait on processes the setup leaves running).
- internal/tools: label is exported as Label; VMs.Update builds the
  VM's tool images that the share lacks even when they're the newest,
  so devvm update repairs a missing image.
- Message tools_unmounted (tools, vm), linked to
  using/troubleshooting#a-shared-tool-doesnt-mount.
- Docs: troubleshooting "A shared tool doesn't mount"; images.md's
  shared tools and devvm update; internals/images.md "The share" has
  the mechanism; design.md says why.
- Tests: TestReported (internal/vm), TestUpdate rebuilds a missing
  newest image, guest.txtar runs tools.sh with stubbed mount commands,
  sync.txtar checks tools_unmounted and that other report lines don't
  count (limactl stub: $STUB_DIR/sync-fails-with), e2e's tools section
  moves node's image out of the share and back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 17:54:05 -07:00
..
2026-10-25 13:43:00 -06:00