dlang / dub

Package and build management system for D
MIT License
674 stars 230 forks source link

dub clean --all-packages doesn't remove all build artifacts #1256

Open MartinNowak opened 7 years ago

MartinNowak commented 7 years ago

System information

Bug Description

Build targets are still left in ~/.dub/package folders after running dub clean --all-packages.

How to reproduce?

dub fetch vibe-d
dub build vibe-d
ls -lh ~/.dub/packages/vibe-d-0.8.1/vibe-d/libvibed.a
dub clean --all-packages
ls -lh ~/.dub/packages/vibe-d-0.8.1/vibe-d/libvibed.a # still there
dub build vibe-d:http
ls -lh ~/.dub/packages/vibe-d-0.8.1/vibe-d/http/libvibe-d_http.a
dub clean --all-packages
ls -lh ~/.dub/packages/vibe-d-0.8.1/vibe-d/http/libvibe-d_http.a # stil there

Expected Behavior

All target files of all build configurations, and all copyFiles should be removed. Even just removing the targets for the default configuration would be a good improvement.

MartinNowak commented 6 years ago

Also subproject build caches aren't cleaned. e.g.

data/.dub/build/library-debug-linux.posix-x86_64-dmd_2078-1D306B4CDF1D8892F7C502EA0C6AC840/libvibe-d_data.a
http/.dub/build/library-debug-linux.posix-x86_64-dmd_2078-44E4D7BEF4C82829B478CFE692097C72/libvibe-d_http.a