Poetry fails to parse repositories URL with escaped characters #7033
Labels
area/core
Related to the poetry-core library
area/vcs
Related to support for VCS dependencies (Git and Dulwich)
kind/bug
Something isn't working as expected
status/confirmed
Issue is reproduced and confirmed
version/1.2.2
-vvv
option) and have included the output below.Issue
Poetry fails to parse the URL when adding git dependencies having escaped characters in the repository path.
The command
poetry add git+ssh://[email protected]:v3/myrepo/my%20repo/mylib#main -vvv
fails to find a pattern matching he URL (see the output below).
The problem seems to be in
poetry.core.vcs.git.ParsedUrl.parse
since the path regexPATH = r"[\w~.\-/\\\$]+"
does not capture%
symbols.I tried to extend the pattern (
PATH = r"[%\w~.\-/\\\$]+"
) and the command above finishes as expected.Command output.
The text was updated successfully, but these errors were encountered: