1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 19:01:16 +02:00

Fix macOS build

This commit is contained in:
Eelco Dolstra 2024-12-04 14:51:41 +01:00
parent 7ba933e989
commit b9f60faab5

View file

@ -1279,7 +1279,7 @@ ref<GitRepo> getTarballCache()
GitRepo::WorkdirInfo GitRepo::getCachedWorkdirInfo(const std::filesystem::path & path) GitRepo::WorkdirInfo GitRepo::getCachedWorkdirInfo(const std::filesystem::path & path)
{ {
static Sync<std::unordered_map<std::filesystem::path, WorkdirInfo>> _cache; static Sync<std::map<std::filesystem::path, WorkdirInfo>> _cache;
{ {
auto cache(_cache.lock()); auto cache(_cache.lock());
auto i = cache->find(path); auto i = cache->find(path);