You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this is run, an exception is thrown for Invalid git url "git+ssh://git.launchpad.net/~uhryniuk/+git/example-repo".
This error occurs because of the regex rules for PATH in core/vcs/git.py, which does not support '+'.
Why
The practice of having a '+' in the path for repos may seem odd, especially on github but this pattern occurs more frequently on Launchpad. Users on Launchpad have the option of using different VCS systems and the +git is a distinction of which VCS (in this case git) is being used.
The URL, git+ssh://git.launchpad.net/~uhryniuk/+git/example-repo, is an actual repo created on Launchpad and will cause the error when trying to resolve it with poetry.
Workarounds
No current work arounds, adding this manually to the poetry dependencies results in the same error.
Description
What
poetry add
is unable to parse repositories that contain '+' in their path. Below is an example of the usage.When this is run, an exception is thrown for
Invalid git url "git+ssh://git.launchpad.net/~uhryniuk/+git/example-repo"
.This error occurs because of the regex rules for
PATH
incore/vcs/git.py
, which does not support '+'.Why
The practice of having a '+' in the path for repos may seem odd, especially on github but this pattern occurs more frequently on Launchpad. Users on Launchpad have the option of using different VCS systems and the
+git
is a distinction of which VCS (in this case git) is being used.The URL,
git+ssh://git.launchpad.net/~uhryniuk/+git/example-repo
, is an actual repo created on Launchpad and will cause the error when trying to resolve it with poetry.Workarounds
No current work arounds, adding this manually to the poetry dependencies results in the same error.
Poetry Installation Method
system package manager (eg: dnf, apt etc.)
Operating System
Ubuntu 22.04
Poetry Version
1.8.3
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: