-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Wrong return value of a Link.is_artifact for git+user@hostname editable packages #6293
Comments
Can you exhibit a problem this causes in pip? The linked issue shows pip code being called from pip-tools, so it would be nice to have a pip-specific issue to get a better understanding of what code paths this affects. |
Sorry, the post turns out a bit messy. Perhaps, there is not an issue at all, but i've been trying to explain, that conditionals like
On the other hand the URL like git+ssh:// works like a charm:
Pip install works well with
Regarding to the pip download doc there's no specs for VCS URLs, just mentioned
The question is "the bug or not the bug"? |
@cjerdonek i've prepared a PR #6296 to fix the bug. |
@atugushev I wouldn't call it a bug because, as you pointed out, that form of url isn't listed in the docs as one of the "supported forms" of VCS urls. So it would need to be discussed whether to expand what urls are accepted. PS - thank you for writing up your findings from the documentation so nicely! |
This is strongly related to #2994. |
FWIW, we had a similar discussion for Pipenv as well. The decision was to support SSH-like URIs, but I would strongly warn anyone attempting to do the same. It’s very messy. Don’t do it if you have a choice. |
I think we have a choice in this case. :) |
Let's get rid of If anyone is opposed to that, please holler. |
I'm still in favor but I'd be in favor of quite long deprecation period (at least 6 months, maybe a year ?) |
I made the PR to deprecate |
Closing as we propose to remove the |
A
Link.is_artifact
returnsTrue
for URLs likegit+user@hostname/repo.git
which is probably a bug, see:pip/src/pip/_internal/models/link.py
Lines 160 to 161 in 04f1e70
That's because a
Link.scheme
returns an empty string forgit+user@...
url, since there is no the explicit scheme (which isssh://
). It may cause potential bugs. For example:pip/src/pip/_internal/operations/prepare.py
Lines 350 to 353 in 04f1e70
Refs jazzband/pip-tools#738
The text was updated successfully, but these errors were encountered: