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

sync with token-based authentication #10025

Open
zkurtz opened this issue Dec 19, 2024 · 0 comments
Open

sync with token-based authentication #10025

zkurtz opened this issue Dec 19, 2024 · 0 comments

Comments

@zkurtz
Copy link
Contributor

zkurtz commented Dec 19, 2024

I can install a package from a private repo at a specific git commit as documented using my personal access token.

However, when a teammate then tries to spin up my project with uv sync, it just hangs as previously reported here. This makes sense, as the uv.lock does not (and should not) include my access token.

Although you've clarified that you don't support interactive authentication, might there already be a way for a user to configure environment variables so that uv sync would just work?

Short of that, my current workaround for someone else to set up a venv consistent with mine is kinda ugly:

uv venv

# for each private repo do
uv add git+https://${TOKEN_VARIABLE}...

# now that ^^ are already installed, we can pick up all the other deps specified in `uv.lock`:
uv sync
@zkurtz zkurtz changed the title sync with authentication sync with token-based authentication Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant