fix(artifacts): preserve archive entry types and host paths (#581)

This commit is contained in:
morluto authored and GitHub committed 2026-10-05 23:19:04 +08:00
1 parent f73bb0fe11
commit 28e0f4e9ec
5 files changed
+153 -5

No files matched your search

@@ -255,6 +255,10 @@ const expectedInventory = (
"integrity",
`Artifact inventory node is missing: ${occurrence.logical_path}`,
);
// Inventory occurrences can have content identities for directories too.
// Suffixes only describe file candidates; a directory such as
// node_modules/@zip.js remains a graph node and must never be opened.
if (occurrence.entry_kind !== "file") continue;
if (occurrence.logical_path.toLowerCase().endsWith(".asar"))
containers.set(occurrence.logical_path, {
path: occurrence.logical_path,