mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Origin: Use SourcePath
This commit is contained in:
parent
94812cca98
commit
a9759407e5
9 changed files with 22 additions and 23 deletions
|
@ -700,7 +700,7 @@ Expr * EvalState::parseExprFromFile(const SourcePath & path, std::shared_ptr<Sta
|
|||
auto buffer = path.readFile();
|
||||
// readFile hopefully have left some extra space for terminators
|
||||
buffer.append("\0\0", 2);
|
||||
return parse(buffer.data(), buffer.size(), path.path.abs(), path.parent(), staticEnv);
|
||||
return parse(buffer.data(), buffer.size(), Pos::Origin(path), path.parent(), staticEnv);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue