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 dc2abb1352
commit 76e4ecb6d5

View File

@@ -345,8 +345,9 @@ class FlakeCacheEntry:
return True
if selectors == []:
return self.fetched_all
selector = selectors[0]
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
if selector.type == SelectorType.ALL: