mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-07 07:58:36 +00:00
fix(ci): disable compile cache for cross-os upgrades
This commit is contained in:
@@ -1219,8 +1219,12 @@ export function shouldSkipInstallerDaemonHealthCheck(platform = process.platform
|
||||
}
|
||||
|
||||
export function buildRealUpdateEnv(env) {
|
||||
const updateEnv = { ...env };
|
||||
const updateEnv = {
|
||||
...env,
|
||||
NODE_DISABLE_COMPILE_CACHE: "1",
|
||||
};
|
||||
delete updateEnv.OPENCLAW_DISABLE_BUNDLED_PLUGIN_POSTINSTALL;
|
||||
delete updateEnv.NODE_COMPILE_CACHE;
|
||||
return updateEnv;
|
||||
}
|
||||
|
||||
|
||||
@@ -499,10 +499,12 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
|
||||
expect(
|
||||
buildRealUpdateEnv({
|
||||
FOO: "bar",
|
||||
NODE_COMPILE_CACHE: "/tmp/stale-openclaw-cache",
|
||||
OPENCLAW_DISABLE_BUNDLED_PLUGIN_POSTINSTALL: "1",
|
||||
}),
|
||||
).toEqual({
|
||||
FOO: "bar",
|
||||
NODE_DISABLE_COMPILE_CACHE: "1",
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user