fix(opencode): disable config bun cache in CI (#14985)
This commit is contained in:
@@ -93,7 +93,7 @@ export namespace BunProc {
|
|||||||
"--force",
|
"--force",
|
||||||
"--exact",
|
"--exact",
|
||||||
// TODO: get rid of this case (see: https://github.com/oven-sh/bun/issues/19936)
|
// 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",
|
"--cwd",
|
||||||
Global.Path.cache,
|
Global.Path.cache,
|
||||||
pkg + "@" + version,
|
pkg + "@" + version,
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ export namespace Config {
|
|||||||
[
|
[
|
||||||
"install",
|
"install",
|
||||||
// TODO: get rid of this case (see: https://github.com/oven-sh/bun/issues/19936)
|
// 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 },
|
{ cwd: dir },
|
||||||
).catch((err) => {
|
).catch((err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user