Browse Source

fix(opencode): disable config bun cache in CI (#14985)

Luke Parker 1 month ago
parent
commit
da40ab7b3d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      packages/opencode/src/bun/index.ts
  2. 1 1
      packages/opencode/src/config/config.ts

+ 1 - 1
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,

+ 1 - 1
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) => {