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
proofreading fixes on the version-specific manifests article (#9054)
applies proofreading fixes to the existing article on version-specific
swift packages
### Motivation:
Spotted a typo and wanted to resolve it
### Modifications:
grammar, punctuation, and typos changes
### Result:
clearer content
Copy file name to clipboardExpand all lines: Sources/PackageManagerDocs/Documentation.docc/SwiftVersionSpecificPackaging.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ Provide a package manifest for a specific version of Swift.
6
6
7
7
The package manager supports packages that work with a variety of versions, both the versions of the language and versions of the Swift toolchain, which provides the package manager.
8
8
9
-
For language spcific version checks, use the language-specific version checks available in the source code.
10
-
However, in some circumstances this may become unmanageable, specifically when the package manifest cannot be versionagnostic.
9
+
For language-specific version checks, use the language-specific version checks available in the source code.
10
+
However, in some circumstances, this may become unmanageable, specifically when the package manifest cannot be version-agnostic.
11
11
An example being when you adopt new features in the package manifest that aren't present in older versions.
12
12
13
-
The package manager supports for a mechanism to allow version-specific manifests to be used alongside a current manifest to support older versions of Swift.
13
+
The package manager supports a mechanism to allow version-specific manifests to be used alongside a current manifest to support older versions of Swift.
14
14
15
15
### Version-specific Manifest Selection
16
16
@@ -30,14 +30,14 @@ For example, if there are three manifests:
The package manager picks `Package.swift` on Swift 6 and above, because its tools version is most compatible with future version of the package manager.
Otherwise, when using Swift 5.9 it picks `[email protected]`, and this is the minimum tools version this package may be used with.
33
+
The package manager picks `Package.swift` on Swift 6 and above, because its tools version is most compatible with future versions of the package manager.
Otherwise, when using Swift 5.9, it picks `[email protected]`, and this is the minimum tools version this package may be used with.
36
36
37
37
A package may have versioned manifest files which specify newer tools versions than its unversioned `Package.swift` file.
38
38
In this scenario, the package manager uses the manifest corresponding to the newest-compatible tools version.
39
39
40
-
> Note: Support for having a versioned manifest file with a _newer_ tools version was required when the feature was first introduced, because prior versions of the package manager were not aware of the concept and only knew to look for the unversioned `Package.swift`. This is still supported, but there have been many Swift releases since the feature was introduced. It is a best practice to have `Package.swift` declare the newest-supported tools version and for versioned manifest files to only specifer older versions.
40
+
> Note: Support for having a versioned manifest file with a _newer_ tools version was required when the feature was first introduced because prior versions of the package manager were not aware of the concept and only knew to look for the unversioned `Package.swift`. This is still supported, but there have been many Swift releases since the feature was introduced. It is a best practice to have `Package.swift` declare the newest-supported tools version and for versioned manifest files to only specify older versions.
41
41
42
42
### Version-specific tags when resolving remote dependencies
0 commit comments