diff --git a/source/dub/dub.d b/source/dub/dub.d index 19c97e1..33940d1 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -499,7 +499,9 @@ /// Loads the package from the specified path as the main project package. void loadPackage(NativePath path) { - m_project = new Project(m_packageManager, path); + auto pack = this.m_packageManager.getOrLoadPackage( + path, NativePath.init, false, StrictMode.Warn); + this.loadPackage(pack); } /// Loads a specific package as the main project package (can be a sub package) diff --git a/source/dub/test/base.d b/source/dub/test/base.d index 4f8cf8f..695ac16 100644 --- a/source/dub/test/base.d +++ b/source/dub/test/base.d @@ -152,12 +152,6 @@ return new MockPackageSupplier(url); } - /// Loads the package from the specified path as the main project package. - public override void loadPackage(NativePath path) - { - assert(0, "Not implemented"); - } - /// Loads a specific package as the main project package (can be a sub package) public override void loadPackage(Package pack) {