File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,16 @@ extension PackageDependencyDescription {
15
15
/// Create the package reference object for the dependency.
16
16
public func createPackageRef( config: SwiftPMConfig ) -> PackageReference {
17
17
let effectiveURL = config. mirroredURL ( forURL: url)
18
+
19
+ // FIXME: The identity of a package dependency is currently based on
20
+ // the explicit name provided in the package manifest, if provided,
21
+ // falling back on a name computed from its effective URL.
22
+ // We should instead use the declared URL of a package dependency as its identity,
23
+ // as it will be necessary for supporting package registries.
24
+ let identity = explicitName? . lowercased ( ) ?? PackageReference . computeIdentity ( packageURL: effectiveURL)
25
+
18
26
return PackageReference (
19
- identity: explicitName ? . lowercased ( ) ?? PackageReference . computeIdentity ( packageURL : effectiveURL ) ,
27
+ identity: identity ,
20
28
path: effectiveURL,
21
29
kind: requirement == . localPackage ? . local : . remote
22
30
)
You can’t perform that action at this time.
0 commit comments