You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my project's dependency has a git+ssh dependency (transitive) declared in its pyproject.toml, and my project has the same dependency declared with git+ssh, resolution fails when running poetry lock.
Because dnst depends on dep (0.1.0) @ git+ssh://git@github.com/art-dsit/dep.git@gitssh which depends on graphrag (0.5.0) @ git+ssh://git@github.com/microsoft/graphrag.git, graphrag is required.
So, because dnst depends on graphrag (0.5.0) @ git+ssh://git@github.com/microsoft/graphrag.git, version solving failed.
Note the string "graphrag (0.5.0) @ git+ssh://git@github.com/microsoft/graphrag.git" is identical. (This problem is not with graphrag; I've created a self-contained example for this bug report using public dependencies)
The same dependency works fine with git+https.
You can reproduce the problem by trying to run poetry lock on https://github.com/art-dsit/dnst on branch gitssh. The main branch which uses https dependencies, e.g. graphrag = { git = "https://github.com/microsoft/graphrag.git" }, works fine.
Workarounds
I can use git+https but we prefer to use git+ssh for our CI
Description
If my project's dependency has a git+ssh dependency (transitive) declared in its pyproject.toml, and my project has the same dependency declared with git+ssh, resolution fails when running
poetry lock
.Note the string "graphrag (0.5.0) @ git+ssh://git@github.com/microsoft/graphrag.git" is identical. (This problem is not with graphrag; I've created a self-contained example for this bug report using public dependencies)
The same dependency works fine with git+https.
You can reproduce the problem by trying to run poetry lock on https://github.com/art-dsit/dnst on branch
gitssh
. Themain
branch which uses https dependencies, e.g.graphrag = { git = "https://github.com/microsoft/graphrag.git" }
, works fine.Workarounds
I can use git+https but we prefer to use git+ssh for our CI
Poetry Installation Method
pipx
Operating System
Ubuntu 24.04
Poetry Version
Poetry (version 1.8.4)
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: