Skip to content

Commit

Permalink
Resolve sub packages when loading path based dependencies. Fixes #347.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Jun 13, 2014
1 parent 5bb8496 commit ead879c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/dub/project.d
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ class Project {
if (!path.absolute) path = pack.path ~ path;
logDiagnostic("Adding local %s", path);
p = m_packageManager.getOrLoadPackage(path);
if (name.canFind(':')) p = p.getSubPackage(getSubPackageName(name));
enforce(p.name == name, format("Path based dependency %s is referenced with a wrong name: %s vs. %s", path.toNativeString(), name, p.name));
}

Expand Down

0 comments on commit ead879c

Please sign in to comment.