clan_lib flake: check the whole tree even if we fetched all keys before

This is needed because nix garbage collection can remove store paths. So
the cache can become invalid because a path needs to be rebuild.
This commit is contained in:
lassulus
2025-05-19 12:00:41 +02:00
parent 72fa59c9fa
commit 102fa21b9c

View File

@@ -345,7 +345,8 @@ class FlakeCacheEntry:
return True
if selectors == []:
return self.fetched_all
selector = Selector(type=SelectorType.ALL)
else:
selector = selectors[0]
# we just fetch all subkeys, so we need to check of we inserted all keys at this level before