diff --git a/source/dub/package_.d b/source/dub/package_.d index 0f5cf2d..98d0dc9 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -117,7 +117,6 @@ m_info = recipe; fillWithDefaults(); - simpleLint(); } /** Searches the given directory for package recipe files. @@ -674,7 +673,7 @@ } } - private void simpleLint() + package void simpleLint() const { if (m_parentPackage) { if (m_parentPackage.path != path) { diff --git a/source/dub/project.d b/source/dub/project.d index df18b7c..c4f054b 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -293,6 +293,9 @@ // check for version specification mismatches bool[Package] visited; void validateDependenciesRec(Package pack) { + // perform basic package linting + pack.simpleLint(); + foreach (d; pack.getAllDependencies()) { auto basename = getBasePackageName(d.name); if (m_selections.hasSelectedVersion(basename)) {