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

Offline mode confusion #4728

Open
minusf opened this issue Jul 2, 2024 · 0 comments
Open

Offline mode confusion #4728

minusf opened this issue Jul 2, 2024 · 0 comments

Comments

@minusf
Copy link

minusf commented Jul 2, 2024

Here I go again trying to use uv as poor man's devpi offline replacement.

Some confusions about this were cleared up in an issue before (#3468)

Everything is working as explained there, however it doesn't seem to work for private packages (not on pypi).

Consider the following case (first I download our private package, but it could come from extra index url as well):

$ uv pip install /path/to/private_package-0.1.whl  # ends up in uv cache
$ uv pip install all_the_rest_from_pypi

when blowing away this venv and trying to recreate it offline, private_package.whl is not picked up from the cache (~/Library/Caches/uv/wheels-v1/url/...):

$ uv pip install private_package==0.1
  × No solution found when resolving dependencies:
  ╰─▶ Because private_package was not found in the package registry and you require private_package==0.1, we can conclude that the requirements are unsatisfiable.

$ uv --offline pip install private_package==0.1
  × No solution found when resolving dependencies:
  ╰─▶ Because private_package was not found in the cache and you require private_package==0.1, we can conclude that the requirements are unsatisfiable.
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^

      hint: Packages were unavailable because the network was disabled

My happy path expectation was that once I add private_package-0.1.whl to an existing venv, it will be cached forever and I don't need to setup an extra index url and/or keep the private packages offline manually in some folder.

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