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.
1 parent 021dbf2 commit db725ece6524ba6f56cfd5c68cb6406feb4039b7
@Mathias Lang Mathias Lang authored on 2 Jan 2024
Mathias LANG committed on 2 Jan 2024
Showing 2 changed files
View
source/dub/dub.d
View
source/dub/test/base.d