Repository navigation
Commit 0d198da
committed
fix(cli): detect Homebrew cask installs on Intel macOS
The `update` command's install-method detection only matched `Cellar`
(formula installs), the Apple Silicon brew prefix (`opt/homebrew`), and
linuxbrew. Intel-Mac cask installs land in `/usr/local/Caskroom/...`,
which none of those markers cover, so detection fell through to
`unknown` and forced users into the manual recovery path.
Apple Silicon cask installs (`/opt/homebrew/Caskroom/...`) worked only
by coincidence — the `opt/homebrew` marker happened to match. Add an
explicit `Caskroom` marker so both arches detect cleanly, and extend
the parameterized detection test with cask layouts on Intel and Apple
Silicon. Closes #175.1 parent cb401a4 commit 0d198da
2 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
0 commit comments