Skip to content

Commit

Permalink
Fix #2973
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Oct 29, 2024
1 parent 7a50f4c commit d99ea2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/dub/project.d
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,8 @@ class Project {
(VersionRange range) {
// See `dub.recipe.selection : SelectedDependency.fromYAML`
assert(range.isExactVersion());
return m_packageManager.getPackage(dep.name, vspec.version_);
auto tmp = m_packageManager.getPackage(basename, vspec.version_);
return resolveSubPackage(tmp, subname, true);
},
);
} else if (m_dependencies.canFind!(d => PackageName(d.name).main == basename)) {
Expand Down

0 comments on commit d99ea2c

Please sign in to comment.