Deprecate Package.getInternalSubPackage, simplify DepedencyResolver
The PackageManager will always eagerly load subpackages,
whether they are path based or embedded (see addPackages).
So calling getInternalSubPackage if getSubPackage returned
null will never yield a non-Nullable object.
In short, we can simplify that code greatly, and as
Package.getInternalSubPackage does not handle all use
case and require using the PackageManager anyway, just
deprecate it and direct people to the right function.
1 parent 824b0d0 commit 3bd3b5dcd59663346ead91d1171e842bb77dda62
@Mathias Lang Mathias Lang authored on 17 Jan 2024
Mathias LANG committed on 18 Jan 2024
Showing 3 changed files
View
source/dub/dub.d
View
source/dub/package_.d
View
source/dub/packagemanager.d