You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running uv sync in a project containing a pyproject.toml that lists a package via git+https which requires authentication, the uv operation spins forever at "Resolving dependencies...".
When running with uv --verbose sync, I see an authentication prompt in the verbose output. It would be helpful if that prompt/non-OK HTTP status code was detected and either prompted about or at least errored about during a non-verbose uv sync rather than appearing to indicate that dependencies might resolve if you wait long enough.
Workaround
For a quick workaround, I expanded the read permissions of that git repo, since I control it as well.
Example
pyproject.toml
[project]
name = "myapp"version = "1.0.0"description = "My app"readme = "README.md"requires-python = ">=3.11"# Awaiting resolution on this GitHub issue to be able to use a private pypi# without specifying an extra index URL, which could be abused:# https://github.com/astral-sh/uv/issues/171dependencies = [
"mypackagename @ git+https://git.example.com/mypackagename.git@1.2.3",
]
Environment
macOS 15.0 Sequoia
Python 3.11.3 (via uv)
uv 0.4.15 (Homebrew 2024-09-21)
The text was updated successfully, but these errors were encountered:
Problem
When running
uv sync
in a project containing apyproject.toml
that lists a package via git+https which requires authentication, the uv operation spins forever at "Resolving dependencies...".When running with
uv --verbose sync
, I see an authentication prompt in the verbose output. It would be helpful if that prompt/non-OK HTTP status code was detected and either prompted about or at least errored about during a non-verboseuv sync
rather than appearing to indicate that dependencies might resolve if you wait long enough.Workaround
For a quick workaround, I expanded the read permissions of that git repo, since I control it as well.
Example
pyproject.toml
Environment
The text was updated successfully, but these errors were encountered: