-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
pip install git+file:// doesn't work with Windows UNC paths #3783
Comments
In principle, I'd expect that if git can access a URL |
Hi all, I run:
And I get this message:
When I try adding more slashes to my pip install command, they always get removed: the Is there any way to fix this behaviour?
Thanks for your help, |
Update: by tinkering with the file paths, I managed to get the following working:
Notice the backslash hidden in the repo path. This partly solves my original issue. |
I took a look at this issue, and it's basically because of a bug in CPython's I filed an issue about it yesterday on CPython's issue tracker here-- To summarize, git-clone accepts UNC paths of the form: However, URL's of this form (with four or more leading slashes) fail to round-trip when using
This is what pip does in pip/src/pip/_internal/vcs/__init__.py Lines 231 to 244 in db12733
A couple options for us are--
|
I am going to close this, given the lack of activity on this issue -- I reckon that this has been resolved at some point. If not, I reckon this needs to be resolved in CPython and there isn't much more that pip should try to do here. |
Git Version: 2.8.3.windows.1
Description:
I am trying to install a package from a local repository using a UNC path. However pip seems to be mangling the path. After some inspection it seems like the code in git.py in the init function lines 39-48 are removing any slashes from the beginning of the UNC path. When this is then passed to Git it isn't a functional path.
What I've run:
The text was updated successfully, but these errors were encountered: