Dub.loadPackage: Error out if no recipe is found
Before, due to calling Project.this(PackageManager, NativePath), using loadPackage when no PackageRecipe exists would lead to an error message being printed from the ctor and the Project being initialized with an empty recipe. Such a behavior should not be implicit - instead, we will now error out directly from loadPackage if no Package is found. A nice side effect is that it also allows us to re-defined one overload in terms of the other, simplifying subclasses implementations. |
---|
|
source/dub/dub.d |
---|
source/dub/test/base.d |
---|