-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry add fails if there is a mercurial repo in src #2248
Comments
I actually have a somewhat related issue, although I can move this to a separate issue if it's deemed off-topic. I ran into the same symptom (i.e. I also did a bit of diagnostic work, though I'll be the first to admit I'm not familiar at all with the codebase. When running
For this case, would it make sense to check if the The failure in my case actually ends up a bit more convoluted. The code uses Changing how the path is calculated could help, but even then multiple packages would end up pointing to the same repo, which seems strange. I think a better error message could be helpful, even if the behavior is kept as-is. |
Hello, I recognized this when working on #2242. It can be fixed in this part: poetry/poetry/repositories/installed_repository.py Lines 58 to 72 in bf331a5
by catching fin swimmer |
I just came across a related one, I added a git repo to my colour = { git = "https://github.com/colour-science/colour.git", branch = "develop" }
The issue comes from the fact that the python package and the repo are different thus:
But:
It relates to #1417 |
I'm observing this also in
and
Poetry AddendumMy problem was in fact due to #2667 (which #2668 proposes to fix) |
-vvv
option).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
src
are git repos even though that is not necessarily the case.The text was updated successfully, but these errors were encountered: