Deprecate `PackageManager.loadSCMPackage` & other `Dependency`-related refactoring (#2312)
* Trivial: Take a nested function out of a foreach loop

* Deprecate PackageManager.loadSCMPackage's Dependency overload, use Repository

We're moving away from using `Dependency.m_range` to store the git ref,
and the `Repository` type has already been updated to include the information,
but some places still read it from `m_range`, including this one.

* Trivial: Forward Dependency's string ctor to VersionRange ctor

* Trivial: Simplify comparison with `VersionRange.Invalid` within `VersionRange`
1 parent 1f1d30d commit b503a805734d10af4864e64ac0b69fe0c1592351
@Mathias LANG Mathias LANG authored on 15 Jul 2022
GitHub committed on 15 Jul 2022
Showing 4 changed files
View
source/dub/dependency.d
View
source/dub/dub.d
View
source/dub/packagemanager.d
View
source/dub/project.d