diff --git a/source/dub/dub.d b/source/dub/dub.d index 521538bf7..c35d89e6f 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -1596,7 +1596,7 @@ private class DependencyVersionResolver : DependencyResolver!(Dependency, Depend auto altdeppath = d.name == dbasename ? basepack.path : subpack.path; altdeppath.endsWithSlash = true; - if (absdeppath != desireddeppath) + if (!d.spec.path.empty && absdeppath != desireddeppath) logWarn("Warning: Sub package %s, referenced by %s %s must be referenced using the path to its base package", subpack.name, pack.name, pack.version_);