From 5dfafc697744279a9910fa3744a2e72083e9e005 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 9 Aug 2023 07:27:32 -0400 Subject: [PATCH] no point warning about third party packages --- source/dub/project.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dub/project.d b/source/dub/project.d index f68155a38..dfc7858db 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -797,7 +797,7 @@ class Project { if (shallow && pkg !is m_rootPackage) psettings.sourceFiles = null; processVars(dst, this, pkg, psettings, gsettings); - if (!gsettings.single && psettings.importPaths.empty) + if (!gsettings.single && psettings.importPaths.empty && pkg is m_rootPackage) logWarn(`Package %s (configuration "%s") defines no import paths, use {"importPaths": [...]} or the default package directory structure to fix this.`, pkg.name, configs[pkg.name]); if (psettings.mainSourceFile.empty && pkg is m_rootPackage && psettings.targetType == TargetType.executable) logWarn(`Executable configuration "%s" of package %s defines no main source file, this may cause certain build modes to fail. Add an explicit "mainSourceFile" to the package description to fix this.`, configs[pkg.name], pkg.name);