mirror of
https://github.com/NixOS/nix.git
synced 2025-12-16 14:01:05 +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;
|
||||
auto r = *rOpt;
|
||||
|
||||
auto res = r / suffix;
|
||||
auto res = r / CanonPath(suffix);
|
||||
if (res.pathExists()) return res;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue