You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
improve correctness by using identity more broadly throughout the code (#3244)
motivation: improve correctness by using identity more broadly throughout the code, prepare to package registry
changes:
* refector as PackageDependencyDescription with "scm" and "local" cases, this reflects better the true meaning and associated data with the two options and prepares us to adding a third option for registry
* create new abstraction IdentityResolver, with default implementation that follows existing identity resolution logic
* move mirror logic into IdentityResolver, and simplify code that used mirrors
* move all logic to generate identity, apply mirrors to PackageDependencyDescription so it is handles as soon as possible in the call stack
* adjust call-sites
* adjust and add tests for mirror
case productDependencyIncorrectPackage(name:String,package:String)
26
26
27
27
/// The package dependency name does not match the package name.
28
-
case incorrectPackageDependencyName(dependencyPackageName:String, dependencyName:String,dependencyURL:String, resolvedPackageName:String, resolvedPackageURL:String)
28
+
case incorrectPackageDependencyName(dependencyPackageName:String, dependencyName:String,dependencyLocation:String, resolvedPackageName:String, resolvedPackageURL:String)
29
29
30
30
/// The package dependency already satisfied by a different dependency package
31
-
case dependencyAlreadySatisfiedByIdentifier(dependencyPackageName:String,dependencyURL:String, otherDependencyURL:String, identity:PackageIdentity)
31
+
case dependencyAlreadySatisfiedByIdentifier(dependencyPackageName:String,dependencyLocation:String, otherDependencyURL:String, identity:PackageIdentity)
32
32
33
33
/// The package dependency already satisfied by a different dependency package
34
-
case dependencyAlreadySatisfiedByName(dependencyPackageName:String,dependencyURL:String, otherDependencyURL:String, name:String)
34
+
case dependencyAlreadySatisfiedByName(dependencyPackageName:String,dependencyLocation:String, otherDependencyURL:String, name:String)
35
35
36
36
/// The product dependency was found but the package name was not referenced correctly (tools version > 5.2).
0 commit comments