uv
f17bad0a - Mark path-based cache entries as stale during install plan (#957)

Comment changes are shownComment changes are hidden
Commit
1 year ago
Mark path-based cache entries as stale during install plan (#957) ## Summary This is a small correctness improvement that ensures that we avoid using stale cache entries for local dependencies in the install plan. We already have some logic like this in the source distribution builder, but it didn't apply in the install plan, and so we'd end up using stale wheels. Specifically, now, if you create a new local wheel, and run `pip sync`, we'll mark the cache entries as stale and make sure we unzip it and install it. (If the wheel is _already_ installed, we won't reinstall it though, which will be a separate change. This is just about reading from the cache, not the environment.)
Author
Parents
  • crates
    • distribution-types/src
      • File
        cached.rs
    • puffin-cache/src
      • File
        lib.rs
    • puffin-cli/tests
      • File
        pip_sync.rs
    • puffin-distribution/src
      • index
        • File
          built_wheel_index.rs
        • File
          cached_wheel.rs
        • File
          mod.rs
        • File
          registry_wheel_index.rs
      • source
        • File
          mod.rs
    • puffin-installer/src
      • File
        plan.rs