MCPcopy Create free account
hub / github.com/anomalyco/opencode / upgradeFailure

Function upgradeFailure

packages/opencode/src/installation/index.ts:133–137  ·  view source on GitHub ↗
(method: Method, result?: { code: number; stdout: string; stderr: string })

Source from the content-addressed store, hash-verified

131 })
132
133 const upgradeFailure = (method: Method, result?: { code: number; stdout: string; stderr: string }) => {
134 if (method === "choco") return "not running from an elevated command shell"
135 if (result) return `Upgrade failed for ${method} (exit code ${result.code}).`
136 return `Upgrade failed for ${method}.`
137 }
138
139 const upgradeScriptShell = Effect.fnUntraced(function* () {
140 const bashVersion = yield* text(["bash", "--version"])

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected