1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 16:31:47 +02:00

lookupInFlakeCache(): Fix O(n) time lookup

This commit is contained in:
Eelco Dolstra 2024-12-10 15:30:55 +01:00
parent d1f20e3510
commit d2e1d4916a
4 changed files with 18 additions and 17 deletions

View file

@ -49,6 +49,8 @@ struct FlakeRef
bool operator ==(const FlakeRef & other) const = default;
auto operator <=>(const FlakeRef &) const = default;
FlakeRef(fetchers::Input && input, const Path & subdir)
: input(std::move(input)), subdir(subdir)
{ }