-
Notifications
You must be signed in to change notification settings - Fork 900
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.lock local cache path which causes sync fail when cache is empty #10012
Comments
The paths you're seeing are indicative of a bug. We should never be writing relative paths to the cache like that. Can you come up with a reproduction that we can use to debug? |
|
Thanks, I'll take a look. |
Ah yeah, this is known -- there's a TODO for it, but we don't have any way to represent "local wheel file within a Git repository" today. (The problem is the references to the wheels in |
Thank you! Is there an alternative installation method to work around this issue that you know of? |
Unfortunately I think we just need to fix it. A long-shot option is that you could use URL sources for your pre-built wheels instead of path sources... That would probably work, but it's pretty inconvenient. |
I looked into this a bit more and unfortunately I misdiagnosed the issue. There is a real limitation to relying on wheel paths in Git repositories, which I've fixed in #10072. But the repo you linked is doing something very specific that I doubt we'll be able to support, in that the metadata it generates on-the-fly encodes the current working directory: https://github.com/vmware/vsphere-automation-sdk-python/blob/145786b88fec3c0f59335d7dd683c1017a1fe626/setup.py#L20-L25 (e.g., That will always encode the path to the build directory. In some sense pip suffers from the same problem, if you look at the
But it does show up in
So I think this is something that needs to change in the package itself, unfortunately. |
Environment
Platform: MacOS (M2)
Python: 3.13.1
UV: 0.5.10
Commands Run
The text was updated successfully, but these errors were encountered: