fix(artifacts): retain relative paths in directory identities (#580)

This commit is contained in:
Kaoru0822
2026-10-05 23:07:24 +08:00
committed by GitHub
parent 8eac290e8d
commit 348323dd23
2 changed files with 180 additions and 1 deletions
+2 -1
View File
@@ -81,7 +81,8 @@ export const materializeDirectoryNodes = (
for (const directory of directories) {
const children = (childrenByParent.get(directory.occurrence_id) ?? [])
.map(({ logical_path, artifact_id, entry_kind }) => ({
name: logical_path.split("/").at(-1),
// Intermediate directory entries may be absent from an archive.
name: logical_path.slice(directory.logical_path.length + 1),
artifact_id,
entry_kind,
}))