diff options
| author | Aiden Cline <[email protected]> | 2025-12-26 11:43:03 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-26 11:43:13 -0600 |
| commit | 2e10ffac6b4ffe6ff183a485d847e26641f8a1bc (patch) | |
| tree | f4b1714587453311e4739d69336bd9f9173599f3 /packages | |
| parent | 4abaa052dbd33d15367deb1c8995eb2c6b764328 (diff) | |
| download | opencode-2e10ffac6b4ffe6ff183a485d847e26641f8a1bc.tar.gz opencode-2e10ffac6b4ffe6ff183a485d847e26641f8a1bc.zip | |
chore: rm comments
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/installation/index.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/packages/opencode/src/installation/index.ts b/packages/opencode/src/installation/index.ts index effe19721..975ca749b 100644 --- a/packages/opencode/src/installation/index.ts +++ b/packages/opencode/src/installation/index.ts @@ -167,7 +167,6 @@ export namespace Installation { export async function latest(installMethod?: Method) { const detectedMethod = installMethod || (await method()) - // Use brew formula API for homebrew core formula if (detectedMethod === "brew") { const formula = await getBrewFormula() if (formula === "opencode") { @@ -180,7 +179,6 @@ export namespace Installation { } } - // Use npm registry for npm/bun/pnpm if (detectedMethod === "npm" || detectedMethod === "bun" || detectedMethod === "pnpm") { const registry = await iife(async () => { const r = (await $`npm config get registry`.quiet().nothrow().text()).trim() @@ -196,7 +194,6 @@ export namespace Installation { .then((data: any) => data.version) } - // Use GitHub releases for everything else (curl, yarn, brew tap, unknown) return fetch("https://api.github.com/repos/sst/opencode/releases/latest") .then((res) => { if (!res.ok) throw new Error(res.statusText) |
