diff --git a/source/dub/dub.d b/source/dub/dub.d index f6c6f59..7c95cc2 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -227,7 +227,9 @@ foreach (p; m_project.selections.selectedPackages) { auto dep = m_project.selections.getSelectedVersion(p); if (!dep.path.empty) { - try if (m_packageManager.getOrLoadPackage(dep.path)) continue; + auto path = dep.path; + if (!path.absolute) path = this.rootPath ~ path; + try if (m_packageManager.getOrLoadPackage(path)) continue; catch (Exception e) { logDebug("Failed to load path based selection: %s", e.toString().sanitize); } } else { if (m_packageManager.getPackage(p, dep.version_)) continue;