-
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 install --without
installs optional dependency groups
#4577
Labels
kind/bug
Something isn't working as expected
Comments
pmav99
added
kind/bug
Something isn't working as expected
status/triage
This issue needs to be triaged
labels
Sep 30, 2021
Is it really considered a bug? Personally, I would use From your example:
No? |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
-vvv
option).This is somewhat similar to #4401 but that was about poetry 1.1 so I opened a different ticket.
Issue
Let's say we have two optional groups,
test
andfoo
.foo
does not contain any packages, but this is not important here. I am just keep it empty to speed up dependency resolution etc.Running
poetry update
followed bypoetry install
works great, i.e.pytest
will not be installed since nobody asked to install the grouptest
.:If we try to run
poetry install --with foo
then still everything works as expected. I.e. pytest remains non-installed.Nevertheless, when we try to run
poetry install --without foo
, then the dependencies of grouptest
get installed too!The text was updated successfully, but these errors were encountered: