Skip to content

Commit

Permalink
Fix bogus warning for non-path based dependencies.
Browse files Browse the repository at this point in the history
Introduced by #1974.
  • Loading branch information
s-ludwig authored and dlang-bot committed Sep 10, 2020
1 parent 2b96205 commit 01a086d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dub/dub.d
Original file line number Diff line number Diff line change
Expand Up @@ -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_);

Expand Down

0 comments on commit 01a086d

Please sign in to comment.