The open source coding agent.
TypeScript
fix(opencode): disable config bun cache in CI (#14985)
Luke Parkerda40ab7b3d24
diff --git a/packages/opencode/src/bun/index.ts b/packages/opencode/src/bun/index.tsindex 79aaae2bcc4..35ad74ec4c3 100644--- a/packages/opencode/src/bun/index.ts+++ b/packages/opencode/src/bun/index.ts@@ -93,7 +93,7 @@ export namespace BunProc {"--force","--exact",// TODO: get rid of this case (see: https://github.com/oven-sh/bun/issues/19936)- ...(proxied() ? ["--no-cache"] : []),+ ...(proxied() || process.env.CI ? ["--no-cache"] : []),"--cwd",Global.Path.cache,pkg + "@" + version,diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.tsindex b1e00fccb85..761ce23f3d6 100644--- a/packages/opencode/src/config/config.ts+++ b/packages/opencode/src/config/config.ts@@ -289,7 +289,7 @@ export namespace Config {["install",// TODO: get rid of this case (see: https://github.com/oven-sh/bun/issues/19936)- ...(proxied() ? ["--no-cache"] : []),+ ...(proxied() || process.env.CI ? ["--no-cache"] : []),],{ cwd: dir },).catch((err) => {