Commit f8cd19b
fix: resolve CLI version from app bundle when invoked via symlink (#305)
`Bundle.main` doesn't resolve to the `.app` bundle when the CLI is
invoked through a symlink (e.g. Homebrew). Fall back to walking up from
the resolved executable path to find the enclosing app bundle.
Signed-off-by: Patrick Linnane <patrick@linnane.io>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a4dfb81 commit f8cd19b
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
29 | 45 | | |
0 commit comments