fix: index each data directory once per run

This commit is contained in:
Abdessamad Derraz committed 2026-10-17 15:02:01 +02:00
1 parent 1ca37e429e
commit 4d365ff57f
3 files changed
+77 -9

No files matched your search

+5
View File
@@ -491,6 +491,11 @@ def refresh_all(
dry_run=dry_run,
versions_path=versions_path,
)
if any(results.values()):
# A cache the resolver indexed in this process has changed under it.
from common import forget_data_dir_index # noqa: PLC0415
forget_data_dir_index()
return results