dub icon indicating copy to clipboard operation
dub copied to clipboard

How about: depending on a targetType "none" package trigger an error?

Open p0nce opened this issue 9 years ago • 1 comments

It seems to create confusion.

  • if I create a parent package that depends on all subpackages, then people think it's a good idea and depend on everything. Remember that NG post with 150 deps?
  • if I create a parent package with no dependencies on children, then it also create confusion: https://github.com/p0nce/dplug/issues/108

Maybe a solution would be to warn about the targetType "none" package with a message.

warning: this project depend on a targetType none package. Prefer depending on sub-packages instead.

p0nce avatar Jun 01 '16 06:06 p0nce

Depending on a targetType "none" package is useful if it has any preGenerateCommands and/or copyFiles that you want executed for multiple similar packages.

veelo avatar Mar 18 '22 17:03 veelo

we can still determine which packages are empty without effects (no dependencies, no commands, no copy files) and warn for those.

WebFreak001 avatar Feb 13 '23 13:02 WebFreak001