mirror of
https://github.com/morluto/rea.git
synced 2026-10-28 18:35:53 +00:00
fix(artifacts): preserve archive entry types and host paths (#581)
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user