Open mw66 opened 4 years ago
dub add 'xxx-package' will add the package name to the dub.json. but dub remove 'xxx-package' doesn't update dub.json and dub.selections.json:
$ grep arsd dub.* dub.json: "arsd-official": "~>7.2.0", dub.selections.json: "arsd-official": "7.2.0", $ dub.exe remove arsd-official Removing arsd-official in C:\Users\xxx\AppData\Local\dub\packages\arsd-official-7.2.0\arsd-official\ Removed package: 'arsd-official' Removed arsd-official, version 7.2.0. $ grep arsd dub.* dub.json: "arsd-official": "~>7.2.0", dub.selections.json: "arsd-official": "7.2.0",
looks like it only clean the cache? it should do the opposite: remove the entry from the dub.json and dub.selections.json, but keep the cached file (then if the user want to add later, it doesn't need to download again).
dub.exe add arsd-official grep arsd dub.* dub.exe remove arsd-official grep arsd dub.*
after removal, the grep should return empty.
(where I can find the dub working log?)
I'd second this. dub remove should be the opposite from dub add.
dub remove
dub add
System information
Bug Description
dub add 'xxx-package' will add the package name to the dub.json. but dub remove 'xxx-package' doesn't update dub.json and dub.selections.json:
looks like it only clean the cache? it should do the opposite: remove the entry from the dub.json and dub.selections.json, but keep the cached file (then if the user want to add later, it doesn't need to download again).
How to reproduce?
Expected Behavior
after removal, the grep should return empty.
Logs
(where I can find the dub working log?)