Skip to content

--offline is not offline for "git+https" sources. #12234

@konstin

Description

@konstin

Originally posted by @andrei-korshikov in #942

I'm on uv 0.6.6 (c1a0bb8 2025-03-12). Some of my dependencies are git+https, e.g. I have

# /// script
# dependencies = [
#   "pycurl @ git+https://github.com/pycurl/pycurl.git",
#   ]
# ///

On every run of uv run --offline my_script.py I see Resolving dependencies... message and get these messages on stderr (and see corresponding traffic in Wireshark):

Updating https://github.com/pycurl/pycurl.git (HEAD)
Updated https://github.com/pycurl/pycurl.git (d92395d9fe1e18365c4e4812f4351bd6985872e1)

If this behaviour is intended, I think it should be documented. Documentation for --offline reads: "Disable network access. When disabled, uv will only use locally cached data and locally available files.", and as we see for "git+https" it is definitely not so.


Off-topic: and huge thank you for uv!:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedContribution especially encouraged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions