Skip to content

The agent that grows with you

refactor(pm): rename cache_lock.py to uv_cache_prune.py

ethernet2250b501b441
diff --git a/pm/build_env.py b/pm/build_env.py
index 7a46dcf953c..65c41da0e4c 100644
--- a/pm/build_env.py
+++ b/pm/build_env.py
@@ -64,7 +64,7 @@ def main(argv: Sequence[str] | None = None) -> int:
parser.error("--manager-runtime requires the target --python")
try:
if args.exact_lock:
- from pm.cache_lock import prune_uv_cache_to_lock
+ from pm.uv_cache_prune import prune_uv_cache_to_lock
pruned = prune_uv_cache_to_lock(args.cache, args.lock_source)
print(f"pruned {pruned} cache entries outside the lock")
diff --git a/pm/cache_lock.py b/pm/uv_cache_prune.py
similarity index 100%
rename from pm/cache_lock.py
rename to pm/uv_cache_prune.py
diff --git a/scripts/bundles/native.py b/scripts/bundles/native.py
index 664d55dad98..aa773d5f1d2 100644
--- a/scripts/bundles/native.py
+++ b/scripts/bundles/native.py
@@ -52,7 +52,7 @@ def _arch_guard(store_dir: Path) -> list[str]:
-from pm.cache_lock import lock_package_names, prune_uv_cache_to_lock
+from pm.uv_cache_prune import lock_package_names, prune_uv_cache_to_lock
__all__ = ["prune_uv_cache_to_lock", "lock_package_names", "stage_uv_cache"]