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