poetry install --without
installs optional dependency groups
#4577
Labels
kind/bug
Something isn't working as expected
-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: