mirror of
https://github.com/NixOS/nix.git
synced 2025-12-17 06:21:06 +01:00
fix findFile assertion failure
A string is only allowed to create one path component; containing no slashes.
This commit is contained in:
parent
52c0ef24c5
commit
1008847630
1 changed files with 1 additions and 1 deletions
|
|
@ -3087,7 +3087,7 @@ SourcePath EvalState::findFile(const LookupPath & lookupPath, const std::string_
|
||||||
if (!rOpt) continue;
|
if (!rOpt) continue;
|
||||||
auto r = *rOpt;
|
auto r = *rOpt;
|
||||||
|
|
||||||
auto res = r / suffix;
|
auto res = r / CanonPath(suffix);
|
||||||
if (res.pathExists()) return res;
|
if (res.pathExists()) return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue