Skip to content

Commit f228cb2

Browse files
saravmajesticclaude
andcommitted
fix: mark the uninstall choco-branch removal (#1305)
Marker Guard flagged the `Process.run(cmd)` change as unmarked custom code in an upstream-shared file. The choco special-case it replaced is unreachable now that `Installation.method()` no longer returns choco. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
1 parent 1ef5916 commit f228cb2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎packages/opencode/src/cli/cmd/uninstall.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,13 @@ async function executeUninstall(method: Installation.Method, targets: RemovalTar
197197
const cmd = cmds[method]
198198
if (cmd) {
199199
spinner.start(`Running ${cmd.join(" ")}...`)
200+
// altimate_change start — #1305: the choco special-case here passed a hardcoded
201+
// `["choco","uninstall","opencode",...]`; choco is no longer a reachable method (see
202+
// the command map above), so the branch is gone and `cmd` is used directly.
200203
const result = await Process.run(cmd, {
201204
nothrow: true,
202205
})
206+
// altimate_change end
203207
if (result.code !== 0) {
204208
spinner.stop(`Package manager uninstall failed: exit code ${result.code}`, 1)
205209
const text = `${result.stdout.toString("utf8")}\n${result.stderr.toString("utf8")}`

0 commit comments

Comments
 (0)