File tree Expand file tree Collapse file tree
packages/opencode/src/installation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ export namespace Installation {
167167 export async function latest ( installMethod ?: Method ) {
168168 const detectedMethod = installMethod || ( await method ( ) )
169169
170- // Use brew formula API for homebrew core formula
171170 if ( detectedMethod === "brew" ) {
172171 const formula = await getBrewFormula ( )
173172 if ( formula === "opencode" ) {
@@ -180,7 +179,6 @@ export namespace Installation {
180179 }
181180 }
182181
183- // Use npm registry for npm/bun/pnpm
184182 if ( detectedMethod === "npm" || detectedMethod === "bun" || detectedMethod === "pnpm" ) {
185183 const registry = await iife ( async ( ) => {
186184 const r = ( await $ `npm config get registry` . quiet ( ) . nothrow ( ) . text ( ) ) . trim ( )
@@ -196,7 +194,6 @@ export namespace Installation {
196194 . then ( ( data : any ) => data . version )
197195 }
198196
199- // Use GitHub releases for everything else (curl, yarn, brew tap, unknown)
200197 return fetch ( "https://api.github.com/repos/sst/opencode/releases/latest" )
201198 . then ( ( res ) => {
202199 if ( ! res . ok ) throw new Error ( res . statusText )
You can’t perform that action at this time.
0 commit comments