fix(update): omit compatibility host env when package version is missing · openclaw/openclaw@a002c41
steipete
·
2026-05-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1422,7 +1422,9 @@ async function runPackageInstallUpdate(params: {
|
1422 | 1422 | OPENCLAW_UPDATE_IN_PROGRESS: "1", |
1423 | 1423 | [UPDATE_DEFER_CONFIGURED_PLUGIN_INSTALL_REPAIR_ENV]: "1", |
1424 | 1424 | [UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE_ENV]: "1", |
1425 | | -OPENCLAW_COMPATIBILITY_HOST_VERSION: candidateHostVersion, |
| 1425 | + ...(candidateHostVersion === null |
| 1426 | + ? {} |
| 1427 | + : { OPENCLAW_COMPATIBILITY_HOST_VERSION: candidateHostVersion }), |
1426 | 1428 | }, |
1427 | 1429 | timeoutMs: params.timeoutMs, |
1428 | 1430 | progress: params.progress, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1487,7 +1487,9 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<
|
1487 | 1487 | env: { |
1488 | 1488 | OPENCLAW_UPDATE_IN_PROGRESS: "1", |
1489 | 1489 | [UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE_ENV]: "1", |
1490 | | -OPENCLAW_COMPATIBILITY_HOST_VERSION: candidateHostVersion, |
| 1490 | + ...(candidateHostVersion === null |
| 1491 | + ? {} |
| 1492 | + : { OPENCLAW_COMPATIBILITY_HOST_VERSION: candidateHostVersion }), |
1491 | 1493 | }, |
1492 | 1494 | progress, |
1493 | 1495 | stepIndex: 0, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。