Use getPackage instead of getBestPackage for resolved dependencies
getBestPackage is intended to find the highest local version matching a range.
Due to this, it has to eagerly load packages and iterate through them.
However, when loading a resolved dependency, we have an exact Version,
which is simply wrapped in a VersionRange, so we can call getPackage instead.
1 parent f237f18 commit 310cb46c987eaadb2f386c654926acb89ef72517
@Geod24 Geod24 authored on 20 Oct 2022
Mathias LANG committed on 20 Oct 2022
Showing 1 changed file
View
source/dub/project.d