fix(artifacts): budget full namespaces and retain directory contradictions

This commit is contained in:
morluto
2026-10-08 21:04:39 +08:00
parent 3e9d38ccd8
commit 31570a22fb
7 changed files with 120 additions and 12 deletions
+3
View File
@@ -191,6 +191,7 @@ const entryOf = (member: {
readonly limitations: readonly string[];
readonly size?: number | null;
readonly contentUnavailable?: boolean;
readonly integrityMismatched?: boolean;
}): ArtifactEntry => ({
path: member.path,
kind: member.kind,
@@ -209,6 +210,7 @@ const entryOf = (member: {
limitations: member.limitations,
adapterKey: member.key,
...(member.contentUnavailable === true ? { contentUnavailable: true } : {}),
...(member.integrityMismatched === true ? { integrityMismatched: true } : {}),
});
interface PendingLink {
@@ -373,6 +375,7 @@ export class CpioArtifactReader implements ArtifactReader {
key,
header,
limitations: "mismatch" in verified ? [verified.mismatch] : [],
integrityMismatched: "mismatch" in verified,
});
return;
}