Build Information
Failed to build whisperkit, reference v0.18.0 (e2adab), with Swift 6.1 for Wasm on 20 Apr 2026 01:41:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[631/667] Compiling Crypto HPKE-Context.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[632/667] Compiling Crypto HPKE-KeySchedule.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[633/667] Compiling Crypto HPKE-Modes.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[634/667] Compiling Crypto Insecure.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[647/667] Compiling Crypto HMAC.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[648/667] Compiling Crypto MACFunctions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[649/667] Compiling Crypto MessageAuthenticationCode.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[650/667] Compiling Crypto AES.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[651/667] Compiling Crypto ECDSASignature_boring.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[652/667] Compiling Crypto ECDSA_boring.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[653/667] Compiling Crypto EdDSA_boring.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[654/667] Compiling Crypto MLDSA_boring.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[655/667] Compiling Crypto MLDSA_wrapper.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[656/667] Compiling Crypto ECDSA.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[657/667] Compiling Crypto Ed25519.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[658/668] Wrapping AST for Crypto for debugging
[660/676] Compiling Hub resource_bundle_accessor.swift
[661/676] Compiling Hub BinaryDistinct.swift
[662/676] Compiling Hub YYJSONParser.swift
[663/676] Compiling Hub Hub.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:614:122: error: cannot find type 'Progress' in scope
612 |
613 | @discardableResult
614 | func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in })
| `- error: cannot find type 'Progress' in scope
615 | async throws -> URL
616 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:699:141: error: cannot find type 'Progress' in scope
697 |
698 | /// New overloads exposing speed directly in the snapshot progress handler
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:707:126: error: cannot find type 'Progress' in scope
705 |
706 | @discardableResult
707 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
708 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
709 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:712:114: error: cannot find type 'Progress' in scope
710 |
711 | @discardableResult
712 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
713 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
714 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:717:118: error: cannot find type 'Progress' in scope
715 |
716 | @discardableResult
717 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
718 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
719 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:723:126: error: cannot find type 'Progress' in scope
721 | /// Convenience overloads for other snapshot entry points with speed
722 | @discardableResult
723 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
724 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
725 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:728:114: error: cannot find type 'Progress' in scope
726 |
727 | @discardableResult
728 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
729 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
730 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:733:118: error: cannot find type 'Progress' in scope
731 |
732 | @discardableResult
733 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
734 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
735 | }
[664/676] Compiling Hub Downloader.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:52:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | private let sessionConfig: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let session: SessionActor = .init()
54 | private let task: TaskActor = .init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:239:18: error: cannot find type 'URLRequest' in scope
237 | /// `URLError` if the download fails after all retries are exhausted
238 | private func httpGet(
239 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
240 | tempFile: FileHandle,
241 | numRetries: Int
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:399:23: error: cannot find type 'URLSessionDownloadDelegate' in scope
397 | }
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
401 | Task {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:50: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:52: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:512:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
510 |
511 | actor SessionActor {
512 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
513 |
514 | func set(_ urlSession: URLSession?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:514:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
512 | private var urlSession: URLSession?
513 |
514 | func set(_ urlSession: URLSession?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
515 | self.urlSession = urlSession
516 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:518:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
516 | }
517 |
518 | func get() -> URLSession? {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
519 | urlSession
520 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:76:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
74 | let sessionIdentifier = "swift-transformers.hub.downloader"
75 |
76 | var config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 | #if !canImport(FoundationNetworking)
78 | if inBackground {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:79:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'background'
77 | #if !canImport(FoundationNetworking)
78 | if inBackground {
79 | config = URLSessionConfiguration.background(withIdentifier: sessionIdentifier)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'background'
80 | config.isDiscretionary = false
81 | config.sessionSendsLaunchEvents = true
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:110:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 | await downloadResumeState.setExpectedSize(expectedSize)
109 | let resumeSize = Self.incompleteFileSize(at: incompleteDestination)
110 | await session.set(URLSession(configuration: sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
111 | await setUpDownload(
112 | from: url,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:110:99: error: 'nil' requires a contextual type
108 | await downloadResumeState.setExpectedSize(expectedSize)
109 | let resumeSize = Self.incompleteFileSize(at: incompleteDestination)
110 | await session.set(URLSession(configuration: sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'nil' requires a contextual type
111 | await setUpDownload(
112 | from: url,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:143:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'allTasks'
141 |
142 | #if !canImport(FoundationNetworking)
143 | guard let tasks = await session.get()?.allTasks else {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'allTasks'
144 | return
145 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:167:35: error: cannot find 'URLRequest' in scope
165 | Task {
166 | do {
167 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
168 |
169 | // Use headers from argument else create an empty header dictionary
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:282:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
280 | #else
281 | // Start the download and get the byte stream
282 | let (asyncBytes, response) = try await session.bytes(for: newRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
283 |
284 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:361:36: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
359 | try await Task.sleep(nanoseconds: 1_000_000_000)
360 |
361 | await self.session.set(URLSession(configuration: self.sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
362 |
363 | try await httpGet(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:361:113: error: 'nil' requires a contextual type
359 | try await Task.sleep(nanoseconds: 1_000_000_000)
360 |
361 | await self.session.set(URLSession(configuration: self.sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'nil' requires a contextual type
362 |
363 | try await httpGet(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:380:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
378 |
379 | func cancel() async {
380 | await session.get()?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
381 | await task.get()?.cancel()
382 | await broadcaster.broadcast(state: .failed(URLError(.cancelled)))
[665/676] Compiling Hub HubApi.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:50:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
48 | /// `requests` automatically parses Link headers into `response.links`,
49 | /// we implement similar functionality here.
50 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
51 | func getLinkURL(for rel: String) -> String? {
52 | guard let linkHeader = allHeaderFields["Link"] as? String else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:212:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | /// - Returns: A tuple containing the response data and HTTP response
211 | /// - Throws: HubClientError for authentication, network, or HTTP errors
212 | func httpGet(for url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | var request = URLRequest(url: url)
214 | if let hfToken, !hfToken.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:249:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
247 | /// - Returns: The HTTP response containing headers and status code
248 | /// - Throws: HubClientError if the page does not exist or is not accessible
249 | func httpHead(for url: URL) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | var request = URLRequest(url: url)
251 | request.httpMethod = "HEAD"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:614:122: error: cannot find type 'Progress' in scope
612 |
613 | @discardableResult
614 | func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in })
| `- error: cannot find type 'Progress' in scope
615 | async throws -> URL
616 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:699:141: error: cannot find type 'Progress' in scope
697 |
698 | /// New overloads exposing speed directly in the snapshot progress handler
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:707:126: error: cannot find type 'Progress' in scope
705 |
706 | @discardableResult
707 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
708 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
709 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:712:114: error: cannot find type 'Progress' in scope
710 |
711 | @discardableResult
712 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
713 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
714 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:717:118: error: cannot find type 'Progress' in scope
715 |
716 | @discardableResult
717 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
718 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
719 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:723:126: error: cannot find type 'Progress' in scope
721 | /// Convenience overloads for other snapshot entry points with speed
722 | @discardableResult
723 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
724 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
725 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:728:114: error: cannot find type 'Progress' in scope
726 |
727 | @discardableResult
728 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
729 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
730 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:733:118: error: cannot find type 'Progress' in scope
731 |
732 | @discardableResult
733 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
734 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
735 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:796:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 | /// https://github.com/huggingface/huggingface_hub/blob/b698915d6b582c72806ac3e91c43bfd8dde35856/src/huggingface_hub/utils/_xet.py#L29
795 | private func parseXetFileDataFromResponse(
796 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | endpoint: String? = nil
798 | ) -> XetFileData? {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:979:102: error: cannot find type 'Progress' in scope
977 | /// - Returns: URL to the local repository directory
978 | /// - Throws: HubClientError if the download fails
979 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
980 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
981 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:983:106: error: cannot find type 'Progress' in scope
981 | }
982 |
983 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws
| `- error: cannot find type 'Progress' in scope
984 | -> URL
985 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:989:94: error: cannot find type 'Progress' in scope
987 | }
988 |
989 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
990 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
991 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:993:98: error: cannot find type 'Progress' in scope
991 | }
992 |
993 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
994 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
995 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:998:102: error: cannot find type 'Progress' in scope
996 |
997 | /// Overloads exposing speed via (Progress, Double?) where Double is bytes/sec
998 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
999 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
1000 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1002:106: error: cannot find type 'Progress' in scope
1000 | }
1001 |
1002 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1003 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: globs, progressHandler: progressHandler)
1004 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1006:94: error: cannot find type 'Progress' in scope
1004 | }
1005 |
1006 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1007 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
1008 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1010:98: error: cannot find type 'Progress' in scope
1008 | }
1009 |
1010 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1011 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
1012 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1082:49: error: cannot find type 'URLSessionTaskDelegate' in scope
1080 | /// Only allow relative redirects and reject others
1081 | /// Reference: https://github.com/huggingface/huggingface_hub/blob/b2c9a148d465b43ab90fab6e4ebcbbf5a9df27d4/src/huggingface_hub/file_download.py#L258
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
1083 | func urlSession(
1084 | _ session: URLSession,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1087:29: error: cannot find type 'URLRequest' in scope
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
1088 | completionHandler: @escaping (URLRequest?) -> Void
1089 | ) {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1088:39: error: cannot find type 'URLRequest' in scope
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
1089 | ) {
1090 | // Check if it's a redirect status code (300-399)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1084:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
1083 | func urlSession(
1084 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1085:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1083 | func urlSession(
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1086:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1134:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1132 | /// to avoid resource exhaustion when running multiple tests or creating many instances.
1133 | private actor RedirectSessionActor {
1134 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1135 |
1136 | func get() -> URLSession {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1136:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1134 | private var urlSession: URLSession?
1135 |
1136 | func get() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1137 | if let urlSession = urlSession {
1138 | return urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:213:23: error: cannot find 'URLRequest' in scope
211 | /// - Throws: HubClientError for authentication, network, or HTTP errors
212 | func httpGet(for url: URL) async throws -> (Data, HTTPURLResponse) {
213 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
214 | if let hfToken, !hfToken.isEmpty {
215 | request.setValue("Bearer \(hfToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:219:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
217 |
218 | do {
219 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | guard let httpResponse = response as? HTTPURLResponse else {
221 | throw Hub.HubClientError.unexpectedError
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:250:23: error: cannot find 'URLRequest' in scope
248 | /// - Throws: HubClientError if the page does not exist or is not accessible
249 | func httpHead(for url: URL) async throws -> HTTPURLResponse {
250 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
251 | request.httpMethod = "HEAD"
252 | if let hfToken, !hfToken.isEmpty {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:259:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
257 | // Use shared session with redirect handling to avoid creating multiple URLSession instances
258 | let session = await Self.redirectSession.get()
259 | let (_, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
260 | guard let response = response as? HTTPURLResponse else { throw Hub.HubClientError.unexpectedError }
261 |
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:664:24: error: cannot find 'Progress' in scope
662 |
663 | let filenames = try await getFilenames(from: repo, revision: revision, matching: globs)
664 | let progress = Progress(totalUnitCount: Int64(filenames.count))
| `- error: cannot find 'Progress' in scope
665 | for filename in filenames {
666 | let fileProgress = Progress(totalUnitCount: 100, parent: progress, pendingUnitCount: 1)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:666:32: error: cannot find 'Progress' in scope
664 | let progress = Progress(totalUnitCount: Int64(filenames.count))
665 | for filename in filenames {
666 | let fileProgress = Progress(totalUnitCount: 100, parent: progress, pendingUnitCount: 1)
| `- error: cannot find 'Progress' in scope
667 | let downloader = HubFileDownloader(
668 | hub: self,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:701:44: error: cannot infer contextual base in reference to member 'throughputKey'
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
| `- error: cannot infer contextual base in reference to member 'throughputKey'
702 | progressHandler(progress, speed)
703 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:781:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
779 | func getFileMetadata(url: URL) async throws -> FileMetadata {
780 | let response = try await httpHead(for: url)
781 | let location = response.statusCode == 302 ? response.value(forHTTPHeaderField: "Location") : response.url?.absoluteString
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
782 |
783 | return FileMetadata(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:781:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
779 | func getFileMetadata(url: URL) async throws -> FileMetadata {
780 | let response = try await httpHead(for: url)
781 | let location = response.statusCode == 302 ? response.value(forHTTPHeaderField: "Location") : response.url?.absoluteString
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
782 |
783 | return FileMetadata(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:781:111: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
779 | func getFileMetadata(url: URL) async throws -> FileMetadata {
780 | let response = try await httpHead(for: url)
781 | let location = response.statusCode == 302 ? response.value(forHTTPHeaderField: "Location") : response.url?.absoluteString
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
782 |
783 | return FileMetadata(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:784:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
782 |
783 | return FileMetadata(
784 | commitHash: response.value(forHTTPHeaderField: HFHttpHeaders.repoCommit),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
785 | etag: normalizeEtag(
786 | (response.value(forHTTPHeaderField: HFHttpHeaders.linkedEtag)) ?? (response.value(forHTTPHeaderField: HFHttpHeaders.etag))
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:786:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
784 | commitHash: response.value(forHTTPHeaderField: HFHttpHeaders.repoCommit),
785 | etag: normalizeEtag(
786 | (response.value(forHTTPHeaderField: HFHttpHeaders.linkedEtag)) ?? (response.value(forHTTPHeaderField: HFHttpHeaders.etag))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:786:93: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
784 | commitHash: response.value(forHTTPHeaderField: HFHttpHeaders.repoCommit),
785 | etag: normalizeEtag(
786 | (response.value(forHTTPHeaderField: HFHttpHeaders.linkedEtag)) ?? (response.value(forHTTPHeaderField: HFHttpHeaders.etag))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:789:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
789 | size: Int(response.value(forHTTPHeaderField: HFHttpHeaders.linkedSize) ?? response.value(forHTTPHeaderField: HFHttpHeaders.contentLength) ?? ""),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
790 | xetFileData: parseXetFileDataFromResponse(response: response, endpoint: endpoint)
791 | )
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:789:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
789 | size: Int(response.value(forHTTPHeaderField: HFHttpHeaders.linkedSize) ?? response.value(forHTTPHeaderField: HFHttpHeaders.contentLength) ?? ""),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
790 | xetFileData: parseXetFileDataFromResponse(response: response, endpoint: endpoint)
791 | )
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:803:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
801 | }
802 |
803 | guard let fileHash = response.allHeaderFields[HFHttpHeaders.xetHash] as? String else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
804 | return nil
805 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:808:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'getLinkURL'
806 |
807 | guard
808 | var refreshRoute = response.getLinkURL(for: HFHttpHeaders.linkXetAuthKey)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'getLinkURL'
809 | ?? response.allHeaderFields[HFHttpHeaders.xetRefreshRoute] as? String
810 | else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:809:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
807 | guard
808 | var refreshRoute = response.getLinkURL(for: HFHttpHeaders.linkXetAuthKey)
809 | ?? response.allHeaderFields[HFHttpHeaders.xetRefreshRoute] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
810 | else {
811 | return nil
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1091:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1089 | ) {
1090 | // Check if it's a redirect status code (300-399)
1091 | if (300...399).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1092 | // Get the Location header
1093 | if let locationString = response.value(forHTTPHeaderField: "Location"),
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1093:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1091 | if (300...399).contains(response.statusCode) {
1092 | // Get the Location header
1093 | if let locationString = response.value(forHTTPHeaderField: "Location"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1094 | let locationUrl = URL(string: locationString)
1095 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1099:47: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1097 | if locationUrl.host == nil {
1098 | // For relative redirects, construct the new URL using the original request's base
1099 | if let originalUrl = task.originalRequest?.url,
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1100 | var components = URLComponents(url: originalUrl, resolvingAgainstBaseURL: true)
1101 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1108:46: error: cannot find 'URLRequest' in scope
1106 | // Create new request with the resolved URL
1107 | if let resolvedUrl = components.url {
1108 | var newRequest = URLRequest(url: resolvedUrl)
| `- error: cannot find 'URLRequest' in scope
1109 | // Copy headers from original request
1110 | if let headers = task.originalRequest?.allHTTPHeaderFields {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1110:51: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1108 | var newRequest = URLRequest(url: resolvedUrl)
1109 | // Copy headers from original request
1110 | if let headers = task.originalRequest?.allHTTPHeaderFields {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1111 | for (key, value) in headers {
1112 | newRequest.setValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1125:27: error: 'nil' requires a contextual type
1123 |
1124 | // For all other cases (non-redirects or absolute redirects), prevent redirect
1125 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
1126 | }
1127 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1143:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1141 | // Create session once and reuse
1142 | let redirectDelegate = RedirectDelegate()
1143 | let session = URLSession(configuration: .default, delegate: redirectDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1144 | self.urlSession = session
1145 | return session
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1143:50: error: cannot infer contextual base in reference to member 'default'
1141 | // Create session once and reuse
1142 | let redirectDelegate = RedirectDelegate()
1143 | let session = URLSession(configuration: .default, delegate: redirectDelegate, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
1144 | self.urlSession = session
1145 | return session
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1143:102: error: 'nil' requires a contextual type
1141 | // Create session once and reuse
1142 | let redirectDelegate = RedirectDelegate()
1143 | let session = URLSession(configuration: .default, delegate: redirectDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
1144 | self.urlSession = session
1145 | return session
error: emit-module command failed with exit code 1 (use -v to see invocation)
[666/676] Compiling Hub Config.swift
[667/676] Emitting module Hub
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:52:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | private let sessionConfig: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let session: SessionActor = .init()
54 | private let task: TaskActor = .init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:239:18: error: cannot find type 'URLRequest' in scope
237 | /// `URLError` if the download fails after all retries are exhausted
238 | private func httpGet(
239 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
240 | tempFile: FileHandle,
241 | numRetries: Int
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:399:23: error: cannot find type 'URLSessionDownloadDelegate' in scope
397 | }
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
401 | Task {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:50: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:52: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:512:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
510 |
511 | actor SessionActor {
512 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
513 |
514 | func set(_ urlSession: URLSession?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:514:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
512 | private var urlSession: URLSession?
513 |
514 | func set(_ urlSession: URLSession?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
515 | self.urlSession = urlSession
516 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:518:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
516 | }
517 |
518 | func get() -> URLSession? {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
519 | urlSession
520 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:50:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
48 | /// `requests` automatically parses Link headers into `response.links`,
49 | /// we implement similar functionality here.
50 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
51 | func getLinkURL(for rel: String) -> String? {
52 | guard let linkHeader = allHeaderFields["Link"] as? String else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:212:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | /// - Returns: A tuple containing the response data and HTTP response
211 | /// - Throws: HubClientError for authentication, network, or HTTP errors
212 | func httpGet(for url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | var request = URLRequest(url: url)
214 | if let hfToken, !hfToken.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:249:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
247 | /// - Returns: The HTTP response containing headers and status code
248 | /// - Throws: HubClientError if the page does not exist or is not accessible
249 | func httpHead(for url: URL) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | var request = URLRequest(url: url)
251 | request.httpMethod = "HEAD"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:614:122: error: cannot find type 'Progress' in scope
612 |
613 | @discardableResult
614 | func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in })
| `- error: cannot find type 'Progress' in scope
615 | async throws -> URL
616 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:699:141: error: cannot find type 'Progress' in scope
697 |
698 | /// New overloads exposing speed directly in the snapshot progress handler
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:707:126: error: cannot find type 'Progress' in scope
705 |
706 | @discardableResult
707 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
708 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
709 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:712:114: error: cannot find type 'Progress' in scope
710 |
711 | @discardableResult
712 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
713 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
714 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:717:118: error: cannot find type 'Progress' in scope
715 |
716 | @discardableResult
717 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
718 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
719 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:723:126: error: cannot find type 'Progress' in scope
721 | /// Convenience overloads for other snapshot entry points with speed
722 | @discardableResult
723 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
724 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
725 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:728:114: error: cannot find type 'Progress' in scope
726 |
727 | @discardableResult
728 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
729 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
730 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:733:118: error: cannot find type 'Progress' in scope
731 |
732 | @discardableResult
733 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
734 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
735 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:796:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 | /// https://github.com/huggingface/huggingface_hub/blob/b698915d6b582c72806ac3e91c43bfd8dde35856/src/huggingface_hub/utils/_xet.py#L29
795 | private func parseXetFileDataFromResponse(
796 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | endpoint: String? = nil
798 | ) -> XetFileData? {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:979:102: error: cannot find type 'Progress' in scope
977 | /// - Returns: URL to the local repository directory
978 | /// - Throws: HubClientError if the download fails
979 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
980 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
981 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:983:106: error: cannot find type 'Progress' in scope
981 | }
982 |
983 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws
| `- error: cannot find type 'Progress' in scope
984 | -> URL
985 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:989:94: error: cannot find type 'Progress' in scope
987 | }
988 |
989 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
990 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
991 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:993:98: error: cannot find type 'Progress' in scope
991 | }
992 |
993 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
994 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
995 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:998:102: error: cannot find type 'Progress' in scope
996 |
997 | /// Overloads exposing speed via (Progress, Double?) where Double is bytes/sec
998 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
999 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
1000 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1002:106: error: cannot find type 'Progress' in scope
1000 | }
1001 |
1002 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1003 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: globs, progressHandler: progressHandler)
1004 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1006:94: error: cannot find type 'Progress' in scope
1004 | }
1005 |
1006 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1007 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
1008 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1010:98: error: cannot find type 'Progress' in scope
1008 | }
1009 |
1010 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1011 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
1012 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1082:49: error: cannot find type 'URLSessionTaskDelegate' in scope
1080 | /// Only allow relative redirects and reject others
1081 | /// Reference: https://github.com/huggingface/huggingface_hub/blob/b2c9a148d465b43ab90fab6e4ebcbbf5a9df27d4/src/huggingface_hub/file_download.py#L258
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
1083 | func urlSession(
1084 | _ session: URLSession,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1087:29: error: cannot find type 'URLRequest' in scope
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
1088 | completionHandler: @escaping (URLRequest?) -> Void
1089 | ) {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1088:39: error: cannot find type 'URLRequest' in scope
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
1089 | ) {
1090 | // Check if it's a redirect status code (300-399)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1084:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
1083 | func urlSession(
1084 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1085:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1083 | func urlSession(
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1086:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1134:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1132 | /// to avoid resource exhaustion when running multiple tests or creating many instances.
1133 | private actor RedirectSessionActor {
1134 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1135 |
1136 | func get() -> URLSession {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1136:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1134 | private var urlSession: URLSession?
1135 |
1136 | func get() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1137 | if let urlSession = urlSession {
1138 | return urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/19] Write swift-version-24593BA9C3E375BF.txt
[4/47] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[5/47] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[6/49] Compiling CryptoBoringWrapper RandomBytes.swift
[7/49] Compiling InternalCollectionsUtilities Debugging.swift
[8/49] Compiling InternalCollectionsUtilities Descriptions.swift
[9/49] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[10/49] Compiling CryptoBoringWrapper FiniteFieldArithmeticContext.swift
[11/49] Compiling InternalCollectionsUtilities _SortedCollection.swift
[12/49] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[13/49] Compiling CryptoBoringWrapper CryptoKitErrors_boring.swift
[14/49] Compiling CryptoBoringWrapper EllipticCurve.swift
[15/49] Emitting module CryptoBoringWrapper
[16/49] Compiling CryptoBoringWrapper BoringSSLAEAD.swift
[17/49] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[18/49] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[19/49] Compiling InternalCollectionsUtilities Span+Extras.swift
[20/49] Compiling InternalCollectionsUtilities Integer rank.swift
[21/49] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[22/49] Compiling InternalCollectionsUtilities UInt+reversed.swift
[23/49] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[24/49] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[25/49] Emitting module InternalCollectionsUtilities
[26/49] Compiling CryptoBoringWrapper ArbitraryPrecisionInteger.swift
[27/49] Compiling CryptoBoringWrapper EllipticCurvePoint.swift
[28/49] Compiling InternalCollectionsUtilities String+Padding.swift
[29/49] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[30/50] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[31/50] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[34/142] Compiling ArgumentParserToolInfo ToolInfo.swift
[35/142] Emitting module ArgumentParserToolInfo
[37/233] Compiling Crypto Insecure.swift
[38/233] Compiling Crypto Insecure_HashFunctions.swift
[39/233] Compiling Crypto MLKEM_boring.swift
[40/233] Compiling Crypto MLKEM_wrapper.swift
[41/233] Compiling Crypto XWing_boring.swift
[42/233] Compiling Crypto KEM-Errors.swift
[43/233] Compiling Crypto KEM.swift
[44/233] Compiling ArgumentParser HelpCommand.swift
[45/233] Compiling ArgumentParser HelpGenerator.swift
[46/233] Compiling ArgumentParser MessageInfo.swift
[47/233] Compiling ArgumentParser UsageGenerator.swift
[48/233] Compiling ArgumentParser CollectionExtensions.swift
[49/233] Compiling Crypto HPKE-KeySchedule.swift
[50/233] Compiling Crypto HPKE-Modes.swift
[51/240] Compiling ArgumentParser SequenceExtensions.swift
[52/240] Compiling ArgumentParser StringExtensions.swift
[53/240] Compiling ArgumentParser SwiftExtensions.swift
[54/240] Compiling ArgumentParser InputOrigin.swift
[55/240] Compiling ArgumentParser Name.swift
[56/240] Compiling ArgumentParser Parsed.swift
[57/240] Compiling ArgumentParser ParsedValues.swift
[58/240] Compiling ArgumentParser ParserError.swift
[59/240] Compiling ArgumentParser SplitArguments.swift
[60/240] Compiling ArgumentParser ArgumentVisibility.swift
[61/240] Compiling ArgumentParser CompletionKind.swift
[62/240] Compiling ArgumentParser Errors.swift
[63/240] Compiling ArgumentParser Flag.swift
[64/240] Compiling ArgumentParser NameSpecification.swift
[65/240] Compiling ArgumentParser Option.swift
[66/240] Compiling ArgumentParser OptionGroup.swift
[67/240] Compiling ArgumentParser ParentCommand.swift
[68/240] Compiling ArgumentParser AsyncParsableCommand.swift
[69/240] Compiling ArgumentParser CommandConfiguration.swift
[70/240] Compiling ArgumentParser CommandGroup.swift
[71/240] Compiling ArgumentParser EnumerableFlag.swift
[72/240] Compiling ArgumentParser ExpressibleByArgument.swift
[73/240] Compiling ArgumentParser ParsableArguments.swift
[74/240] Compiling ArgumentParser DumpHelpGenerator.swift
[75/240] Compiling ArgumentParser ArgumentDecoder.swift
[76/240] Compiling ArgumentParser ArgumentDefinition.swift
[77/240] Compiling ArgumentParser ArgumentSet.swift
[78/240] Compiling ArgumentParser CommandParser.swift
[79/240] Compiling ArgumentParser InputKey.swift
[80/240] Compiling ArgumentParser Foundation.swift
[81/240] Compiling ArgumentParser Mutex.swift
[82/240] Compiling ArgumentParser Platform.swift
[89/246] Emitting module ArgumentParser
[90/246] Compiling ArgumentParser BashCompletionsGenerator.swift
[91/246] Compiling ArgumentParser CompletionsGenerator.swift
[92/246] Compiling ArgumentParser FishCompletionsGenerator.swift
[93/246] Compiling ArgumentParser ZshCompletionsGenerator.swift
[94/246] Compiling ArgumentParser Argument.swift
[95/246] Compiling ArgumentParser ArgumentDiscussion.swift
[96/246] Compiling ArgumentParser ArgumentHelp.swift
[97/246] Compiling ArgumentParser ParsableCommand.swift
[98/246] Compiling OrderedCollections OrderedSet+Sendable.swift
[99/246] Compiling OrderedCollections OrderedSet+SubSequence.swift
[100/246] Compiling OrderedCollections OrderedSet+Testing.swift
[101/246] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[102/246] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[103/246] Compiling OrderedCollections OrderedSet.swift
[104/246] Compiling OrderedCollections _UnsafeBitset.swift
[129/257] Emitting module OrderedCollections
[131/258] Compiling ArgumentParser Tree.swift
[132/258] Compiling ArgumentParser CodingKeyValidator.swift
[133/258] Compiling ArgumentParser NonsenseFlagsValidator.swift
[134/258] Compiling ArgumentParser ParsableArgumentsValidation.swift
[135/258] Compiling ArgumentParser PositionalArgumentsValidator.swift
[136/258] Compiling ArgumentParser UniqueNamesValidator.swift
[137/258] Emitting module Crypto
[176/271] Compiling Jinja Parser.swift
[177/271] Compiling Jinja PropertyMembers.swift
[178/271] Compiling Jinja Template.swift
[179/271] Compiling Jinja Tests.swift
[180/271] Compiling Jinja Token.swift
[189/271] Compiling Crypto MLDSA.swift
[190/271] Compiling Crypto Signature.swift
[191/271] Compiling Crypto CryptoKitErrors_boring.swift
[192/271] Compiling Crypto Optional+withUnsafeBytes_boring.swift
[193/271] Compiling Crypto RNG_boring.swift
[194/271] Compiling Crypto SafeCompare_boring.swift
[195/271] Compiling Crypto Zeroization_boring.swift
[196/271] Compiling Crypto PrettyBytes.swift
[197/271] Compiling Crypto SafeCompare.swift
[198/271] Compiling Crypto SecureBytes.swift
[199/271] Compiling Crypto Zeroization.swift
[200/271] Compiling Jinja Utilities.swift
[202/272] Emitting module Jinja
[227/272] Compiling Jinja Value.swift
[229/272] Compiling Crypto AESWrap.swift
[230/272] Compiling Crypto AESWrap_boring.swift
[231/272] Compiling Crypto Ed25519_boring.swift
[232/272] Compiling Crypto NISTCurvesKeys_boring.swift
[233/272] Compiling Crypto X25519Keys_boring.swift
[234/272] Compiling Crypto Curve25519.swift
[235/272] Compiling Crypto Ed25519Keys.swift
[236/272] Compiling Crypto NISTCurvesKeys.swift
[237/272] Compiling Crypto X25519Keys.swift
[238/272] Compiling Crypto SymmetricKeys.swift
[239/272] Compiling Crypto HMAC.swift
[240/272] Compiling Crypto MACFunctions.swift
[241/272] Compiling Crypto MessageAuthenticationCode.swift
[242/272] Compiling Crypto AES.swift
[243/272] Compiling Crypto ECDSASignature_boring.swift
[244/272] Compiling Crypto ECDSA_boring.swift
[245/272] Compiling Crypto EdDSA_boring.swift
[246/272] Compiling Crypto MLDSA_boring.swift
[247/272] Compiling Crypto MLDSA_wrapper.swift
[248/272] Compiling Crypto ECDSA.swift
[249/272] Compiling Crypto Ed25519.swift
[251/272] Compiling Jinja Interpreter.swift
[252/272] Compiling Jinja Lexer.swift
[253/272] Compiling Jinja Macro.swift
[259/272] Compiling Jinja AST.swift
[260/272] Compiling Jinja Error.swift
[261/272] Compiling Jinja Filters.swift
[262/272] Compiling Jinja Globals.swift
[264/280] Compiling Hub resource_bundle_accessor.swift
[265/280] Compiling Hub YYJSONParser.swift
[266/280] Compiling Hub HubApi.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:50:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
48 | /// `requests` automatically parses Link headers into `response.links`,
49 | /// we implement similar functionality here.
50 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
51 | func getLinkURL(for rel: String) -> String? {
52 | guard let linkHeader = allHeaderFields["Link"] as? String else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:212:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | /// - Returns: A tuple containing the response data and HTTP response
211 | /// - Throws: HubClientError for authentication, network, or HTTP errors
212 | func httpGet(for url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | var request = URLRequest(url: url)
214 | if let hfToken, !hfToken.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:249:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
247 | /// - Returns: The HTTP response containing headers and status code
248 | /// - Throws: HubClientError if the page does not exist or is not accessible
249 | func httpHead(for url: URL) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | var request = URLRequest(url: url)
251 | request.httpMethod = "HEAD"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:614:122: error: cannot find type 'Progress' in scope
612 |
613 | @discardableResult
614 | func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in })
| `- error: cannot find type 'Progress' in scope
615 | async throws -> URL
616 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:699:141: error: cannot find type 'Progress' in scope
697 |
698 | /// New overloads exposing speed directly in the snapshot progress handler
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:707:126: error: cannot find type 'Progress' in scope
705 |
706 | @discardableResult
707 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
708 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
709 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:712:114: error: cannot find type 'Progress' in scope
710 |
711 | @discardableResult
712 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
713 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
714 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:717:118: error: cannot find type 'Progress' in scope
715 |
716 | @discardableResult
717 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
718 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
719 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:723:126: error: cannot find type 'Progress' in scope
721 | /// Convenience overloads for other snapshot entry points with speed
722 | @discardableResult
723 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
724 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
725 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:728:114: error: cannot find type 'Progress' in scope
726 |
727 | @discardableResult
728 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
729 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
730 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:733:118: error: cannot find type 'Progress' in scope
731 |
732 | @discardableResult
733 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
734 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
735 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:796:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 | /// https://github.com/huggingface/huggingface_hub/blob/b698915d6b582c72806ac3e91c43bfd8dde35856/src/huggingface_hub/utils/_xet.py#L29
795 | private func parseXetFileDataFromResponse(
796 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | endpoint: String? = nil
798 | ) -> XetFileData? {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:979:102: error: cannot find type 'Progress' in scope
977 | /// - Returns: URL to the local repository directory
978 | /// - Throws: HubClientError if the download fails
979 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
980 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
981 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:983:106: error: cannot find type 'Progress' in scope
981 | }
982 |
983 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws
| `- error: cannot find type 'Progress' in scope
984 | -> URL
985 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:989:94: error: cannot find type 'Progress' in scope
987 | }
988 |
989 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
990 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
991 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:993:98: error: cannot find type 'Progress' in scope
991 | }
992 |
993 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
994 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
995 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:998:102: error: cannot find type 'Progress' in scope
996 |
997 | /// Overloads exposing speed via (Progress, Double?) where Double is bytes/sec
998 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
999 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
1000 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1002:106: error: cannot find type 'Progress' in scope
1000 | }
1001 |
1002 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1003 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: globs, progressHandler: progressHandler)
1004 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1006:94: error: cannot find type 'Progress' in scope
1004 | }
1005 |
1006 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1007 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
1008 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1010:98: error: cannot find type 'Progress' in scope
1008 | }
1009 |
1010 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1011 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
1012 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1082:49: error: cannot find type 'URLSessionTaskDelegate' in scope
1080 | /// Only allow relative redirects and reject others
1081 | /// Reference: https://github.com/huggingface/huggingface_hub/blob/b2c9a148d465b43ab90fab6e4ebcbbf5a9df27d4/src/huggingface_hub/file_download.py#L258
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
1083 | func urlSession(
1084 | _ session: URLSession,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1087:29: error: cannot find type 'URLRequest' in scope
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
1088 | completionHandler: @escaping (URLRequest?) -> Void
1089 | ) {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1088:39: error: cannot find type 'URLRequest' in scope
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
1089 | ) {
1090 | // Check if it's a redirect status code (300-399)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1084:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
1083 | func urlSession(
1084 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1085:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1083 | func urlSession(
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1086:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1134:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1132 | /// to avoid resource exhaustion when running multiple tests or creating many instances.
1133 | private actor RedirectSessionActor {
1134 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1135 |
1136 | func get() -> URLSession {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1136:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1134 | private var urlSession: URLSession?
1135 |
1136 | func get() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1137 | if let urlSession = urlSession {
1138 | return urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:213:23: error: cannot find 'URLRequest' in scope
211 | /// - Throws: HubClientError for authentication, network, or HTTP errors
212 | func httpGet(for url: URL) async throws -> (Data, HTTPURLResponse) {
213 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
214 | if let hfToken, !hfToken.isEmpty {
215 | request.setValue("Bearer \(hfToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:219:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
217 |
218 | do {
219 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | guard let httpResponse = response as? HTTPURLResponse else {
221 | throw Hub.HubClientError.unexpectedError
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:250:23: error: cannot find 'URLRequest' in scope
248 | /// - Throws: HubClientError if the page does not exist or is not accessible
249 | func httpHead(for url: URL) async throws -> HTTPURLResponse {
250 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
251 | request.httpMethod = "HEAD"
252 | if let hfToken, !hfToken.isEmpty {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:259:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
257 | // Use shared session with redirect handling to avoid creating multiple URLSession instances
258 | let session = await Self.redirectSession.get()
259 | let (_, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
260 | guard let response = response as? HTTPURLResponse else { throw Hub.HubClientError.unexpectedError }
261 |
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:664:24: error: cannot find 'Progress' in scope
662 |
663 | let filenames = try await getFilenames(from: repo, revision: revision, matching: globs)
664 | let progress = Progress(totalUnitCount: Int64(filenames.count))
| `- error: cannot find 'Progress' in scope
665 | for filename in filenames {
666 | let fileProgress = Progress(totalUnitCount: 100, parent: progress, pendingUnitCount: 1)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:666:32: error: cannot find 'Progress' in scope
664 | let progress = Progress(totalUnitCount: Int64(filenames.count))
665 | for filename in filenames {
666 | let fileProgress = Progress(totalUnitCount: 100, parent: progress, pendingUnitCount: 1)
| `- error: cannot find 'Progress' in scope
667 | let downloader = HubFileDownloader(
668 | hub: self,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:701:44: error: cannot infer contextual base in reference to member 'throughputKey'
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
| `- error: cannot infer contextual base in reference to member 'throughputKey'
702 | progressHandler(progress, speed)
703 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:781:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
779 | func getFileMetadata(url: URL) async throws -> FileMetadata {
780 | let response = try await httpHead(for: url)
781 | let location = response.statusCode == 302 ? response.value(forHTTPHeaderField: "Location") : response.url?.absoluteString
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
782 |
783 | return FileMetadata(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:781:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
779 | func getFileMetadata(url: URL) async throws -> FileMetadata {
780 | let response = try await httpHead(for: url)
781 | let location = response.statusCode == 302 ? response.value(forHTTPHeaderField: "Location") : response.url?.absoluteString
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
782 |
783 | return FileMetadata(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:781:111: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
779 | func getFileMetadata(url: URL) async throws -> FileMetadata {
780 | let response = try await httpHead(for: url)
781 | let location = response.statusCode == 302 ? response.value(forHTTPHeaderField: "Location") : response.url?.absoluteString
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
782 |
783 | return FileMetadata(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:784:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
782 |
783 | return FileMetadata(
784 | commitHash: response.value(forHTTPHeaderField: HFHttpHeaders.repoCommit),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
785 | etag: normalizeEtag(
786 | (response.value(forHTTPHeaderField: HFHttpHeaders.linkedEtag)) ?? (response.value(forHTTPHeaderField: HFHttpHeaders.etag))
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:786:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
784 | commitHash: response.value(forHTTPHeaderField: HFHttpHeaders.repoCommit),
785 | etag: normalizeEtag(
786 | (response.value(forHTTPHeaderField: HFHttpHeaders.linkedEtag)) ?? (response.value(forHTTPHeaderField: HFHttpHeaders.etag))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:786:93: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
784 | commitHash: response.value(forHTTPHeaderField: HFHttpHeaders.repoCommit),
785 | etag: normalizeEtag(
786 | (response.value(forHTTPHeaderField: HFHttpHeaders.linkedEtag)) ?? (response.value(forHTTPHeaderField: HFHttpHeaders.etag))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:789:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
789 | size: Int(response.value(forHTTPHeaderField: HFHttpHeaders.linkedSize) ?? response.value(forHTTPHeaderField: HFHttpHeaders.contentLength) ?? ""),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
790 | xetFileData: parseXetFileDataFromResponse(response: response, endpoint: endpoint)
791 | )
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:789:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
787 | ),
788 | location: location ?? url.absoluteString,
789 | size: Int(response.value(forHTTPHeaderField: HFHttpHeaders.linkedSize) ?? response.value(forHTTPHeaderField: HFHttpHeaders.contentLength) ?? ""),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
790 | xetFileData: parseXetFileDataFromResponse(response: response, endpoint: endpoint)
791 | )
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:803:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
801 | }
802 |
803 | guard let fileHash = response.allHeaderFields[HFHttpHeaders.xetHash] as? String else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
804 | return nil
805 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:808:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'getLinkURL'
806 |
807 | guard
808 | var refreshRoute = response.getLinkURL(for: HFHttpHeaders.linkXetAuthKey)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'getLinkURL'
809 | ?? response.allHeaderFields[HFHttpHeaders.xetRefreshRoute] as? String
810 | else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:809:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
807 | guard
808 | var refreshRoute = response.getLinkURL(for: HFHttpHeaders.linkXetAuthKey)
809 | ?? response.allHeaderFields[HFHttpHeaders.xetRefreshRoute] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
810 | else {
811 | return nil
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1091:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1089 | ) {
1090 | // Check if it's a redirect status code (300-399)
1091 | if (300...399).contains(response.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1092 | // Get the Location header
1093 | if let locationString = response.value(forHTTPHeaderField: "Location"),
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1093:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1091 | if (300...399).contains(response.statusCode) {
1092 | // Get the Location header
1093 | if let locationString = response.value(forHTTPHeaderField: "Location"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1094 | let locationUrl = URL(string: locationString)
1095 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1099:47: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1097 | if locationUrl.host == nil {
1098 | // For relative redirects, construct the new URL using the original request's base
1099 | if let originalUrl = task.originalRequest?.url,
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1100 | var components = URLComponents(url: originalUrl, resolvingAgainstBaseURL: true)
1101 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1108:46: error: cannot find 'URLRequest' in scope
1106 | // Create new request with the resolved URL
1107 | if let resolvedUrl = components.url {
1108 | var newRequest = URLRequest(url: resolvedUrl)
| `- error: cannot find 'URLRequest' in scope
1109 | // Copy headers from original request
1110 | if let headers = task.originalRequest?.allHTTPHeaderFields {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1110:51: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1108 | var newRequest = URLRequest(url: resolvedUrl)
1109 | // Copy headers from original request
1110 | if let headers = task.originalRequest?.allHTTPHeaderFields {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
1111 | for (key, value) in headers {
1112 | newRequest.setValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1125:27: error: 'nil' requires a contextual type
1123 |
1124 | // For all other cases (non-redirects or absolute redirects), prevent redirect
1125 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
1126 | }
1127 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1143:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1141 | // Create session once and reuse
1142 | let redirectDelegate = RedirectDelegate()
1143 | let session = URLSession(configuration: .default, delegate: redirectDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1144 | self.urlSession = session
1145 | return session
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1143:50: error: cannot infer contextual base in reference to member 'default'
1141 | // Create session once and reuse
1142 | let redirectDelegate = RedirectDelegate()
1143 | let session = URLSession(configuration: .default, delegate: redirectDelegate, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
1144 | self.urlSession = session
1145 | return session
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1143:102: error: 'nil' requires a contextual type
1141 | // Create session once and reuse
1142 | let redirectDelegate = RedirectDelegate()
1143 | let session = URLSession(configuration: .default, delegate: redirectDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
1144 | self.urlSession = session
1145 | return session
[267/280] Compiling Hub Hub.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:614:122: error: cannot find type 'Progress' in scope
612 |
613 | @discardableResult
614 | func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in })
| `- error: cannot find type 'Progress' in scope
615 | async throws -> URL
616 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:699:141: error: cannot find type 'Progress' in scope
697 |
698 | /// New overloads exposing speed directly in the snapshot progress handler
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:707:126: error: cannot find type 'Progress' in scope
705 |
706 | @discardableResult
707 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
708 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
709 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:712:114: error: cannot find type 'Progress' in scope
710 |
711 | @discardableResult
712 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
713 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
714 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:717:118: error: cannot find type 'Progress' in scope
715 |
716 | @discardableResult
717 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
718 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
719 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:723:126: error: cannot find type 'Progress' in scope
721 | /// Convenience overloads for other snapshot entry points with speed
722 | @discardableResult
723 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
724 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
725 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:728:114: error: cannot find type 'Progress' in scope
726 |
727 | @discardableResult
728 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
729 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
730 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:733:118: error: cannot find type 'Progress' in scope
731 |
732 | @discardableResult
733 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
734 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
735 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[268/280] Compiling Hub BinaryDistinct.swift
[269/280] Emitting module Hub
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:52:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | private let sessionConfig: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let session: SessionActor = .init()
54 | private let task: TaskActor = .init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:239:18: error: cannot find type 'URLRequest' in scope
237 | /// `URLError` if the download fails after all retries are exhausted
238 | private func httpGet(
239 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
240 | tempFile: FileHandle,
241 | numRetries: Int
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:399:23: error: cannot find type 'URLSessionDownloadDelegate' in scope
397 | }
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
401 | Task {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:50: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:52: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:512:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
510 |
511 | actor SessionActor {
512 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
513 |
514 | func set(_ urlSession: URLSession?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:514:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
512 | private var urlSession: URLSession?
513 |
514 | func set(_ urlSession: URLSession?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
515 | self.urlSession = urlSession
516 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:518:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
516 | }
517 |
518 | func get() -> URLSession? {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
519 | urlSession
520 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:50:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
48 | /// `requests` automatically parses Link headers into `response.links`,
49 | /// we implement similar functionality here.
50 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
51 | func getLinkURL(for rel: String) -> String? {
52 | guard let linkHeader = allHeaderFields["Link"] as? String else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:212:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | /// - Returns: A tuple containing the response data and HTTP response
211 | /// - Throws: HubClientError for authentication, network, or HTTP errors
212 | func httpGet(for url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 | var request = URLRequest(url: url)
214 | if let hfToken, !hfToken.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:249:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
247 | /// - Returns: The HTTP response containing headers and status code
248 | /// - Throws: HubClientError if the page does not exist or is not accessible
249 | func httpHead(for url: URL) async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | var request = URLRequest(url: url)
251 | request.httpMethod = "HEAD"
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:614:122: error: cannot find type 'Progress' in scope
612 |
613 | @discardableResult
614 | func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in })
| `- error: cannot find type 'Progress' in scope
615 | async throws -> URL
616 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:699:141: error: cannot find type 'Progress' in scope
697 |
698 | /// New overloads exposing speed directly in the snapshot progress handler
699 | @discardableResult func snapshot(from repo: Repo, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
700 | try await snapshot(from: repo, revision: revision, matching: globs) { progress in
701 | let speed = progress.userInfo[.throughputKey] as? Double
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:707:126: error: cannot find type 'Progress' in scope
705 |
706 | @discardableResult
707 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
708 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
709 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:712:114: error: cannot find type 'Progress' in scope
710 |
711 | @discardableResult
712 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
713 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
714 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:717:118: error: cannot find type 'Progress' in scope
715 |
716 | @discardableResult
717 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
718 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
719 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:723:126: error: cannot find type 'Progress' in scope
721 | /// Convenience overloads for other snapshot entry points with speed
722 | @discardableResult
723 | func snapshot(from repoId: String, revision: String = "main", matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
724 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: globs, progressHandler: progressHandler)
725 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:728:114: error: cannot find type 'Progress' in scope
726 |
727 | @discardableResult
728 | func snapshot(from repo: Repo, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
729 | try await snapshot(from: repo, revision: revision, matching: [glob], progressHandler: progressHandler)
730 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:733:118: error: cannot find type 'Progress' in scope
731 |
732 | @discardableResult
733 | func snapshot(from repoId: String, revision: String = "main", matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
734 | try await snapshot(from: Repo(id: repoId), revision: revision, matching: [glob], progressHandler: progressHandler)
735 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:796:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 | /// https://github.com/huggingface/huggingface_hub/blob/b698915d6b582c72806ac3e91c43bfd8dde35856/src/huggingface_hub/utils/_xet.py#L29
795 | private func parseXetFileDataFromResponse(
796 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | endpoint: String? = nil
798 | ) -> XetFileData? {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:979:102: error: cannot find type 'Progress' in scope
977 | /// - Returns: URL to the local repository directory
978 | /// - Throws: HubClientError if the download fails
979 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
980 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
981 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:983:106: error: cannot find type 'Progress' in scope
981 | }
982 |
983 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress) -> Void = { _ in }) async throws
| `- error: cannot find type 'Progress' in scope
984 | -> URL
985 | {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:989:94: error: cannot find type 'Progress' in scope
987 | }
988 |
989 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
990 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
991 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:993:98: error: cannot find type 'Progress' in scope
991 | }
992 |
993 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress) -> Void = { _ in }) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
994 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
995 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:998:102: error: cannot find type 'Progress' in scope
996 |
997 | /// Overloads exposing speed via (Progress, Double?) where Double is bytes/sec
998 | static func snapshot(from repo: Repo, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
999 | try await HubApi.shared.snapshot(from: repo, matching: globs, progressHandler: progressHandler)
1000 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1002:106: error: cannot find type 'Progress' in scope
1000 | }
1001 |
1002 | static func snapshot(from repoId: String, matching globs: [String] = [], progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1003 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: globs, progressHandler: progressHandler)
1004 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1006:94: error: cannot find type 'Progress' in scope
1004 | }
1005 |
1006 | static func snapshot(from repo: Repo, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1007 | try await HubApi.shared.snapshot(from: repo, matching: glob, progressHandler: progressHandler)
1008 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1010:98: error: cannot find type 'Progress' in scope
1008 | }
1009 |
1010 | static func snapshot(from repoId: String, matching glob: String, progressHandler: @escaping (Progress, Double?) -> Void) async throws -> URL {
| `- error: cannot find type 'Progress' in scope
1011 | try await HubApi.shared.snapshot(from: Repo(id: repoId), matching: glob, progressHandler: progressHandler)
1012 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1082:49: error: cannot find type 'URLSessionTaskDelegate' in scope
1080 | /// Only allow relative redirects and reject others
1081 | /// Reference: https://github.com/huggingface/huggingface_hub/blob/b2c9a148d465b43ab90fab6e4ebcbbf5a9df27d4/src/huggingface_hub/file_download.py#L258
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
1083 | func urlSession(
1084 | _ session: URLSession,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1087:29: error: cannot find type 'URLRequest' in scope
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
1088 | completionHandler: @escaping (URLRequest?) -> Void
1089 | ) {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1088:39: error: cannot find type 'URLRequest' in scope
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
1089 | ) {
1090 | // Check if it's a redirect status code (300-399)
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1084:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1082 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate, Sendable {
1083 | func urlSession(
1084 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1085:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1083 | func urlSession(
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
1087 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1086:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1084 | _ session: URLSession,
1085 | task: URLSessionTask,
1086 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1087 | newRequest request: URLRequest,
1088 | completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1134:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1132 | /// to avoid resource exhaustion when running multiple tests or creating many instances.
1133 | private actor RedirectSessionActor {
1134 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1135 |
1136 | func get() -> URLSession {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/HubApi.swift:1136:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1134 | private var urlSession: URLSession?
1135 |
1136 | func get() -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1137 | if let urlSession = urlSession {
1138 | return urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
[270/280] Compiling Hub Config.swift
[271/280] Compiling Hub Downloader.swift
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:52:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | private let sessionConfig: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let session: SessionActor = .init()
54 | private let task: TaskActor = .init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:239:18: error: cannot find type 'URLRequest' in scope
237 | /// `URLError` if the download fails after all retries are exhausted
238 | private func httpGet(
239 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
240 | tempFile: FileHandle,
241 | numRetries: Int
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:399:23: error: cannot find type 'URLSessionDownloadDelegate' in scope
397 | }
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
401 | Task {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:400:50: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |
399 | extension Downloader: URLSessionDownloadDelegate {
400 | func urlSession(_: URLSession, downloadTask: URLSessionDownloadTask, didWriteData _: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | Task {
402 | await self.broadcaster.broadcast(state: .downloading(Double(totalBytesWritten) / Double(totalBytesExpectedToWrite), nil))
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:406:52: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
404 | }
405 |
406 | func urlSession(_: URLSession, downloadTask _: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
407 | do {
408 | // If the downloaded file already exists on the filesystem, overwrite it
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:420:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
418 | }
419 |
420 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 | if let error {
422 | Task {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:512:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
510 |
511 | actor SessionActor {
512 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
513 |
514 | func set(_ urlSession: URLSession?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:514:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
512 | private var urlSession: URLSession?
513 |
514 | func set(_ urlSession: URLSession?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
515 | self.urlSession = urlSession
516 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:518:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
516 | }
517 |
518 | func get() -> URLSession? {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
519 | urlSession
520 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:76:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
74 | let sessionIdentifier = "swift-transformers.hub.downloader"
75 |
76 | var config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 | #if !canImport(FoundationNetworking)
78 | if inBackground {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:79:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'background'
77 | #if !canImport(FoundationNetworking)
78 | if inBackground {
79 | config = URLSessionConfiguration.background(withIdentifier: sessionIdentifier)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'background'
80 | config.isDiscretionary = false
81 | config.sessionSendsLaunchEvents = true
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:110:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 | await downloadResumeState.setExpectedSize(expectedSize)
109 | let resumeSize = Self.incompleteFileSize(at: incompleteDestination)
110 | await session.set(URLSession(configuration: sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
111 | await setUpDownload(
112 | from: url,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:110:99: error: 'nil' requires a contextual type
108 | await downloadResumeState.setExpectedSize(expectedSize)
109 | let resumeSize = Self.incompleteFileSize(at: incompleteDestination)
110 | await session.set(URLSession(configuration: sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'nil' requires a contextual type
111 | await setUpDownload(
112 | from: url,
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:143:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'allTasks'
141 |
142 | #if !canImport(FoundationNetworking)
143 | guard let tasks = await session.get()?.allTasks else {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'allTasks'
144 | return
145 | }
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:167:35: error: cannot find 'URLRequest' in scope
165 | Task {
166 | do {
167 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
168 |
169 | // Use headers from argument else create an empty header dictionary
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:282:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
280 | #else
281 | // Start the download and get the byte stream
282 | let (asyncBytes, response) = try await session.bytes(for: newRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
283 |
284 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:361:36: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
359 | try await Task.sleep(nanoseconds: 1_000_000_000)
360 |
361 | await self.session.set(URLSession(configuration: self.sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
362 |
363 | try await httpGet(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:361:113: error: 'nil' requires a contextual type
359 | try await Task.sleep(nanoseconds: 1_000_000_000)
360 |
361 | await self.session.set(URLSession(configuration: self.sessionConfig, delegate: self, delegateQueue: nil))
| `- error: 'nil' requires a contextual type
362 |
363 | try await httpGet(
/host/spi-builder-workspace/.build/checkouts/swift-transformers/Sources/Hub/Downloader.swift:380:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
378 |
379 | func cancel() async {
380 | await session.get()?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
381 | await task.get()?.cancel()
382 | await broadcaster.broadcast(state: .failed(URLError(.cancelled)))
BUILD FAILURE 6.1 wasm