Files
devvm/internal/msg
w3cjandClaude Opus 5.5 effcdfece0 feat(install): install.sh and doctor catch a second devvm
Installing with both Homebrew and the install script left two devvms, and
the one first on PATH ran without a word while brew upgrade might update
the other.

- install.sh: before downloading, check_brew stops (exit 1, in a terminal
  or not) when brew is on PATH and brew list --formula devvm succeeds;
  brew runs with stdin from /dev/null and its output discarded, only its
  exit status read. --force (in the usage, the header and the parser)
  installs anyway.
- install.sh: path_hint, after installing, warns when ~/.local/bin is on
  PATH but command -v devvm resolves (readlink -f) to another copy, naming
  it and what to do; it only looks the path up, never runs it. When
  ~/.local/bin isn't on PATH it prints only the existing hint.
- devvm doctor: warns (u.Warn, not a backend.Problem) when the devvm first
  on PATH isn't this binary, both resolved with filepath.EvalSymlinks;
  skipped when devvm isn't on PATH, and never with --fixes; exit status
  unchanged. Seams: onPath's LookPath and Executable fields.
- Message devvm_other_first (first, self), linked to
  getting-started/install#one-devvm.
- Tests: TestOnPathOther (this copy by either link, another copy, none on
  PATH, a broken link); install.txtar: a stub brew reporting devvm makes
  the script refuse before downloading, --force goes on, another devvm
  earlier on PATH gets the warning and isn't run, a link to the installed
  copy gets none; the stub brew answers list from $BREW_DEVVM.
- Docs: Installing's One devvm section (one way, the refusal, --force,
  switching through Uninstalling's step 4, the PATH warnings), --force in
  the options, doctor's warning; Installing and updating: the Homebrew
  check, the PATH check and doctor's check.

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