Skip to content

Commit b4fb039

Browse files
committed
Revert "fix: add --force to npm/pnpm/bun upgrade to prevent stale native binaries"
This reverts commit 5cddef9.
1 parent 5cddef9 commit b4fb039

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

  • packages/opencode/src/installation

packages/opencode/src/installation/index.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -182,23 +182,15 @@ export namespace Installation {
182182
case "curl":
183183
result = await upgradeCurl(target)
184184
break
185-
// altimate_change start — force re-fetch to prevent stale native binaries
186-
// Without --force, npm/pnpm/bun may serve cached platform binaries from
187-
// @altimateai/altimate-core's optionalDependencies (e.g. darwin-arm64).
188-
// The caret range (^0.2.5) lets npm skip re-downloading if the cached
189-
// version satisfies the range, even when a newer version with additional
190-
// exports exists. --force ensures all dependencies are re-resolved and
191-
// re-fetched from the registry.
192185
case "npm":
193-
result = await Process.run(["npm", "install", "-g", "--force", `@altimateai/altimate-code@${target}`], { nothrow: true })
186+
result = await Process.run(["npm", "install", "-g", `@altimateai/altimate-code@${target}`], { nothrow: true })
194187
break
195188
case "pnpm":
196-
result = await Process.run(["pnpm", "install", "-g", "--force", `@altimateai/altimate-code@${target}`], { nothrow: true })
189+
result = await Process.run(["pnpm", "install", "-g", `@altimateai/altimate-code@${target}`], { nothrow: true })
197190
break
198191
case "bun":
199-
result = await Process.run(["bun", "install", "-g", "--force", `@altimateai/altimate-code@${target}`], { nothrow: true })
192+
result = await Process.run(["bun", "install", "-g", `@altimateai/altimate-code@${target}`], { nothrow: true })
200193
break
201-
// altimate_change end
202194
case "brew": {
203195
const formula = await getBrewFormula()
204196
const env = {

0 commit comments

Comments
 (0)