Skip to content

Avoid showing Updating... for no-op Git operations like checkout of immutable references #12746

@sbidoul

Description

@sbidoul

Summary

Assume this requirements.txt:

pip-test-package @ git+https://github.com/pypa/pip-test-package@5547fa909e83df8bd743d3978d6667497983a4b7

uv pip install -r requirements.txt systematically shows Updating https://github.com/pypa/pip-test-package (5547fa909e83df8bd743d3978d6667497983a4b7)

Since this is an immutable commit sha, I expect this to be cached and the git update to be avoided on subsequent invocations.

I am under the impression that this is a regression (possibly a couple of months old), but I am not sure. If it would help I can try to bisect.

Platform

linux

Version

0.6.13

Python version

3.13.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    cacheCaching of packages and metadatacliRelated to the command line interfacehelp wantedContribution especially encouraged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions