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
Copy file name to clipboardExpand all lines: Documentation/PackageRegistry/PackageRegistryUsage.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -127,8 +127,8 @@ and apply them automatically when making registry API requests.
127
127
## Dependency Resolution Using Registry
128
128
129
129
Resolving a registry dependency involves these steps:
130
-
1. Fetch a package's available versions by calling the [list package releases](https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#41-list-package-releases) API.
131
-
2. Compute the dependency graph by [fetching manifest(s) for a package release](https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#43-fetch-manifest-for-a-package-release).
130
+
1. Fetch a package's available versions by calling the [list package releases](Registry.md#41-list-package-releases) API.
131
+
2. Compute the dependency graph by [fetching manifest(s) for a package release](Registry.md#43-fetch-manifest-for-a-package-release).
132
132
3. Pinpoint the package version to use.
133
133
134
134
### Using registry for source control dependencies
@@ -151,7 +151,7 @@ they are considered different even though they are the same package,
151
151
and would result in symbol clashes.
152
152
153
153
SwiftPM can deduplicate packages by performing a
154
-
[lookup on the source control URL](https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#endpoint-5)
154
+
[lookup on the source control URL](Registry.md#endpoint-5)
155
155
(e.g., `https://github.com/mona/LinkedList`) to see if it is associated with
156
156
any package identifier (e.g., `mona.LinkedList`).
157
157
@@ -164,7 +164,7 @@ source control dependencies by setting one of these flags:
164
164
## Dependency Download From Registry
165
165
166
166
After a registry dependency is resolved, SwiftPM can
|`licenseURL`| String | URL of the package release's license document. ||
1369
1369
|`originalPublicationTime`| String | Original publication time of the package release in [ISO 8601] format. This can be set if the package release was previously published elsewhere.<br>A registry should record the publication time independently and include it as `publishedAt` in the [package release metadata response](#42-fetch-information-about-a-package-release). <br>In case both `originalPublicationTime` and `publishedAt` are set, `originalPublicationTime` should be used. ||
1370
1370
|`readmeURL`| String | URL of the README specifically for the package release or broadly for the package. ||
1371
-
|`repositoryURLs`| Array | Code repository URL(s) of the package. It is recommended to include all URL variations (e.g., SSH, HTTPS) for the same repository. This can be an empty array if the package does not have source control representation.<br/>Setting this property is one way through which a registry can obtain repository URL to package identifier mappings for the ["lookup package identifiers registered for a URL" API](https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#45-lookup-package-identifiers-registered-for-a-url). A registry may choose other mechanism(s) for package authors to specify such mappings. ||
1371
+
|`repositoryURLs`| Array | Code repository URL(s) of the package. It is recommended to include all URL variations (e.g., SSH, HTTPS) for the same repository. This can be an empty array if the package does not have source control representation.<br/>Setting this property is one way through which a registry can obtain repository URL to package identifier mappings for the ["lookup package identifiers registered for a URL" API](Registry.md#45-lookup-package-identifiers-registered-for-a-url). A registry may choose other mechanism(s) for package authors to specify such mappings. ||
Copy file name to clipboardExpand all lines: Sources/PackageCollectionsModel/Formats/v1.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ To begin, define the top-level metadata about the collection:
28
28
Each item in the `packages` array is a package object with the following properties:
29
29
30
30
*`url`: The URL of the package. Currently only Git repository URLs are supported. URL should be HTTPS and may contain `.git` suffix.
31
-
*`identity`: The [identity](https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#36-package-identification) of the package if published to registry. **Optional.**
31
+
*`identity`: The [identity](https://github.com/apple/swift-package-manager/blob/main/Documentation/PackageRegistry/Registry.md#36-package-identification) of the package if published to registry. **Optional.**
32
32
*`summary`: A description of the package. **Optional.**
33
33
*`keywords`: An array of keywords that the package is associated with. **Optional.**
34
34
*`readmeURL`: The URL of the package's README. **Optional.**
@@ -102,7 +102,7 @@ A version object has metadata extracted from `Package.swift` and optionally addi
*`author`: The package version's author. **Optional.**
104
104
*`name`: The author of the package version.
105
-
*`signer`: The signer of the package version. **Optional.** Refer to [documentation](https://github.com/apple/swift-package-manager/blob/main/Documentation/PackageRegistryUsage.md#package-signing) on package signing for details.
105
+
*`signer`: The signer of the package version. **Optional.** Refer to [documentation](https://github.com/apple/swift-package-manager/blob/main/Documentation/PackageRegistry/PackageRegistryUsage.md#package-signing) on package signing for details.
106
106
*`type`: The signer type. Currently the only valid value is `ADP` (Apple Developer Program).
107
107
*`commonName`: The common name of the signing certificate's subject.
108
108
*`organizationalUnitName`: The organizational unit name of the signing certificate's subject.
0 commit comments