-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Pipenv 2023.8.21 parse error with packages from git #5849
Comments
I have the same problem with editable GitHub dependecies. Pipfile:
Pipfile.lock:
Error:
If I'm not mistaken the bug came in with this PR by @matteius: |
Ah bummer, sorry about this! This is tricky because some folks have the @ symbol as an extra ref and so I was thinking that would be easier to peel back off, but that breaks ssh:// without the extra @ symbol. 🤔 |
I just opened a PR that I think accounts for this extra edge case of ssh:// dependencies needing at least one Note: While if someone has a password in the vcs ref with an @, this could break in theory, but also in theory to hide the password it should be extracted out as a env var so I think this will still work. |
Thanks @matteius , your PR fixed the issue for my case 👍 |
|
Sorry, i stil see the same error with |
The issue is not only with ssh, there can also be a second @ sign with http[s] url, for basic authentication, like in the first message here. |
Ah I see now @jedie your example is not an ssh url. |
I am honestly not sure yet of how to handle the case of there could be 1 |
Maybe with urllib.parse.urlparse? Only remove the trailing @ and ref string from the "path" but don't touch the "netloc" |
@bpicardat That might be viable, but if I recall when working on the original refactor I was having some trouble with urllib parse but I can't recall specifically if it was about evaluating the netloc env vars and loosing them in the evaluated string (they get masked) or something similar that makes it hard to reconstruct back to the original line after parsing it. I opened an alternative PR that I think might solve it, assuming there aren't examples that lack a slash after the netloc |
If anyone has time to verify the latest PR -- I'll try to wrap up merging it later today if its a reasonable fix. |
Not sure if it's helpful, but we're noticing an error handling unauthenticated zip files over https in
I wanted to share as the comment thread seems to indicate some concern around authentication symbols in the url. In our case, this is a basic, public URL without any auth. |
@wesley-harding That feels like possibly a different issue -- Could you verify its still happening on |
We are also experiencing regressions with
I had to clamp |
@julio-tl Are you able to check the tagged draft PR to see if it fixes the regression in your case? Also, I apologize for the inconvenience. |
@matteius I can confirm that the alternative PR still works. Thanks for your effort! |
|
I have this in my Pipfile:
Results in Pipfile.lock to:
The installation results in a error, because of completely wrong URI:
The same works with older Pipenv v2023.7.23
The text was updated successfully, but these errors were encountered: