Skip to content

Poetry add fails if there is a mercurial repo in src #2248

@tiktuk

Description

@tiktuk
  • 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).
  • OS version and name: Debian GNU/Linux 9.6 (stretch)
  • Poetry version: 1.0.5

Issue

I needed to install a package from a Mercurial repo and since Poetry doesn't support Mercurial I installed it using Pip. I did it in editable mode using pip -e. After that poetry add <other package> fails with

$ poetry add <package>

[CalledProcessError]
Command '['git', '--git-dir', '/home/user/.virtualenvs/venv/src/myhgpackage/.git', '--work-tree', '/home/user/.virtualenvs/venv/src/myhgpackage', 'rev-parse', 'HEAD^{commit}']' returned non-zero exit status 128.

So it looks like Poetry assumes all repos in src are git repos even though that is not necessarily the case.

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