test(docker): fix update preflight fixture patches · openclaw/openclaw@ffbb4d4
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -43,7 +43,13 @@ mkdir -p "$git_root"
|
43 | 43 | tar -xzf "$package_tgz" -C "$git_root" --strip-components=1 |
44 | 44 | # The package-derived fixture can carry patchedDependencies whose targets are |
45 | 45 | # absent from the trimmed tarball install; that should not block update preflight. |
46 | | -printf "\nallowUnusedPatches=true\n" >>"$git_root/.npmrc" |
| 46 | +node - <<'"'"'NODE'"'"' |
| 47 | +const fs = require("node:fs"); |
| 48 | +const packageJsonPath = "/tmp/openclaw-git/package.json"; |
| 49 | +const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8")); |
| 50 | +packageJson.pnpm = { ...packageJson.pnpm, allowUnusedPatches: true }; |
| 51 | +fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}\n`); |
| 52 | +NODE |
47 | 53 | ( |
48 | 54 | cd "$git_root" |
49 | 55 | npm install --omit=optional --no-fund --no-audit >/tmp/openclaw-git-install.log 2>&1 |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。