Allow dependency injection on the PackageSupplier
...
In order to make the `Dub` class properly unittest-able,
we need to be able to use a non-default `PackageSupplier`,
in particular one that would not hit the registry or the filesystem.
This can be achieved by moving a free function to a method and having
derived class override it, as shown in this commit.
Mathias Lang
authored
on 26 Dec 2023
Nicholas Wilson
committed
on 27 Dec 2023