Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv sync hangs forever if a git+https package requires authentication #7774

Closed
command-tab opened this issue Sep 29, 2024 · 5 comments
Closed
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@command-tab
Copy link

Problem

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/171
dependencies = [
  "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)
@command-tab
Copy link
Author

(Reported drive-by comment bot to GitHub for abuse)

@charliermarsh
Copy link
Member

(Thank you, blocked that user.)

@charliermarsh
Copy link
Member

I think this may be the same as #3783 (albeit with HTTPS -- but same underlying issue of not showing the prompt). Does that seem correct to you?

@charliermarsh charliermarsh added bug Something isn't working duplicate This issue or pull request already exists labels Sep 29, 2024
@command-tab
Copy link
Author

Oh, yup! Sounds like the same behavior, just a different protocol. Feel free to close this as a dupe if you wish to consolidate :) Thank you for uv!!

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2024
@charliermarsh
Copy link
Member

Thanks for following up :)

@github-staff github-staff deleted a comment Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants