mirror of
https://github.com/NixOS/nix
synced 2025-06-30 03:23:16 +02:00
Add CanonPath wrapper to represent canonicalized paths
This commit is contained in:
parent
de35e2d3b4
commit
a71f209330
31 changed files with 503 additions and 187 deletions
|
@ -3,9 +3,9 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
SourcePath EvalState::rootPath(Path path)
|
||||
SourcePath EvalState::rootPath(const Path & path)
|
||||
{
|
||||
return {*rootFS, std::move(path)};
|
||||
return {*rootFS, CanonPath(path)};
|
||||
}
|
||||
|
||||
InputAccessor & EvalState::registerAccessor(ref<InputAccessor> accessor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue