fix(test): allow legacy qa inventory entry

This commit is contained in:
Peter Steinberger
2026-04-27 00:02:32 +01:00
parent 4a578740a2
commit 41ad03dda4

View File

@@ -5,6 +5,8 @@
import { spawnSync } from "node:child_process";
import fs from "node:fs";
const INVENTORY_COMPAT_MISSING_ENTRIES = new Set(["dist/extensions/qa-channel/runtime-api.js"]);
function usage() {
return "Usage: node scripts/check-openclaw-package-tarball.mjs <openclaw.tgz>";
}
@@ -75,6 +77,9 @@ if (entrySet.has("dist/postinstall-inventory.json")) {
} else {
for (const inventoryEntry of inventory) {
const normalizedEntry = inventoryEntry.replace(/\\/gu, "/");
if (INVENTORY_COMPAT_MISSING_ENTRIES.has(normalizedEntry)) {
continue;
}
if (!entrySet.has(normalizedEntry)) {
errors.push(`inventory references missing tar entry ${normalizedEntry}`);
}