fix(reference): preserve missing symlink target facts

Treat ENOTDIR while resolving a symlink target as missing target evidence, preserving its spelling and partial inventory. Keep graph-level excluded-ancestor rejection separate from import success. The compiled boundary regression passes.
This commit is contained in:
morluto committed 2026-10-14 08:43:59 +08:00
1 parent 3ea5fdd7cf
commit 0f4c484be5
2 files changed
+16 -5

No files matched your search

@@ -357,7 +357,7 @@ const readSymlinkTarget = async (
} catch (cause: unknown) {
const code =
cause instanceof Error ? Reflect.get(cause, "code") : undefined;
if (code !== "ENOENT") throw cause;
if (code !== "ENOENT" && code !== "ENOTDIR") throw cause;
return {
status: "read",
kind: "symlink",