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 add hangs for ssh if remote asks for authentication and --verbose is not provided #10951

Closed
tbrugere opened this issue Jan 25, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@tbrugere
Copy link

Summary

reproduction steps

$ uv init test
$ cd test
$ uv add git+https://github.com/hello/world
Updating https://github.com/hello/world (HEAD)
Updating https://github.com/hello/world (HEAD)
  Resolving dependencies
  • result: uv hangs indefinitely
  • expected result: uv either asks for authentication, or raises an error

Note that if --verbose is provided, then uv asks for user authentication.

$ uv init test
$ cd test
$ uv add --verbose git+https://github.com/hello/world
DEBUG uv 0.5.23 (ba42467f1 2025-01-23)
DEBUG Found project root: `/tmp/test/test`
DEBUG No workspace root found, using project root
DEBUG Reading Python requests from version file at `/tmp/test/test/.python-version`
DEBUG Using Python request `3.11` from version file at `.python-version`
DEBUG The virtual environment's Python version satisfies `3.11`
DEBUG Using request timeout of 30s
DEBUG Attempting GitHub fast path for: https://api.github.com/repos/hello/world/commits/HEAD
DEBUG No netrc file found
DEBUG GitHub API request failed for: https://api.github.com/repos/hello/world/commits/HEAD (404 Not Found)
DEBUG Fetching source distribution from Git: https://github.com/hello/world
DEBUG Acquired lock for `https://github.com/hello/world`
DEBUG Updating Git source `https://github.com/hello/world`
DEBUG Attempting GitHub fast path for: https://api.github.com/repos/hello/world/commits/HEAD
DEBUG failed to check github HTTP status client error (404 Not Found) for url (https://api.github.com/repos/hello/world/commits/HEAD)
DEBUG Performing a Git fetch for: https://github.com/hello/world
Username for 'https://github.com':

Platform

Linux 6.6.68-1-lts x86_64 GNU/Linux

Version

uv 0.5.23 (ba42467 2025-01-23)

Python version

Python 3.11.11

@tbrugere tbrugere added the bug Something isn't working label Jan 25, 2025
@charliermarsh
Copy link
Member

I believe this is a duplicate of #5107.

@tbrugere
Copy link
Author

oh my bad it is.

@charliermarsh
Copy link
Member

All good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants