Skip to content

Adding git dependency from subproject failes #1746

@finswimmer

Description

@finswimmer
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • Poetry version: 1.0.0.

Issue

At least with gitlab it is possible to organize your repositories in project and subprojects. This results in longer path names, e.g. https://example.org/project/subproject/rep.git

Trying to add this to a poetry project results in:

[CalledProcessError]
Command '['git', 'clone', 'git+https://example.org/project/subproject/rep.git', '/tmp/pypoetry-git-repuqxf81sd']' returned non-zero exit status 128.

The cause for this is that no regex in git.py matches this path.

I've already started to fix it.

fin swimmer

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions