Skip to content

Commit c56e1ee

Browse files
authored
SwiftSDKBundle.swift: update strings to use "Swift SDK" naming (#6579)
Some of user-visible strings refer to "cross-compilation destinations", while those are called "Swift SDKs" per the updated SE proposal. Let's update the strings to match the proposal.
1 parent 42fcece commit c56e1ee

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Sources/PackageModel/SwiftSDKBundle.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public struct SwiftSDKBundle {
8585
guard let destinationsDirectory else {
8686
throw StringError(
8787
"""
88-
No cross-compilation destinations directory found, specify one
89-
with `experimental-destinations-path` option.
88+
No directory found for installed Swift SDKs, specify one
89+
with `--experimental-swift-sdks-path` option.
9090
"""
9191
)
9292
}
@@ -99,7 +99,7 @@ public struct SwiftSDKBundle {
9999

100100
guard !validBundles.isEmpty else {
101101
throw StringError(
102-
"No valid cross-compilation destination bundles found at \(destinationsDirectory)."
102+
"No valid Swift SDK bundles found at \(destinationsDirectory)."
103103
)
104104
}
105105

@@ -110,8 +110,8 @@ public struct SwiftSDKBundle {
110110
) else {
111111
throw StringError(
112112
"""
113-
No cross-compilation destination found matching query `\(selector)` and host triple
114-
`\(hostTriple.tripleString)`. Use `swift package experimental-destination list` command to see
113+
No Swift SDK found matching query `\(selector)` and host triple
114+
`\(hostTriple.tripleString)`. Use `swift experimental-sdk list` command to see
115115
available destinations.
116116
"""
117117
)
@@ -167,7 +167,7 @@ public struct SwiftSDKBundle {
167167

168168
bundlePath = downloadedBundlePath
169169

170-
print("Destination artifact bundle successfully downloaded from `\(bundleURL)`.")
170+
print("Swift SDK bundle successfully downloaded from `\(bundleURL)`.")
171171
} else if
172172
let cwd: AbsolutePath = fileSystem.currentWorkingDirectory,
173173
let originalBundlePath = try? AbsolutePath(validating: bundlePathOrURL, relativeTo: cwd)
@@ -187,7 +187,7 @@ public struct SwiftSDKBundle {
187187
)
188188
}
189189

190-
print("Destination artifact bundle at `\(bundlePathOrURL)` successfully installed.")
190+
print("Swift SDK bundle at `\(bundlePathOrURL)` successfully installed.")
191191
}
192192

193193
/// Unpacks a destination bundle if it has an archive extension in its filename.
@@ -458,7 +458,7 @@ extension [SwiftSDKBundle] {
458458
observabilityScope.emit(
459459
warning:
460460
"""
461-
multiple destinations match target triple `\(selector)` and host triple \(
461+
multiple Swift SDKs match target triple `\(selector)` and host triple \(
462462
hostTriple.tripleString
463463
), selected one at \(
464464
matchedByTriple.path.appending(matchedByTriple.variant.metadata.path)
@@ -478,7 +478,7 @@ extension [SwiftSDKBundle] {
478478
observabilityScope.emit(
479479
warning:
480480
"""
481-
multiple destinations match the query `\(selector)` and host triple \(
481+
multiple Swift SDKs match the query `\(selector)` and host triple \(
482482
hostTriple.tripleString
483483
), selected one at \(matchedByID.path.appending(matchedByID.variant.metadata.path))
484484
"""

0 commit comments

Comments
 (0)