1
1
Fork 0
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:
Robert Hensing 2024-08-24 21:35:01 +02:00
parent 52c0ef24c5
commit 1008847630

View file

@ -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;
}