diff --git a/source/dub/dependencyresolver.d b/source/dub/dependencyresolver.d index edfbc4e..36804a0 100644 --- a/source/dub/dependencyresolver.d +++ b/source/dub/dependencyresolver.d @@ -132,7 +132,7 @@ // get the current config/version of the current dependency sizediff_t childidx = package_indices[basepack]; - if (!all_configs[childidx].length) { + if (all_configs[childidx] == [CONFIG.invalid]) { enforce(parentbase != root_base_pack, format("Root package %s contains reference to invalid package %s", parent.pack, ch.pack)); // choose another parent config to avoid the invalid child if (parentidx > maxcpi) {