fix(test): allow legacy qa inventory entry · openclaw/openclaw@41ad03d
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,6 +5,8 @@
|
5 | 5 | import { spawnSync } from "node:child_process"; |
6 | 6 | import fs from "node:fs"; |
7 | 7 | |
| 8 | +const INVENTORY_COMPAT_MISSING_ENTRIES = new Set(["dist/extensions/qa-channel/runtime-api.js"]); |
| 9 | + |
8 | 10 | function usage() { |
9 | 11 | return "Usage: node scripts/check-openclaw-package-tarball.mjs <openclaw.tgz>"; |
10 | 12 | } |
@@ -75,6 +77,9 @@ if (entrySet.has("dist/postinstall-inventory.json")) {
|
75 | 77 | } else { |
76 | 78 | for (const inventoryEntry of inventory) { |
77 | 79 | const normalizedEntry = inventoryEntry.replace(/\\/gu, "/"); |
| 80 | +if (INVENTORY_COMPAT_MISSING_ENTRIES.has(normalizedEntry)) { |
| 81 | +continue; |
| 82 | +} |
78 | 83 | if (!entrySet.has(normalizedEntry)) { |
79 | 84 | errors.push(`inventory references missing tar entry ${normalizedEntry}`); |
80 | 85 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。