-
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
Conflicting dependencies even if dependency group is not installed #6611
Comments
Poetry's current resolver module ensures that every possible combination of dependencies, extras, and groups is installable. This is a key feature of Poetry, and while we have discussed future support for mutually exclusive groups or extras, such support would require a major refactor and (likely breaking) changes, and no one has seriously expressed interest in implementing similar. Partially a dupe of #6419 as the same refactoring of the resolver is required, even if extras and dependencies are not the same. |
Thanks for the quick answer @neersighted. I really had hoped this issue could be solved with dependency groups. Would be glad if this will eventually be implemented. If anybody has found a good alternative solution or workaround (extras seem to have the same problem as far as I understand), please let me know. |
We are looking to add a new type of dependency management for 'non-importable' dependencies that keeps tools in their own venvs and doesn't force them to be part of the dependency tree. Very early days, but it will solve this in the long run for you. I forget where the draft PR/work was parked -- @abn could you link your work? |
Hi, |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option) and have included the output below.Issue
Since the current versions of Flake8 and Sphinx have conflicting dependencies, I have put these into separate, optional dependency groups. But no matter how I install (without one of the dependency groups or without both of them, running a simpe
poetry install
), I still get the error messagebecause my-project depends on both flake8 (^5.0) and sphinx (^5.1), version solving failed.
Shouldn't the optional dependency groups avoid such kinds of problems?In the debug log I see
So it seems Poetry thinks that my project depends on both flake8 and sphinx, but it only optionally depends on them, and it should only give an error if both groups are installed at the same time, i.e.
with lint,doc
.The text was updated successfully, but these errors were encountered: