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
Is your feature request related to a problem? Please describe.
When you checkout fresh project managed by pdm, if you run an install commands without specifying a group, it automatically does the resolution locking, including the dev group. So if you do a pdm install and then a pdm install -d later, it works fine.
But then if you want to install with an optional group later (let's say all), you get this error:
$ pdm install -G all
[PdmUsageError]: Requested groups not in lockfile: all
It surprised my coworker and they thought something was broken/wrong with their install or the project.
You should run pdm add -G all to add and install the dependencies. add is more proper than install since it clearly means to add to the existing groups.
Is your feature request related to a problem? Please describe.
When you checkout fresh project managed by pdm, if you run an install commands without specifying a group, it automatically does the resolution locking, including the dev group. So if you do a
pdm install
and then apdm install -d
later, it works fine.But then if you want to install with an optional group later (let's say
all
), you get this error:It surprised my coworker and they thought something was broken/wrong with their install or the project.
way to reproduce:
Describe the solution you'd like
I would expect PDM to re-do the locking with the optional group when asked to install the optional group, rather than erroring.
The text was updated successfully, but these errors were encountered: