uv-ffi v0.10.8.post10 - The Local Filesystem Auto-Heal Release
The Local Filesystem Auto-Heal Release
This release introduces a surgical, high-performance auto-healing mechanism for local filesystem desyncs, making the uv-ffi engine practically immune to external tampering (like a rogue pip uninstall run outside of the daemon).
-
Local Filesystem Auto-Heal: If an external tool modifies the environment behind
uv-ffi's back, the in-memory cache becomes stale. The engine now explicitly catches the resultingos error 2 (No such file or directory)when trying to read missingdist-info/METADATAfiles. It automatically drops the RAM cache, forces a true disk rescan, and transparently retries the install. -
Proactive Patching Proven: Benchmarking this new heal path (~7.6ms) against a proactive delta-patch (~4.0ms) mathematically proved that calling
patch_site_packages_cachesaves ~3.6ms per invocation. It bypasses both the disk rescan penalty and allows the hot dependency resolver to skip cold evaluation logic entirely. -
README Accuracy: Updated the Python API examples to correctly reflect the new 4-tuple return signature (
rc, installed, removed, err) introduced inpost6. -
Cleaned Examples: Simplified the
pip installexamples in the documentation, removing redundant default flags (like--link-mode). -
Wheel Backfill Polish: Improved the
.github/workflows/backfill_wheels.ymlscript to handle artifact extraction and temporary directories more robustly, preventing disk bloat on the GitHub runner. -
HTML Generation Fixes: Fixed indentation and formatting bugs in the automated PEP-503 GitHub Pages index generator.
📝 Code Changes:
- UPDATE: crates/uv-ffi/src/lib.rs (15 lines changed)
⚙️ Configuration:
- .github/workflows/backfill_wheels.yml (179 lines)
Additional Changes:
- perf: auto-heal stale site-packages cache on dist-info ENOENT
- Update configuration
4 files changed, 124 insertions(+), 132 deletions(-)