File tree Expand file tree Collapse file tree 4 files changed +32
-31
lines changed
Sources/SwiftSDKGenerator Expand file tree Collapse file tree 4 files changed +32
-31
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,12 @@ struct DownloadableArtifacts: Sendable {
80
80
self . hostLLVM = . init(
81
81
remoteURL: URL (
82
82
string: """
83
- https://github.com/llvm/llvm-project/releases/download/llvmorg- \(
84
- versions. lldVersion
85
- ) /clang+llvm- \(
86
- versions. lldVersion
87
- ) - \( hostTriple. llvmBinaryURLSuffix) .tar.xz
88
- """
83
+ https://github.com/llvm/llvm-project/releases/download/llvmorg- \(
84
+ versions. lldVersion
85
+ ) /clang+llvm- \(
86
+ versions. lldVersion
87
+ ) - \( hostTriple. llvmBinaryURLSuffix) .tar.xz
88
+ """
89
89
) !,
90
90
localPath: paths. artifactsCachePath
91
91
. appending ( " host_llvm_ \( versions. lldVersion) _ \( hostTriple. triple) .tar.xz " ) ,
@@ -104,12 +104,12 @@ struct DownloadableArtifacts: Sendable {
104
104
self . hostLLVM = . init(
105
105
remoteURL: URL (
106
106
string: """
107
- https://github.com/llvm/llvm-project/releases/download/llvmorg- \(
108
- self . versions. lldVersion
109
- ) /llvm-project- \(
110
- self . versions. lldVersion
111
- ) .src.tar.xz
112
- """
107
+ https://github.com/llvm/llvm-project/releases/download/llvmorg- \(
108
+ self . versions. lldVersion
109
+ ) /llvm-project- \(
110
+ self . versions. lldVersion
111
+ ) .src.tar.xz
112
+ """
113
113
) !,
114
114
localPath: self . paths. artifactsCachePath
115
115
. appending ( " llvm_ \( self . versions. lldVersion) .src.tar.xz " ) ,
Original file line number Diff line number Diff line change @@ -221,10 +221,10 @@ extension HTTPClientProtocol {
221
221
}
222
222
223
223
let packagesListURL = """
224
- \( mirrorURL) /dists/ \( ubuntuRelease) \( releaseSuffix) / \( repository) /binary- \(
225
- targetTriple. arch!. debianConventionName
226
- ) / \( packagesFileName ( isXzAvailable: xzPath != nil ) )
227
- """
224
+ \( mirrorURL) /dists/ \( ubuntuRelease) \( releaseSuffix) / \( repository) /binary- \(
225
+ targetTriple. arch!. debianConventionName
226
+ ) / \( packagesFileName ( isXzAvailable: xzPath != nil ) )
227
+ """
228
228
229
229
guard let packages = try await downloadUbuntuPackagesList (
230
230
from: packagesListURL,
Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ public struct VersionsConfiguration: Sendable {
61
61
62
62
return URL (
63
63
string: """
64
- https://download.swift.org/ \(
65
- self . swiftBranch
66
- ) / \(
67
- subdirectory ?? computedSubdirectory
68
- ) /swift- \( self . swiftVersion) / \( self . swiftDistributionName ( platform: platform) ) . \( fileExtension)
69
- """
64
+ https://download.swift.org/ \(
65
+ self . swiftBranch
66
+ ) / \(
67
+ subdirectory ?? computedSubdirectory
68
+ ) /swift- \( self . swiftVersion) / \( self . swiftDistributionName ( platform: platform) ) . \( fileExtension)
69
+ """
70
70
) !
71
71
}
72
72
Original file line number Diff line number Diff line change @@ -39,15 +39,16 @@ struct DownloadArtifactQuery: Query {
39
39
let byteCountFormatter = ByteCountFormatter ( )
40
40
41
41
if let total = progress. totalBytes {
42
- logger. debug ( """
43
- \( artifact. remoteURL. lastPathComponent) \(
44
- byteCountFormatter
45
- . string ( fromByteCount: Int64 ( progress. receivedBytes) )
46
- ) / \(
47
- byteCountFormatter
48
- . string ( fromByteCount: Int64 ( total) )
49
- )
50
- """ )
42
+ logger. debug (
43
+ """
44
+ \( artifact. remoteURL. lastPathComponent) \(
45
+ byteCountFormatter
46
+ . string ( fromByteCount: Int64 ( progress. receivedBytes) )
47
+ ) / \(
48
+ byteCountFormatter
49
+ . string ( fromByteCount: Int64 ( total) )
50
+ )
51
+ """ )
51
52
} else {
52
53
logger. debug (
53
54
" \( artifact. remoteURL. lastPathComponent) \( byteCountFormatter. string ( fromByteCount: Int64 ( progress. receivedBytes) ) ) "
You can’t perform that action at this time.
0 commit comments