- 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.
-vvvoption).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 thatpoetry add <other package>fails withSo it looks like Poetry assumes all repos in
srcare git repos even though that is not necessarily the case.