Skip to content

cached versions of packages #16286

@MikeyBeez

Description

@MikeyBeez

Summary

How Your Idea Would Work

The workflow you're proposing would be a huge quality-of-life improvement. It might look something like this:
Your pyproject.toml has an unpinned dependency like "torch".
You run uv sync.
uv checks its global cache and sees that the last version of torch you installed from the nightly source was 2.7.0.dev20251012.
It then quickly checks the online repository and sees that a newer version, 2.7.0.dev20251013, is available.
Instead of just automatically downloading the new one, it prompts you:
Found a recent version of 'torch' (2.7.0.dev20251012) in your cache.
The latest version available is 2.7.0.dev20251013.

Use the cached version and skip the download? [Y/n]:

Why It's a Great Suggestion

It Promotes Stability by Default: This makes your environment's versions "sticky." They won't change unless you explicitly tell them to, which is much safer than automatically grabbing the latest, potentially broken, nightly build.
It Saves Time and Bandwidth: It directly avoids the slow dependency resolution and re-download process for minor updates.
It's User-Centric: It makes the tool feel more like an intelligent assistant that understands your workflow, rather than just a command executor.

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions