libexpr: unify strings and paths

paths already are just strings with slightly magic semantics. the type
can mirror that at no perf cost, letting us drop one internalType tag.

Change-Id: I98acaa4fe3bedd28fc0841e1b81184d8dcddacc5
This commit is contained in:
eldritch horrors
2025-09-29 17:56:05 +02:00
parent d23e3a09a4
commit 0d69da184c
4 changed files with 61 additions and 56 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ namespace nix {
if (arg.type() != nPath) {
*result_listener << "Expected a path got " << arg.type();
return false;
} else if (std::string_view(arg._path) != p) {
} else if (std::string_view(arg.string().content) != p) {
*result_listener << "Expected a path that equals \"" << p
<< "\" but got: " << arg.path();
return false;