mirror of
https://github.com/morluto/rea.git
synced 2026-11-02 21:06:04 +00:00
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:
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",
|
||||
|
||||
Reference in new issue
Block a user