-
I recently use pdm to manage different groups of packages, and use the The first thing came out of my mind was there maybe have a bug lying on the synchronizer module. But I find this and it is so surprised that this behavior is as design.
I see that above comments coming from the below code fragment tell which packages will be to be removed. pdm/pdm/installers/synchronizers.py Lines 113 to 126 in a353610 And my question is why the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yes, it is somewhat a hidden feature :P. Because it is a bit annoying to keep in mind which sections are added to installation when doing Say you installed your project with An option flag should be possible to address this problem, but I have not come up with an appropriate name for it :P. Any suggestion is welcomed. |
Beta Was this translation helpful? Give feedback.
Yes, it is somewhat a hidden feature :P. Because it is a bit annoying to keep in mind which sections are added to installation when doing
pdm sync --clean
, especially forpdm remove
(withpdm sync --clean
under the hood) where there is no way to specify which sections to keep.Say you installed your project with
extra1
feature, and after some development, you realizefoo
is not required anymore. You do this bypdm remove foo
and found extra1 is cleaned. This is why I put the comment like that. Also I would like to know what is your case, sincepdm sync
andpdm remove
are only useful in local development, namely, you are not likely to remove packages in CI or deployment.An option flag shou…