Repository navigation
Commit a704bbd
committed
fix(opencode): pass --method curl to the native updater
OpenCode's curl-installed binary lives at ~/.opencode/bin/opencode. T3 Code already recognizes that path as the provider's own installer, but it ran `opencode upgrade` without a method, so OpenCode had to infer the method from `process.execPath`. That inference fails when the binary is launched through a wrapper or shim, and the update fails with:
Could not detect the installation method. Pass --method to choose how to upgrade OpenCode.
Tell OpenCode the method explicitly for this installer path. Both OpenCode 1.x and 2.x support `--method curl`, and the path is the curl installer's location on every platform.1 parent ed52af3 commit a704bbd
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| 754 | + | |
| 755 | + | |
754 | 756 | | |
755 | 757 | | |
756 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
0 commit comments