Merge pull request #10018 from NixOS/fix-18-build

[2.18] Fix the build
This commit is contained in:
Eelco Dolstra 2024-02-15 11:00:13 +01:00 committed by GitHub
commit 2a6a7aad3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -693,7 +693,7 @@ SourcePath resolveExprPath(SourcePath path)
if (++followCount >= maxFollow)
throw Error("too many symbolic links encountered while traversing the path '%s'", path);
if (path.lstat().type != InputAccessor::tSymlink) break;
path = {path.accessor, CanonPath(path.readLink(), path.path.parent().value_or(CanonPath::root))};
path = {CanonPath(path.readLink(), path.path.parent().value_or(CanonPath::root))};
}
/* If `path' refers to a directory, append `/default.nix'. */