The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CoreMLLLM, reference main (6273b0), with Swift 6.3 for Wasm on 21 Nov 2026 13:36:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

1200 |     ) {
1201 |         guard metadata?.matches(response) != false else {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1195:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1193 |
1194 |     func urlSession(
1195 |         _: URLSession,
     |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1196 |         task _: URLSessionTask,
1197 |         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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1196:17: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1194 |     func urlSession(
1195 |         _: URLSession,
1196 |         task _: URLSessionTask,
     |                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1197 |         willPerformHTTPRedirection response: HTTPURLResponse,
1198 |         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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1197:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1195 |         _: URLSession,
1196 |         task _: URLSessionTask,
1197 |         willPerformHTTPRedirection response: HTTPURLResponse,
     |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1198 |         newRequest request: URLRequest,
1199 |         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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1219:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1217 |         dataTask _: URLSessionDataTask,
1218 |         didReceive response: URLResponse,
1219 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
     |                                                  `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1220 |     ) {
1221 |         self.response = response
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1216:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1214 |
1215 |     func urlSession(
1216 |         _: URLSession,
     |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1217 |         dataTask _: URLSessionDataTask,
1218 |         didReceive response: URLResponse,
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1217:21: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1215 |     func urlSession(
1216 |         _: URLSession,
1217 |         dataTask _: URLSessionDataTask,
     |                     `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1218 |         didReceive response: URLResponse,
1219 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1218:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1216 |         _: URLSession,
1217 |         dataTask _: URLSessionDataTask,
1218 |         didReceive response: URLResponse,
     |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1219 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
1220 |     ) {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1279:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1277 |     }
1278 |
1279 |     func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
     |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1280 |         guard isSuccessfulResponse else {
1281 |             errorData.append(data)
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1279:46: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1277 |     }
1278 |
1279 |     func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
     |                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1280 |         guard isSuccessfulResponse else {
1281 |             errorData.append(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1299:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1297 |     }
1298 |
1299 |     func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: Error?) {
     |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1300 |         guard !hasResumed else { return }
1301 |         hasResumed = true
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1299:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1297 |     }
1298 |
1299 |     func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: Error?) {
     |                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1300 |         guard !hasResumed else { return }
1301 |         hasResumed = true
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1343:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
1341 | }
1342 |
1343 | extension URLSession {
     | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
1344 |     /// Downloads `request`, streaming the body into `targetURL` as bytes arrive.
1345 |     ///
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1391:27: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1389 |     private final class DownloadTaskBox: @unchecked Sendable {
1390 |         private let lock = NSLock()
1391 |         private var task: URLSessionDownloadTask?
     |                           `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1392 |         private var isCancelled = false
1393 |
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1394:28: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1392 |         private var isCancelled = false
1393 |
1394 |         func start(_ task: URLSessionDownloadTask) {
     |                            `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1395 |             lock.lock()
1396 |             self.task = task
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1415:5: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
1413 |     }
1414 |
1415 |     extension URLSession {
     |     `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
1416 |         func hfAsyncDownload(
1417 |             for request: URLRequest,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1482:23: error: cannot find type 'Progress' in scope
1480 |
1481 |         init(
1482 |             progress: Progress,
     |                       `- error: cannot find type 'Progress' in scope
1483 |             resumeOffset: Int64 = 0,
1484 |             appliesResumeOffsetToAllResponses: Bool = false,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1472:61: error: cannot find type 'URLSessionDownloadDelegate' in scope
1470 |     }
1471 |
1472 |     private final class DownloadProgressDelegate: NSObject, URLSessionDownloadDelegate, @unchecked Sendable {
     |                                                             `- error: cannot find type 'URLSessionDownloadDelegate' in scope
1473 |         // Mutable state is confined to the session's serial delegate queue.
1474 |         private let progress: Progress
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1474:31: error: cannot find type 'Progress' in scope
1472 |     private final class DownloadProgressDelegate: NSObject, URLSessionDownloadDelegate, @unchecked Sendable {
1473 |         // Mutable state is confined to the session's serial delegate queue.
1474 |         private let progress: Progress
     |                               `- error: cannot find type 'Progress' in scope
1475 |         private let appliesResumeOffsetToAllResponses: Bool
1476 |         private let continuation: CheckedContinuation<(URL, URLResponse), Error>?
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1476:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1474 |         private let progress: Progress
1475 |         private let appliesResumeOffsetToAllResponses: Bool
1476 |         private let continuation: CheckedContinuation<(URL, URLResponse), Error>?
     |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1477 |         fileprivate weak var session: URLSession?
1478 |         private var currentResumeOffset: Int64
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1477:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1475 |         private let appliesResumeOffsetToAllResponses: Bool
1476 |         private let continuation: CheckedContinuation<(URL, URLResponse), Error>?
1477 |         fileprivate weak var session: URLSession?
     |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1478 |         private var currentResumeOffset: Int64
1479 |         private var hasResumed = false
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1485:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1483 |             resumeOffset: Int64 = 0,
1484 |             appliesResumeOffsetToAllResponses: Bool = false,
1485 |             continuation: CheckedContinuation<(URL, URLResponse), Error>? = nil
     |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1486 |         ) {
1487 |             self.progress = progress
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1494:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1492 |
1493 |         func urlSession(
1494 |             _: URLSession,
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1495 |             downloadTask: URLSessionDownloadTask,
1496 |             didWriteData _: Int64,
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1495:27: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1493 |         func urlSession(
1494 |             _: URLSession,
1495 |             downloadTask: URLSessionDownloadTask,
     |                           `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1496 |             didWriteData _: Int64,
1497 |             totalBytesWritten: Int64,
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1515:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1513 |
1514 |         func urlSession(
1515 |             _: URLSession,
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1516 |             downloadTask _: URLSessionDownloadTask,
1517 |             didResumeAtOffset fileOffset: Int64,
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1516:29: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1514 |         func urlSession(
1515 |             _: URLSession,
1516 |             downloadTask _: URLSessionDownloadTask,
     |                             `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1517 |             didResumeAtOffset fileOffset: Int64,
1518 |             expectedTotalBytes: Int64
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1529:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1527 |
1528 |         func urlSession(
1529 |             _: URLSession,
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1530 |             downloadTask: URLSessionDownloadTask,
1531 |             didFinishDownloadingTo location: URL
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1530:27: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1528 |         func urlSession(
1529 |             _: URLSession,
1530 |             downloadTask: URLSessionDownloadTask,
     |                           `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1531 |             didFinishDownloadingTo location: URL
1532 |         ) {
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1571:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1569 |         }
1570 |
1571 |         func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: Error?) {
     |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1572 |             guard let continuation, !hasResumed else { return }
1573 |             hasResumed = true
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1571:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1569 |         }
1570 |
1571 |         func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: Error?) {
     |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1572 |             guard let continuation, !hasResumed else { return }
1573 |             hasResumed = true
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1762:49: error: cannot find type 'Progress' in scope
1760 |         localFilesOnly: Bool = false,
1761 |         maxConcurrentDownloads: Int = 8,
1762 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)? = nil
     |                                                 `- error: cannot find type 'Progress' in scope
1763 |     ) async throws -> URL {
1764 |         try await downloadSnapshot(
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1811:49: error: cannot find type 'Progress' in scope
1809 |         localFilesOnly: Bool = false,
1810 |         maxConcurrentDownloads: Int = 8,
1811 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)? = nil,
     |                                                 `- error: cannot find type 'Progress' in scope
1812 |         fileProgressHandler: (@MainActor @Sendable ([SnapshotFileProgress]) -> Void)?
1813 |     ) async throws -> URL {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1853:49: error: cannot find type 'Progress' in scope
1851 |         localFilesOnly: Bool = false,
1852 |         maxConcurrentDownloads: Int = 8,
1853 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)? = nil
     |                                                 `- error: cannot find type 'Progress' in scope
1854 |     ) async throws -> URL {
1855 |         try await downloadSnapshot(
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1902:49: error: cannot find type 'Progress' in scope
1900 |         localFilesOnly: Bool = false,
1901 |         maxConcurrentDownloads: Int = 8,
1902 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)? = nil,
     |                                                 `- error: cannot find type 'Progress' in scope
1903 |         fileProgressHandler: (@MainActor @Sendable ([SnapshotFileProgress]) -> Void)?
1904 |     ) async throws -> URL {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1928:49: error: cannot find type 'Progress' in scope
1926 |         localFilesOnly: Bool,
1927 |         maxConcurrentDownloads: Int,
1928 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)?,
     |                                                 `- error: cannot find type 'Progress' in scope
1929 |         fileProgressHandler: (@MainActor @Sendable ([SnapshotFileProgress]) -> Void)?
1930 |     ) async throws -> URL {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2156:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2154 |     /// - Parameter response: The response to parse.
2155 |     /// - Returns: `nil` when the response does not include a valid Xet file ID.
2156 |     init?(response: URLResponse) {
     |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2157 |         guard let httpResponse = response as? HTTPURLResponse else {
2158 |             return nil
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2207:19: error: cannot find type 'Progress' in scope
2205 |
2206 |     func makeSnapshotProgressSamplingTask(
2207 |         progress: Progress,
     |                   `- error: cannot find type 'Progress' in scope
2208 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)?,
2209 |         fileRows: [(path: String, size: Int64?, progress: SnapshotProgressBox)],
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2208:49: error: cannot find type 'Progress' in scope
2206 |     func makeSnapshotProgressSamplingTask(
2207 |         progress: Progress,
2208 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)?,
     |                                                 `- error: cannot find type 'Progress' in scope
2209 |         fileRows: [(path: String, size: Int64?, progress: SnapshotProgressBox)],
2210 |         fileProgressHandler: (@MainActor @Sendable ([SnapshotFileProgress]) -> Void)?
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2381:19: error: cannot find type 'Progress' in scope
2379 |         _ source: URL,
2380 |         destination: URL?,
2381 |         progress: Progress? = nil
     |                   `- error: cannot find type 'Progress' in scope
2382 |     ) throws -> URL {
2383 |         // Publish completion only after a requested destination copy succeeds.
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2587:19: error: cannot find type 'Progress' in scope
2585 |         revision: String,
2586 |         destination: URL,
2587 |         progress: Progress?,
     |                   `- error: cannot find type 'Progress' in scope
2588 |         transport: FileDownloadTransport
2589 |     ) async throws -> URL? {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2702:49: error: cannot find type 'URLSessionTaskDelegate' in scope
2700 |
2701 | /// Follows same-host redirects while blocking cross-host redirects.
2702 | final class SameHostRedirectDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
     |                                                 `- error: cannot find type 'URLSessionTaskDelegate' in scope
2703 |     static let shared = SameHostRedirectDelegate()
2704 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2713:29: error: cannot find type 'URLRequest' in scope
2711 |         task: URLSessionTask,
2712 |         willPerformHTTPRedirection _: HTTPURLResponse,
2713 |         newRequest request: URLRequest,
     |                             `- error: cannot find type 'URLRequest' in scope
2714 |         completionHandler: @escaping (URLRequest?) -> Void
2715 |     ) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2714:39: error: cannot find type 'URLRequest' in scope
2712 |         willPerformHTTPRedirection _: HTTPURLResponse,
2713 |         newRequest request: URLRequest,
2714 |         completionHandler: @escaping (URLRequest?) -> Void
     |                                       `- error: cannot find type 'URLRequest' in scope
2715 |     ) {
2716 |         guard let originalHost = task.originalRequest?.url?.host,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2710:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2708 |
2709 |     func urlSession(
2710 |         _: URLSession,
     |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2711 |         task: URLSessionTask,
2712 |         willPerformHTTPRedirection _: 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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2711:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2709 |     func urlSession(
2710 |         _: URLSession,
2711 |         task: URLSessionTask,
     |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2712 |         willPerformHTTPRedirection _: HTTPURLResponse,
2713 |         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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2712:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2710 |         _: URLSession,
2711 |         task: URLSessionTask,
2712 |         willPerformHTTPRedirection _: HTTPURLResponse,
     |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2713 |         newRequest request: URLRequest,
2714 |         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-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:319:23: error: cannot find type 'URLRequest' in scope
317 |         params: [String: Value]? = nil,
318 |         headers: [String: String]? = nil
319 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
320 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
321 |         urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:331:23: error: cannot find type 'URLRequest' in scope
329 |         params: [String: Value]? = nil,
330 |         headers: [String: String]? = nil
331 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
332 |         let urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: true)
333 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:240:59: error: cannot infer contextual base in reference to member 'post'
 238 |             .appending(path: "upload")
 239 |             .appending(component: branch)
 240 |         var request = try await httpClient.createRequest(.post, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'post'
 241 |
 242 |         let boundary = "----hf-\(UUID().uuidString)"
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:265:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 263 |             defer { try? FileManager.default.removeItem(at: tempFile) }
 264 |
 265 |             let (data, response) = try await session.upload(for: request, fromFile: tempFile)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 266 |             _ = try httpClient.validateResponse(response, data: data)
 267 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:282:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 280 |                 .buildInMemory()
 281 |
 282 |             let (data, response) = try await session.upload(for: request, from: body)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 283 |             _ = try httpClient.validateResponse(response, data: data)
 284 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:379:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 377 |     /// - Returns: `nil` when the response is not an HTTP response.
 378 |     init?(response: URLResponse) {
 379 |         guard let httpResponse = response as? HTTPURLResponse else {
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 380 |             return nil
 381 |         }
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:383:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 381 |         }
 382 |
 383 |         let linkedEtag = httpResponse.value(forHTTPHeaderField: "X-Linked-Etag")
     |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 384 |         let etag = linkedEtag ?? httpResponse.value(forHTTPHeaderField: "ETag")
 385 |         let commitHash = httpResponse.value(forHTTPHeaderField: "X-Repo-Commit")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:384:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 382 |
 383 |         let linkedEtag = httpResponse.value(forHTTPHeaderField: "X-Linked-Etag")
 384 |         let etag = linkedEtag ?? httpResponse.value(forHTTPHeaderField: "ETag")
     |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 385 |         let commitHash = httpResponse.value(forHTTPHeaderField: "X-Repo-Commit")
 386 |         self.commitHash = commitHash
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:385:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 383 |         let linkedEtag = httpResponse.value(forHTTPHeaderField: "X-Linked-Etag")
 384 |         let etag = linkedEtag ?? httpResponse.value(forHTTPHeaderField: "ETag")
 385 |         let commitHash = httpResponse.value(forHTTPHeaderField: "X-Repo-Commit")
     |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 386 |         self.commitHash = commitHash
 387 |         self.etag = etag
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:390:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 388 |         normalizedEtag = etag.map(Self.normalizeEtag)
 389 |         let sizeHeader =
 390 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
     |                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 391 |             ?? ((200 ..< 300).contains(httpResponse.statusCode)
 392 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length") : nil)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:391:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 389 |         let sizeHeader =
 390 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
 391 |             ?? ((200 ..< 300).contains(httpResponse.statusCode)
     |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 392 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length") : nil)
 393 |         size = sizeHeader.flatMap(Int64.init).flatMap { $0 >= 0 ? $0 : nil }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:392:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 390 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
 391 |             ?? ((200 ..< 300).contains(httpResponse.statusCode)
 392 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length") : nil)
     |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 393 |         size = sizeHeader.flatMap(Int64.init).flatMap { $0 >= 0 ? $0 : nil }
 394 |         url = response.url
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:394:24: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
 392 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length") : nil)
 393 |         size = sizeHeader.flatMap(Int64.init).flatMap { $0 >= 0 ? $0 : nil }
 394 |         url = response.url
     |                        `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
 395 |         usesLinkedEtag = linkedEtag != nil
 396 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:405:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 403 |         }
 404 |         let sameOrigin =
 405 |             url?.scheme == response.url?.scheme
     |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 406 |             && url?.host == response.url?.host && url?.port == response.url?.port
 407 |         if let normalizedEtag, let otherEtag = other.normalizedEtag,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:406:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 404 |         let sameOrigin =
 405 |             url?.scheme == response.url?.scheme
 406 |             && url?.host == response.url?.host && url?.port == response.url?.port
     |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 407 |         if let normalizedEtag, let otherEtag = other.normalizedEtag,
 408 |             other.usesLinkedEtag || (sameOrigin && !usesLinkedEtag)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:406:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 404 |         let sameOrigin =
 405 |             url?.scheme == response.url?.scheme
 406 |             && url?.host == response.url?.host && url?.port == response.url?.port
     |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 407 |         if let normalizedEtag, let otherEtag = other.normalizedEtag,
 408 |             other.usesLinkedEtag || (sameOrigin && !usesLinkedEtag)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:423:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 421 |         }
 422 |         return !usesLinkedEtag && etag?.hasPrefix("W/") == false
 423 |             && url?.scheme == response.url?.scheme
     |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 424 |             && url?.host == response.url?.host && url?.port == response.url?.port
 425 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:424:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 422 |         return !usesLinkedEtag && etag?.hasPrefix("W/") == false
 423 |             && url?.scheme == response.url?.scheme
 424 |             && url?.host == response.url?.host && url?.port == response.url?.port
     |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 425 |     }
 426 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:424:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 422 |         return !usesLinkedEtag && etag?.hasPrefix("W/") == false
 423 |             && url?.scheme == response.url?.scheme
 424 |             && url?.host == response.url?.host && url?.port == response.url?.port
     |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 425 |     }
 426 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:525:59: error: cannot infer contextual base in reference to member 'get'
 523 |
 524 |         // GET request for the actual file bytes
 525 |         var request = try await httpClient.createRequest(.get, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'get'
 526 |         request.cachePolicy = cachePolicy
 527 |         let (data, response) = try await session.data(for: request)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:527:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 525 |         var request = try await httpClient.createRequest(.get, url: url)
 526 |         request.cachePolicy = cachePolicy
 527 |         let (data, response) = try await session.data(for: request)
     |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 528 |         _ = try httpClient.validateResponse(response, data: data)
 529 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:663:63: error: cannot infer contextual base in reference to member 'get'
 661 |                     .appending(path: repoPath)
 662 |             } ?? url
 663 |         var baseRequest = try await httpClient.createRequest(.get, url: downloadURL)
     |                                                               `- error: cannot infer contextual base in reference to member 'get'
 664 |         baseRequest.cachePolicy = cachePolicy
 665 |         baseRequest.setValue("identity", forHTTPHeaderField: "Accept-Encoding")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:882:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 880 |             .appendingPathComponent("hf-download-\(UUID().uuidString).tmp")
 881 |         defer { try? FileManager.default.removeItem(at: tempURL) }
 882 |         let response: URLResponse
     |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 883 |         let errorData: Data?
 884 |         do {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:885:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'hfStreamingDownload'
 883 |         let errorData: Data?
 884 |         do {
 885 |             (response, errorData) = try await session.hfStreamingDownload(
     |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'hfStreamingDownload'
 886 |                 for: baseRequest,
 887 |                 progress: progress,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:912:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 910 |             throw error
 911 |         }
 912 |         guard let httpResponse = response as? HTTPURLResponse else {
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 913 |             throw HTTPClientError.unexpectedError("Invalid response from server: \(response)")
 914 |         }
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:915:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 913 |             throw HTTPClientError.unexpectedError("Invalid response from server: \(response)")
 914 |         }
 915 |         if !(200 ..< 300).contains(httpResponse.statusCode) {
     |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 916 |             _ = try httpClient.validateResponse(response, data: errorData)
 917 |             throw HTTPClientError.responseError(response: httpResponse, detail: "Invalid response")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1005:29: error: cannot infer contextual base in reference to member 'lfs'
1003 |                 cachePolicy: cachePolicy,
1004 |                 progress: progress,
1005 |                 transport: .lfs,
     |                             `- error: cannot infer contextual base in reference to member 'lfs'
1006 |                 localFilesOnly: localFilesOnly
1007 |             )
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1040:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'hfAsyncDownload'
1038 |             progress: Progress? = nil
1039 |         ) async throws -> URL {
1040 |             let (tempURL, response) = try await session.hfAsyncDownload(
     |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'hfAsyncDownload'
1041 |                 resumeFrom: resumeData,
1042 |                 progress: progress
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1083:23: error: 'nil' requires a contextual type
1081 |             endpoint: endpoint,
1082 |             cachePolicy: cachePolicy,
1083 |             progress: nil,
     |                       `- error: 'nil' requires a contextual type
1084 |             transport: transport,
1085 |             localFilesOnly: localFilesOnly
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1134:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1132 |         lock.unlock()
1133 |         if cancelled {
1134 |             task.cancel()
     |                  `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1135 |         } else {
1136 |             task.resume()
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1136:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
1134 |             task.cancel()
1135 |         } else {
1136 |             task.resume()
     |                  `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
1137 |         }
1138 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1145:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1143 |         let task = task
1144 |         lock.unlock()
1145 |         task?.cancel()
     |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1146 |     }
1147 | }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1203:31: error: 'nil' requires a contextual type
1201 |         guard metadata?.matches(response) != false else {
1202 |             writeError = StreamingDownloadError.identityMismatch
1203 |             completionHandler(nil)
     |                               `- error: 'nil' requires a contextual type
1204 |             return
1205 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1207:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1205 |         }
1206 |         var request = request
1207 |         if response.url?.scheme != request.url?.scheme
     |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1208 |             || response.url?.host != request.url?.host || response.url?.port != request.url?.port
1209 |         {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1208:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1206 |         var request = request
1207 |         if response.url?.scheme != request.url?.scheme
1208 |             || response.url?.host != request.url?.host || response.url?.port != request.url?.port
     |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1209 |         {
1210 |             request.setValue(nil, forHTTPHeaderField: "If-Range")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1208:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1206 |         var request = request
1207 |         if response.url?.scheme != request.url?.scheme
1208 |             || response.url?.host != request.url?.host || response.url?.port != request.url?.port
     |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1209 |         {
1210 |             request.setValue(nil, forHTTPHeaderField: "If-Range")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1210:30: error: 'nil' requires a contextual type
1208 |             || response.url?.host != request.url?.host || response.url?.port != request.url?.port
1209 |         {
1210 |             request.setValue(nil, forHTTPHeaderField: "If-Range")
     |                              `- error: 'nil' requires a contextual type
1211 |         }
1212 |         completionHandler(request)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1222:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1220 |     ) {
1221 |         self.response = response
1222 |         guard let httpResponse = response as? HTTPURLResponse,
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1223 |             (200 ..< 300).contains(httpResponse.statusCode)
1224 |         else {
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1223:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1221 |         self.response = response
1222 |         guard let httpResponse = response as? HTTPURLResponse,
1223 |             (200 ..< 300).contains(httpResponse.statusCode)
     |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1224 |         else {
1225 |             completionHandler(.allow)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1225:32: error: cannot infer contextual base in reference to member 'allow'
1223 |             (200 ..< 300).contains(httpResponse.statusCode)
1224 |         else {
1225 |             completionHandler(.allow)
     |                                `- error: cannot infer contextual base in reference to member 'allow'
1226 |             return
1227 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1233:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1231 |                 throw StreamingDownloadError.identityMismatch
1232 |             }
1233 |             if httpResponse.statusCode == 206 {
     |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1234 |                 if resumeOffset > 0, metadata?.allowsResume(from: httpResponse) == false {
1235 |                     throw StreamingDownloadError.identityMismatch
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1237:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1235 |                     throw StreamingDownloadError.identityMismatch
1236 |                 }
1237 |                 guard let range = DownloadContentRange(httpResponse.value(forHTTPHeaderField: "Content-Range")),
     |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1238 |                     range.start == resumeOffset
1239 |                 else { throw StreamingDownloadError.invalidRange }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1246:45: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1244 |                 expectedBodySize = range.end - range.start + 1
1245 |             } else {
1246 |                 expectedBodySize = response.expectedContentLength >= 0 ? response.expectedContentLength : nil
     |                                             `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1247 |                 if expectedSize == nil { expectedSize = expectedBodySize }
1248 |             }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1246:83: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1244 |                 expectedBodySize = range.end - range.start + 1
1245 |             } else {
1246 |                 expectedBodySize = response.expectedContentLength >= 0 ? response.expectedContentLength : nil
     |                                                                                   `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1247 |                 if expectedSize == nil { expectedSize = expectedBodySize }
1248 |             }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1253:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1251 |                 withIntermediateDirectories: true
1252 |             )
1253 |             let appending = resumeOffset > 0 && httpResponse.statusCode == 206
     |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1254 |             if appending {
1255 |                 if !FileManager.default.fileExists(atPath: targetURL.path) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1273:32: error: cannot infer contextual base in reference to member 'cancel'
1271 |         } catch {
1272 |             writeError = error
1273 |             completionHandler(.cancel)
     |                                `- error: cannot infer contextual base in reference to member 'cancel'
1274 |             return
1275 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1276:28: error: cannot infer contextual base in reference to member 'allow'
1274 |             return
1275 |         }
1276 |         completionHandler(.allow)
     |                            `- error: cannot infer contextual base in reference to member 'allow'
1277 |     }
1278 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1289:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1287 |         } catch {
1288 |             writeError = error
1289 |             dataTask.cancel()
     |                      `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1290 |             return
1291 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1293:65: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1291 |         }
1292 |         bytesWritten += Int64(data.count)
1293 |         if progress.totalUnitCount <= 0, let response, response.expectedContentLength > 0 {
     |                                                                 `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1294 |             progress.totalUnitCount = response.expectedContentLength + effectiveOffset
1295 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:48: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1292 |         bytesWritten += Int64(data.count)
1293 |         if progress.totalUnitCount <= 0, let response, response.expectedContentLength > 0 {
1294 |             progress.totalUnitCount = response.expectedContentLength + effectiveOffset
     |                                                `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1295 |         }
1296 |         progress.completedUnitCount = effectiveOffset + bytesWritten
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1304:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1302 |         try? fileHandle?.close()
1303 |         fileHandle = nil
1304 |         session?.invalidateAndCancel()
     |                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1305 |         if let writeError {
1306 |             if !keepPartialFile {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1400:22: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
1398 |             lock.unlock()
1399 |             if isCancelled {
1400 |                 task.cancel()
     |                      `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
1401 |             } else {
1402 |                 task.resume()
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1402:22: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
1400 |                 task.cancel()
1401 |             } else {
1402 |                 task.resume()
     |                      `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
1403 |             }
1404 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1411:19: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
1409 |             let task = task
1410 |             lock.unlock()
1411 |             task?.cancel()
     |                   `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
1412 |         }
1413 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1501:45: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
1499 |         ) {
1500 |             guard !hasResumed,
1501 |                 let response = downloadTask.response as? HTTPURLResponse,
     |                                             `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
1502 |                 (200 ..< 300).contains(response.statusCode)
1503 |             else { return }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1536:47: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
1534 |             hasResumed = true
1535 |
1536 |             guard let response = downloadTask.response else {
     |                                               `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
1537 |                 session?.invalidateAndCancel()
1538 |                 continuation.resume(throwing: URLError(.badServerResponse))
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1537:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1535 |
1536 |             guard let response = downloadTask.response else {
1537 |                 session?.invalidateAndCancel()
     |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1538 |                 continuation.resume(throwing: URLError(.badServerResponse))
1539 |                 return
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1562:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
1560 |                     progress.completedUnitCount = progress.totalUnitCount
1561 |                 }
1562 |                 session?.finishTasksAndInvalidate()
     |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
1563 |                 continuation.resume(returning: (persistedURL, response))
1564 |             } catch {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1566:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1564 |             } catch {
1565 |                 try? FileManager.default.removeItem(at: persistedURL)
1566 |                 session?.invalidateAndCancel()
     |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1567 |                 continuation.resume(throwing: error)
1568 |             }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1574:22: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1572 |             guard let continuation, !hasResumed else { return }
1573 |             hasResumed = true
1574 |             session?.invalidateAndCancel()
     |                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1575 |             continuation.resume(throwing: error ?? URLError(.badServerResponse))
1576 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1700:59: error: cannot infer contextual base in reference to member 'head'
1698 |             .appending(component: revision)
1699 |             .appending(path: repoPath)
1700 |         var request = try await httpClient.createRequest(.head, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'head'
1701 |         request.setValue("bytes=0-0", forHTTPHeaderField: "Range")
1702 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1704:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1702 |
1703 |         do {
1704 |             let (_, response) = try await session.data(for: request)
     |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1705 |             guard let httpResponse = response as? HTTPURLResponse else {
1706 |                 return File(exists: false)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1774:34: error: 'nil' requires a contextual type
1772 |             maxConcurrentDownloads: maxConcurrentDownloads,
1773 |             progressHandler: progressHandler,
1774 |             fileProgressHandler: nil
     |                                  `- error: 'nil' requires a contextual type
1775 |         )
1776 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1858:17: error: 'nil' requires a contextual type
1856 |             of: repo,
1857 |             kind: kind,
1858 |             to: nil,
     |                 `- error: 'nil' requires a contextual type
1859 |             revision: revision,
1860 |             matching: globs,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1865:34: error: 'nil' requires a contextual type
1863 |             maxConcurrentDownloads: maxConcurrentDownloads,
1864 |             progressHandler: progressHandler,
1865 |             fileProgressHandler: nil
     |                                  `- error: 'nil' requires a contextual type
1866 |         )
1867 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1908:17: error: 'nil' requires a contextual type
1906 |             of: repo,
1907 |             kind: kind,
1908 |             to: nil,
     |                 `- error: 'nil' requires a contextual type
1909 |             revision: revision,
1910 |             matching: globs,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1946:28: error: cannot find 'Progress' in scope
1944 |             matching: globs
1945 |         ) {
1946 |             let progress = Progress(totalUnitCount: 1)
     |                            `- error: cannot find 'Progress' in scope
1947 |             progress.completedUnitCount = 1
1948 |             if let progressHandler {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2029:24: error: cannot find 'Progress' in scope
2027 |             partial + snapshotWeight(for: entry)
2028 |         }
2029 |         let progress = Progress(totalUnitCount: max(totalWeight, 1))
     |                        `- error: cannot find 'Progress' in scope
2030 |         if let progressHandler {
2031 |             await progressHandler(progress)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2047:32: error: cannot find 'Progress' in scope
2045 |             try validateSnapshotEntryPath(entry.path)
2046 |             let weight = snapshotWeight(for: entry)
2047 |             let fileProgress = Progress(totalUnitCount: weight, parent: progress, pendingUnitCount: weight)
     |                                `- error: cannot find 'Progress' in scope
2048 |             return SnapshotDownloadWorkItem(
2049 |                 entry: entry,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 |         let lfsEntries =
2057 |             workItems
2058 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
2059 |             .sorted {
2060 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 |                 return $0.weight > $1.weight
2064 |             }
2065 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 |         // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 |             ? []
2072 |             : workItems
2073 |                 .filter { $0.entry.type == .file }
     |                                             `- error: cannot infer contextual base in reference to member 'file'
2074 |                 .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2155 |     /// - Returns: `nil` when the response does not include a valid Xet file ID.
2156 |     init?(response: URLResponse) {
2157 |         guard let httpResponse = response as? HTTPURLResponse else {
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2158 |             return nil
2159 |         }
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2161:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2159 |         }
2160 |
2161 |         let rawFileID = httpResponse.value(forHTTPHeaderField: "X-Xet-Hash")?
     |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2162 |             .trimmingCharacters(in: .whitespacesAndNewlines)
2163 |         guard let fileID = rawFileID, !fileID.isEmpty else {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2162:38: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
2160 |
2161 |         let rawFileID = httpResponse.value(forHTTPHeaderField: "X-Xet-Hash")?
2162 |             .trimmingCharacters(in: .whitespacesAndNewlines)
     |                                      `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
2163 |         guard let fileID = rawFileID, !fileID.isEmpty else {
2164 |             return nil
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2166:53: error: cannot infer key path type from context; consider explicitly specifying a root type
2164 |             return nil
2165 |         }
2166 |         guard fileID.count == 64, fileID.allSatisfy(\.isHexDigit) else {
     |                                                     `- error: cannot infer key path type from context; consider explicitly specifying a root type
2167 |             return nil
2168 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2171:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2169 |
2170 |         let rawSize =
2171 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
     |                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2172 |             ?? ((200 ... 299).contains(httpResponse.statusCode)
2173 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2172:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
2170 |         let rawSize =
2171 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
2172 |             ?? ((200 ... 299).contains(httpResponse.statusCode)
     |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
2173 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length")
2174 |                 : nil)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2173:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2171 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
2172 |             ?? ((200 ... 299).contains(httpResponse.statusCode)
2173 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length")
     |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2174 |                 : nil)
2175 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2360:43: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
2358 |             withIntermediateDirectories: true
2359 |         )
2360 |         try data.write(to: url, options: .atomic)
     |                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
2361 |     }
2362 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2639:59: error: cannot infer contextual base in reference to member 'head'
2637 |             .appending(component: revision)
2638 |             .appending(path: repoPath)
2639 |         var request = try await httpClient.createRequest(.head, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'head'
2640 |         request.cachePolicy = .reloadIgnoringLocalCacheData
2641 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2640:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
2638 |             .appending(path: repoPath)
2639 |         var request = try await httpClient.createRequest(.head, url: url)
2640 |         request.cachePolicy = .reloadIgnoringLocalCacheData
     |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
2641 |
2642 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2645:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
2643 |             let (_, response) = try await metadataSession.data(for: request)
2644 |         #else
2645 |             let (_, response) = try await session.data(for: request, delegate: SameHostRedirectDelegate.shared)
     |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
2646 |         #endif
2647 |         guard let metadata = XetFileMetadata(response: response) else {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2672:59: error: cannot infer contextual base in reference to member 'head'
2670 |     /// This captures `X-Linked-Etag` and `X-Repo-Commit` before a potential CDN redirect.
2671 |     func fetchFileMetadata(url: URL) async throws -> FileMetadata? {
2672 |         let request = try await httpClient.createRequest(.head, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'head'
2673 |         #if canImport(FoundationNetworking)
2674 |             let (_, response) = try await metadataSession.data(for: request)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2676:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
2674 |             let (_, response) = try await metadataSession.data(for: request)
2675 |         #else
2676 |             let (_, response) = try await session.data(for: request, delegate: SameHostRedirectDelegate.shared)
     |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
2677 |         #endif
2678 |         guard let httpResponse = response as? HTTPURLResponse,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2716:39: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
2714 |         completionHandler: @escaping (URLRequest?) -> Void
2715 |     ) {
2716 |         guard let originalHost = task.originalRequest?.url?.host,
     |                                       `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
2717 |             let newHost = request.url?.host
2718 |         else {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2719:31: error: 'nil' requires a contextual type
2717 |             let newHost = request.url?.host
2718 |         else {
2719 |             completionHandler(nil)
     |                               `- error: 'nil' requires a contextual type
2720 |             return
2721 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1353:22: error: cannot find type 'URLRequest' in scope
1351 |     /// - Returns: The response and, for a non-2xx response, its body data.
1352 |     func hfStreamingDownload(
1353 |         for request: URLRequest,
     |                      `- error: cannot find type 'URLRequest' in scope
1354 |         progress: Progress? = nil,
1355 |         resumeOffset: Int64 = 0,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1354:19: error: cannot find type 'Progress' in scope
1352 |     func hfStreamingDownload(
1353 |         for request: URLRequest,
1354 |         progress: Progress? = nil,
     |                   `- error: cannot find type 'Progress' in scope
1355 |         resumeOffset: Int64 = 0,
1356 |         targetURL: URL,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1417:26: error: cannot find type 'URLRequest' in scope
1415 |     extension URLSession {
1416 |         func hfAsyncDownload(
1417 |             for request: URLRequest,
     |                          `- error: cannot find type 'URLRequest' in scope
1418 |             progress: Progress? = nil,
1419 |             resumeOffset: Int64 = 0
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1418:23: error: cannot find type 'Progress' in scope
1416 |         func hfAsyncDownload(
1417 |             for request: URLRequest,
1418 |             progress: Progress? = nil,
     |                       `- error: cannot find type 'Progress' in scope
1419 |             resumeOffset: Int64 = 0
1420 |         ) async throws -> (URL, URLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1447:23: error: cannot find type 'Progress' in scope
1445 |         func hfAsyncDownload(
1446 |             resumeFrom resumeData: Data,
1447 |             progress: Progress? = nil
     |                       `- error: cannot find type 'Progress' in scope
1448 |         ) async throws -> (URL, URLResponse) {
1449 |             let box = DownloadTaskBox()
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[682/721] Compiling HuggingFace HubClient+Files.swift
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
  6 |     import Glibc
  7 | #else
  8 |     #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
    |            `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
  9 | #endif
 10 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 |         environment env: [String: String] = ProcessInfo.processInfo.environment,
198 |         homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 |         cachesDirectory: URL = URL.cachesDirectory
    |                                    `- error: type 'URL' has no member 'cachesDirectory'
200 |     ) -> URL {
201 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubCache.swift:457:56: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
455 |         try await lock.withLock {
456 |             if !FileManager.default.fileExists(atPath: blobPath.path) {
457 |                 try data.write(to: blobPath, options: .atomic)
    |                                                        `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
458 |             }
459 |         }
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubCache.swift:479:56: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
477 |         let relativeBlobPath = relativePathToBlob(from: snapshotPath, blobName: normalizedEtag)
478 |         if !createSymlink(at: snapshotPath, pointingTo: relativeBlobPath) {
479 |             try data.write(to: snapshotPath, options: .atomic)
    |                                                        `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
480 |         }
481 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:124:16: error: cannot find type 'Progress' in scope
 122 |
 123 | private final class SnapshotProgressBox: @unchecked Sendable {
 124 |     let value: Progress
     |                `- error: cannot find type 'Progress' in scope
 125 |
 126 |     init(_ value: Progress) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:126:19: error: cannot find type 'Progress' in scope
 124 |     let value: Progress
 125 |
 126 |     init(_ value: Progress) {
     |                   `- error: cannot find type 'Progress' in scope
 127 |         self.value = value
 128 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:378:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 376 |     /// - Parameter response: The response to parse.
 377 |     /// - Returns: `nil` when the response is not an HTTP response.
 378 |     init?(response: URLResponse) {
     |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 379 |         guard let httpResponse = response as? HTTPURLResponse else {
 380 |             return nil
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:399:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 397 |
 398 |     /// CDN ETags can use a different identity scheme from Hub blob ETags.
 399 |     func matches(_ response: HTTPURLResponse) -> Bool {
     |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 400 |         guard let other = FileMetadata(response: response) else { return true }
 401 |         if let commitHash, let otherCommit = other.commitHash, commitHash != otherCommit {
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:416:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 414 |
 415 |     /// Resuming needs a pinned commit, a comparable response identity, or If-Range.
 416 |     func allowsResume(from response: HTTPURLResponse) -> Bool {
     |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 417 |         if commitHash != nil { return true }
 418 |         guard let other = FileMetadata(response: response) else { return false }
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:467:22: error: cannot find type 'URLRequest' in scope
 465 |         endpoint: FileDownloadEndpoint = .resolve,
 466 |         transport: FileDownloadTransport = .automatic,
 467 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
     |                      `- error: cannot find type 'URLRequest' in scope
 468 |     ) async throws -> Data {
 469 |         // Check cache first
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:585:22: error: cannot find type 'URLRequest' in scope
 583 |         revision: String = "main",
 584 |         endpoint: FileDownloadEndpoint = .resolve,
 585 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
     |                      `- error: cannot find type 'URLRequest' in scope
 586 |         progress: Progress? = nil,
 587 |         transport: FileDownloadTransport = .automatic,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:586:19: error: cannot find type 'Progress' in scope
 584 |         endpoint: FileDownloadEndpoint = .resolve,
 585 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
 586 |         progress: Progress? = nil,
     |                   `- error: cannot find type 'Progress' in scope
 587 |         transport: FileDownloadTransport = .automatic,
 588 |         localFilesOnly: Bool = false
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:987:22: error: cannot find type 'URLRequest' in scope
 985 |         revision: String = "main",
 986 |         endpoint: FileDownloadEndpoint = .resolve,
 987 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
     |                      `- error: cannot find type 'URLRequest' in scope
 988 |         progress: Progress? = nil,
 989 |         transport: FileDownloadTransport = .automatic,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:988:19: error: cannot find type 'Progress' in scope
 986 |         endpoint: FileDownloadEndpoint = .resolve,
 987 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
 988 |         progress: Progress? = nil,
     |                   `- error: cannot find type 'Progress' in scope
 989 |         transport: FileDownloadTransport = .automatic,
 990 |         localFilesOnly: Bool = false
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1038:23: error: cannot find type 'Progress' in scope
1036 |             resumeData: Data,
1037 |             to destination: URL,
1038 |             progress: Progress? = nil
     |                       `- error: cannot find type 'Progress' in scope
1039 |         ) async throws -> URL {
1040 |             let (tempURL, response) = try await session.hfAsyncDownload(
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1071:22: error: cannot find type 'URLRequest' in scope
1069 |         revision: String = "main",
1070 |         endpoint: FileDownloadEndpoint = .resolve,
1071 |         cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
     |                      `- error: cannot find type 'URLRequest' in scope
1072 |         transport: FileDownloadTransport = .automatic,
1073 |         localFilesOnly: Bool = false
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1125:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1123 | private final class DataTaskBox: @unchecked Sendable {
1124 |     private let lock = NSLock()
1125 |     private var task: URLSessionDataTask?
     |                       `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1126 |     private var isCancelled = false
1127 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1128:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1126 |     private var isCancelled = false
1127 |
1128 |     func start(_ task: URLSessionDataTask) {
     |                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1129 |         lock.lock()
1130 |         self.task = task
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1178:19: error: cannot find type 'Progress' in scope
1176 |
1177 |     init(
1178 |         progress: Progress,
     |                   `- error: cannot find type 'Progress' in scope
1179 |         resumeOffset: Int64,
1180 |         targetURL: URL,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1157:58: error: cannot find type 'URLSessionDataDelegate' in scope
1155 | /// Successful responses are appended only when HTTP 206 identifies the requested
1156 | /// offset and passes the metadata checks. HTTP 200 truncates the file and restarts.
1157 | private final class StreamingDownloadDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
     |                                                          `- error: cannot find type 'URLSessionDataDelegate' in scope
1158 |     // Mutable state is confined to the session's serial delegate queue.
1159 |     private let progress: Progress
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1159:27: error: cannot find type 'Progress' in scope
1157 | private final class StreamingDownloadDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
1158 |     // Mutable state is confined to the session's serial delegate queue.
1159 |     private let progress: Progress
     |                           `- error: cannot find type 'Progress' in scope
1160 |     private let resumeOffset: Int64
1161 |     private let targetURL: URL
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1166:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1164 |     private var expectedSize: Int64?
1165 |     private var expectedBodySize: Int64?
1166 |     private let continuation: CheckedContinuation<(URLResponse, Data?), Error>
     |                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1167 |     fileprivate weak var session: URLSession?
1168 |     private var hasResumed = false
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1167:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1165 |     private var expectedBodySize: Int64?
1166 |     private let continuation: CheckedContinuation<(URLResponse, Data?), Error>
1167 |     fileprivate weak var session: URLSession?
     |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1168 |     private var hasResumed = false
1169 |     private var response: URLResponse?
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1169:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1167 |     fileprivate weak var session: URLSession?
1168 |     private var hasResumed = false
1169 |     private var response: URLResponse?
     |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1170 |     private var fileHandle: FileHandle?
1171 |     private var errorData = Data()
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1183:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1181 |         keepPartialFile: Bool,
1182 |         metadata: FileMetadata?,
1183 |         continuation: CheckedContinuation<(URLResponse, Data?), Error>
     |                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1184 |     ) {
1185 |         self.progress = progress
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1198:29: error: cannot find type 'URLRequest' in scope
1196 |         task _: URLSessionTask,
1197 |         willPerformHTTPRedirection response: HTTPURLResponse,
1198 |         newRequest request: URLRequest,
     |                             `- error: cannot find type 'URLRequest' in scope
1199 |         completionHandler: @escaping (URLRequest?) -> Void
1200 |     ) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1199:39: error: cannot find type 'URLRequest' in scope
1197 |         willPerformHTTPRedirection response: HTTPURLResponse,
1198 |         newRequest request: URLRequest,
1199 |         completionHandler: @escaping (URLRequest?) -> Void
     |                                       `- error: cannot find type 'URLRequest' in scope
1200 |     ) {
1201 |         guard metadata?.matches(response) != false else {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1195:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1193 |
1194 |     func urlSession(
1195 |         _: URLSession,
     |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1196 |         task _: URLSessionTask,
1197 |         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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1196:17: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1194 |     func urlSession(
1195 |         _: URLSession,
1196 |         task _: URLSessionTask,
     |                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1197 |         willPerformHTTPRedirection response: HTTPURLResponse,
1198 |         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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1197:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1195 |         _: URLSession,
1196 |         task _: URLSessionTask,
1197 |         willPerformHTTPRedirection response: HTTPURLResponse,
     |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1198 |         newRequest request: URLRequest,
1199 |         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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1219:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1217 |         dataTask _: URLSessionDataTask,
1218 |         didReceive response: URLResponse,
1219 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
     |                                                  `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1220 |     ) {
1221 |         self.response = response
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1216:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1214 |
1215 |     func urlSession(
1216 |         _: URLSession,
     |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1217 |         dataTask _: URLSessionDataTask,
1218 |         didReceive response: URLResponse,
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1217:21: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1215 |     func urlSession(
1216 |         _: URLSession,
1217 |         dataTask _: URLSessionDataTask,
     |                     `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1218 |         didReceive response: URLResponse,
1219 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1218:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1216 |         _: URLSession,
1217 |         dataTask _: URLSessionDataTask,
1218 |         didReceive response: URLResponse,
     |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1219 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
1220 |     ) {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1279:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1277 |     }
1278 |
1279 |     func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
     |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1280 |         guard isSuccessfulResponse else {
1281 |             errorData.append(data)
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1279:46: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1277 |     }
1278 |
1279 |     func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
     |                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1280 |         guard isSuccessfulResponse else {
1281 |             errorData.append(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1299:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1297 |     }
1298 |
1299 |     func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: Error?) {
     |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1300 |         guard !hasResumed else { return }
1301 |         hasResumed = true
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1299:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1297 |     }
1298 |
1299 |     func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: Error?) {
     |                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1300 |         guard !hasResumed else { return }
1301 |         hasResumed = true
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1343:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
1341 | }
1342 |
1343 | extension URLSession {
     | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
1344 |     /// Downloads `request`, streaming the body into `targetURL` as bytes arrive.
1345 |     ///
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1391:27: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1389 |     private final class DownloadTaskBox: @unchecked Sendable {
1390 |         private let lock = NSLock()
1391 |         private var task: URLSessionDownloadTask?
     |                           `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1392 |         private var isCancelled = false
1393 |
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1394:28: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1392 |         private var isCancelled = false
1393 |
1394 |         func start(_ task: URLSessionDownloadTask) {
     |                            `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1395 |             lock.lock()
1396 |             self.task = task
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1415:5: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
1413 |     }
1414 |
1415 |     extension URLSession {
     |     `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
1416 |         func hfAsyncDownload(
1417 |             for request: URLRequest,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1482:23: error: cannot find type 'Progress' in scope
1480 |
1481 |         init(
1482 |             progress: Progress,
     |                       `- error: cannot find type 'Progress' in scope
1483 |             resumeOffset: Int64 = 0,
1484 |             appliesResumeOffsetToAllResponses: Bool = false,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1472:61: error: cannot find type 'URLSessionDownloadDelegate' in scope
1470 |     }
1471 |
1472 |     private final class DownloadProgressDelegate: NSObject, URLSessionDownloadDelegate, @unchecked Sendable {
     |                                                             `- error: cannot find type 'URLSessionDownloadDelegate' in scope
1473 |         // Mutable state is confined to the session's serial delegate queue.
1474 |         private let progress: Progress
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1474:31: error: cannot find type 'Progress' in scope
1472 |     private final class DownloadProgressDelegate: NSObject, URLSessionDownloadDelegate, @unchecked Sendable {
1473 |         // Mutable state is confined to the session's serial delegate queue.
1474 |         private let progress: Progress
     |                               `- error: cannot find type 'Progress' in scope
1475 |         private let appliesResumeOffsetToAllResponses: Bool
1476 |         private let continuation: CheckedContinuation<(URL, URLResponse), Error>?
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1476:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1474 |         private let progress: Progress
1475 |         private let appliesResumeOffsetToAllResponses: Bool
1476 |         private let continuation: CheckedContinuation<(URL, URLResponse), Error>?
     |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1477 |         fileprivate weak var session: URLSession?
1478 |         private var currentResumeOffset: Int64
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1477:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1475 |         private let appliesResumeOffsetToAllResponses: Bool
1476 |         private let continuation: CheckedContinuation<(URL, URLResponse), Error>?
1477 |         fileprivate weak var session: URLSession?
     |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1478 |         private var currentResumeOffset: Int64
1479 |         private var hasResumed = false
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1485:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1483 |             resumeOffset: Int64 = 0,
1484 |             appliesResumeOffsetToAllResponses: Bool = false,
1485 |             continuation: CheckedContinuation<(URL, URLResponse), Error>? = nil
     |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1486 |         ) {
1487 |             self.progress = progress
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1494:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1492 |
1493 |         func urlSession(
1494 |             _: URLSession,
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1495 |             downloadTask: URLSessionDownloadTask,
1496 |             didWriteData _: Int64,
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1495:27: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1493 |         func urlSession(
1494 |             _: URLSession,
1495 |             downloadTask: URLSessionDownloadTask,
     |                           `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1496 |             didWriteData _: Int64,
1497 |             totalBytesWritten: Int64,
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1515:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1513 |
1514 |         func urlSession(
1515 |             _: URLSession,
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1516 |             downloadTask _: URLSessionDownloadTask,
1517 |             didResumeAtOffset fileOffset: Int64,
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1516:29: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1514 |         func urlSession(
1515 |             _: URLSession,
1516 |             downloadTask _: URLSessionDownloadTask,
     |                             `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1517 |             didResumeAtOffset fileOffset: Int64,
1518 |             expectedTotalBytes: Int64
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1529:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1527 |
1528 |         func urlSession(
1529 |             _: URLSession,
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1530 |             downloadTask: URLSessionDownloadTask,
1531 |             didFinishDownloadingTo location: URL
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1530:27: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1528 |         func urlSession(
1529 |             _: URLSession,
1530 |             downloadTask: URLSessionDownloadTask,
     |                           `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1531 |             didFinishDownloadingTo location: URL
1532 |         ) {
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1571:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1569 |         }
1570 |
1571 |         func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: Error?) {
     |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1572 |             guard let continuation, !hasResumed else { return }
1573 |             hasResumed = true
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1571:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1569 |         }
1570 |
1571 |         func urlSession(_: URLSession, task _: URLSessionTask, didCompleteWithError error: Error?) {
     |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1572 |             guard let continuation, !hasResumed else { return }
1573 |             hasResumed = true
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1762:49: error: cannot find type 'Progress' in scope
1760 |         localFilesOnly: Bool = false,
1761 |         maxConcurrentDownloads: Int = 8,
1762 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)? = nil
     |                                                 `- error: cannot find type 'Progress' in scope
1763 |     ) async throws -> URL {
1764 |         try await downloadSnapshot(
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1811:49: error: cannot find type 'Progress' in scope
1809 |         localFilesOnly: Bool = false,
1810 |         maxConcurrentDownloads: Int = 8,
1811 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)? = nil,
     |                                                 `- error: cannot find type 'Progress' in scope
1812 |         fileProgressHandler: (@MainActor @Sendable ([SnapshotFileProgress]) -> Void)?
1813 |     ) async throws -> URL {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1853:49: error: cannot find type 'Progress' in scope
1851 |         localFilesOnly: Bool = false,
1852 |         maxConcurrentDownloads: Int = 8,
1853 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)? = nil
     |                                                 `- error: cannot find type 'Progress' in scope
1854 |     ) async throws -> URL {
1855 |         try await downloadSnapshot(
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1902:49: error: cannot find type 'Progress' in scope
1900 |         localFilesOnly: Bool = false,
1901 |         maxConcurrentDownloads: Int = 8,
1902 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)? = nil,
     |                                                 `- error: cannot find type 'Progress' in scope
1903 |         fileProgressHandler: (@MainActor @Sendable ([SnapshotFileProgress]) -> Void)?
1904 |     ) async throws -> URL {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1928:49: error: cannot find type 'Progress' in scope
1926 |         localFilesOnly: Bool,
1927 |         maxConcurrentDownloads: Int,
1928 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)?,
     |                                                 `- error: cannot find type 'Progress' in scope
1929 |         fileProgressHandler: (@MainActor @Sendable ([SnapshotFileProgress]) -> Void)?
1930 |     ) async throws -> URL {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2156:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2154 |     /// - Parameter response: The response to parse.
2155 |     /// - Returns: `nil` when the response does not include a valid Xet file ID.
2156 |     init?(response: URLResponse) {
     |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2157 |         guard let httpResponse = response as? HTTPURLResponse else {
2158 |             return nil
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2207:19: error: cannot find type 'Progress' in scope
2205 |
2206 |     func makeSnapshotProgressSamplingTask(
2207 |         progress: Progress,
     |                   `- error: cannot find type 'Progress' in scope
2208 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)?,
2209 |         fileRows: [(path: String, size: Int64?, progress: SnapshotProgressBox)],
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2208:49: error: cannot find type 'Progress' in scope
2206 |     func makeSnapshotProgressSamplingTask(
2207 |         progress: Progress,
2208 |         progressHandler: (@MainActor @Sendable (Progress) -> Void)?,
     |                                                 `- error: cannot find type 'Progress' in scope
2209 |         fileRows: [(path: String, size: Int64?, progress: SnapshotProgressBox)],
2210 |         fileProgressHandler: (@MainActor @Sendable ([SnapshotFileProgress]) -> Void)?
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2381:19: error: cannot find type 'Progress' in scope
2379 |         _ source: URL,
2380 |         destination: URL?,
2381 |         progress: Progress? = nil
     |                   `- error: cannot find type 'Progress' in scope
2382 |     ) throws -> URL {
2383 |         // Publish completion only after a requested destination copy succeeds.
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2587:19: error: cannot find type 'Progress' in scope
2585 |         revision: String,
2586 |         destination: URL,
2587 |         progress: Progress?,
     |                   `- error: cannot find type 'Progress' in scope
2588 |         transport: FileDownloadTransport
2589 |     ) async throws -> URL? {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2702:49: error: cannot find type 'URLSessionTaskDelegate' in scope
2700 |
2701 | /// Follows same-host redirects while blocking cross-host redirects.
2702 | final class SameHostRedirectDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
     |                                                 `- error: cannot find type 'URLSessionTaskDelegate' in scope
2703 |     static let shared = SameHostRedirectDelegate()
2704 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2713:29: error: cannot find type 'URLRequest' in scope
2711 |         task: URLSessionTask,
2712 |         willPerformHTTPRedirection _: HTTPURLResponse,
2713 |         newRequest request: URLRequest,
     |                             `- error: cannot find type 'URLRequest' in scope
2714 |         completionHandler: @escaping (URLRequest?) -> Void
2715 |     ) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2714:39: error: cannot find type 'URLRequest' in scope
2712 |         willPerformHTTPRedirection _: HTTPURLResponse,
2713 |         newRequest request: URLRequest,
2714 |         completionHandler: @escaping (URLRequest?) -> Void
     |                                       `- error: cannot find type 'URLRequest' in scope
2715 |     ) {
2716 |         guard let originalHost = task.originalRequest?.url?.host,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2710:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2708 |
2709 |     func urlSession(
2710 |         _: URLSession,
     |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2711 |         task: URLSessionTask,
2712 |         willPerformHTTPRedirection _: 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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2711:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2709 |     func urlSession(
2710 |         _: URLSession,
2711 |         task: URLSessionTask,
     |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2712 |         willPerformHTTPRedirection _: HTTPURLResponse,
2713 |         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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2712:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2710 |         _: URLSession,
2711 |         task: URLSessionTask,
2712 |         willPerformHTTPRedirection _: HTTPURLResponse,
     |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2713 |         newRequest request: URLRequest,
2714 |         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-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:319:23: error: cannot find type 'URLRequest' in scope
317 |         params: [String: Value]? = nil,
318 |         headers: [String: String]? = nil
319 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
320 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
321 |         urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:331:23: error: cannot find type 'URLRequest' in scope
329 |         params: [String: Value]? = nil,
330 |         headers: [String: String]? = nil
331 |     ) async throws -> URLRequest {
    |                       `- error: cannot find type 'URLRequest' in scope
332 |         let urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: true)
333 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:240:59: error: cannot infer contextual base in reference to member 'post'
 238 |             .appending(path: "upload")
 239 |             .appending(component: branch)
 240 |         var request = try await httpClient.createRequest(.post, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'post'
 241 |
 242 |         let boundary = "----hf-\(UUID().uuidString)"
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:265:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 263 |             defer { try? FileManager.default.removeItem(at: tempFile) }
 264 |
 265 |             let (data, response) = try await session.upload(for: request, fromFile: tempFile)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 266 |             _ = try httpClient.validateResponse(response, data: data)
 267 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:282:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 280 |                 .buildInMemory()
 281 |
 282 |             let (data, response) = try await session.upload(for: request, from: body)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
 283 |             _ = try httpClient.validateResponse(response, data: data)
 284 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:379:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 377 |     /// - Returns: `nil` when the response is not an HTTP response.
 378 |     init?(response: URLResponse) {
 379 |         guard let httpResponse = response as? HTTPURLResponse else {
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 380 |             return nil
 381 |         }
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:383:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 381 |         }
 382 |
 383 |         let linkedEtag = httpResponse.value(forHTTPHeaderField: "X-Linked-Etag")
     |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 384 |         let etag = linkedEtag ?? httpResponse.value(forHTTPHeaderField: "ETag")
 385 |         let commitHash = httpResponse.value(forHTTPHeaderField: "X-Repo-Commit")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:384:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 382 |
 383 |         let linkedEtag = httpResponse.value(forHTTPHeaderField: "X-Linked-Etag")
 384 |         let etag = linkedEtag ?? httpResponse.value(forHTTPHeaderField: "ETag")
     |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 385 |         let commitHash = httpResponse.value(forHTTPHeaderField: "X-Repo-Commit")
 386 |         self.commitHash = commitHash
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:385:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 383 |         let linkedEtag = httpResponse.value(forHTTPHeaderField: "X-Linked-Etag")
 384 |         let etag = linkedEtag ?? httpResponse.value(forHTTPHeaderField: "ETag")
 385 |         let commitHash = httpResponse.value(forHTTPHeaderField: "X-Repo-Commit")
     |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 386 |         self.commitHash = commitHash
 387 |         self.etag = etag
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:390:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 388 |         normalizedEtag = etag.map(Self.normalizeEtag)
 389 |         let sizeHeader =
 390 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
     |                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 391 |             ?? ((200 ..< 300).contains(httpResponse.statusCode)
 392 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length") : nil)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:391:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 389 |         let sizeHeader =
 390 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
 391 |             ?? ((200 ..< 300).contains(httpResponse.statusCode)
     |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 392 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length") : nil)
 393 |         size = sizeHeader.flatMap(Int64.init).flatMap { $0 >= 0 ? $0 : nil }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:392:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 390 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
 391 |             ?? ((200 ..< 300).contains(httpResponse.statusCode)
 392 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length") : nil)
     |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 393 |         size = sizeHeader.flatMap(Int64.init).flatMap { $0 >= 0 ? $0 : nil }
 394 |         url = response.url
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:394:24: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
 392 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length") : nil)
 393 |         size = sizeHeader.flatMap(Int64.init).flatMap { $0 >= 0 ? $0 : nil }
 394 |         url = response.url
     |                        `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
 395 |         usesLinkedEtag = linkedEtag != nil
 396 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:405:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 403 |         }
 404 |         let sameOrigin =
 405 |             url?.scheme == response.url?.scheme
     |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 406 |             && url?.host == response.url?.host && url?.port == response.url?.port
 407 |         if let normalizedEtag, let otherEtag = other.normalizedEtag,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:406:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 404 |         let sameOrigin =
 405 |             url?.scheme == response.url?.scheme
 406 |             && url?.host == response.url?.host && url?.port == response.url?.port
     |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 407 |         if let normalizedEtag, let otherEtag = other.normalizedEtag,
 408 |             other.usesLinkedEtag || (sameOrigin && !usesLinkedEtag)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:406:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 404 |         let sameOrigin =
 405 |             url?.scheme == response.url?.scheme
 406 |             && url?.host == response.url?.host && url?.port == response.url?.port
     |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 407 |         if let normalizedEtag, let otherEtag = other.normalizedEtag,
 408 |             other.usesLinkedEtag || (sameOrigin && !usesLinkedEtag)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:423:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 421 |         }
 422 |         return !usesLinkedEtag && etag?.hasPrefix("W/") == false
 423 |             && url?.scheme == response.url?.scheme
     |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 424 |             && url?.host == response.url?.host && url?.port == response.url?.port
 425 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:424:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 422 |         return !usesLinkedEtag && etag?.hasPrefix("W/") == false
 423 |             && url?.scheme == response.url?.scheme
 424 |             && url?.host == response.url?.host && url?.port == response.url?.port
     |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 425 |     }
 426 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:424:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 422 |         return !usesLinkedEtag && etag?.hasPrefix("W/") == false
 423 |             && url?.scheme == response.url?.scheme
 424 |             && url?.host == response.url?.host && url?.port == response.url?.port
     |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 425 |     }
 426 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:525:59: error: cannot infer contextual base in reference to member 'get'
 523 |
 524 |         // GET request for the actual file bytes
 525 |         var request = try await httpClient.createRequest(.get, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'get'
 526 |         request.cachePolicy = cachePolicy
 527 |         let (data, response) = try await session.data(for: request)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:527:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 525 |         var request = try await httpClient.createRequest(.get, url: url)
 526 |         request.cachePolicy = cachePolicy
 527 |         let (data, response) = try await session.data(for: request)
     |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 528 |         _ = try httpClient.validateResponse(response, data: data)
 529 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:663:63: error: cannot infer contextual base in reference to member 'get'
 661 |                     .appending(path: repoPath)
 662 |             } ?? url
 663 |         var baseRequest = try await httpClient.createRequest(.get, url: downloadURL)
     |                                                               `- error: cannot infer contextual base in reference to member 'get'
 664 |         baseRequest.cachePolicy = cachePolicy
 665 |         baseRequest.setValue("identity", forHTTPHeaderField: "Accept-Encoding")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:882:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 880 |             .appendingPathComponent("hf-download-\(UUID().uuidString).tmp")
 881 |         defer { try? FileManager.default.removeItem(at: tempURL) }
 882 |         let response: URLResponse
     |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 883 |         let errorData: Data?
 884 |         do {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:885:55: error: value of type 'URLSession' (aka 'AnyObject') has no member 'hfStreamingDownload'
 883 |         let errorData: Data?
 884 |         do {
 885 |             (response, errorData) = try await session.hfStreamingDownload(
     |                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'hfStreamingDownload'
 886 |                 for: baseRequest,
 887 |                 progress: progress,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:912:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 910 |             throw error
 911 |         }
 912 |         guard let httpResponse = response as? HTTPURLResponse else {
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 913 |             throw HTTPClientError.unexpectedError("Invalid response from server: \(response)")
 914 |         }
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:915:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 913 |             throw HTTPClientError.unexpectedError("Invalid response from server: \(response)")
 914 |         }
 915 |         if !(200 ..< 300).contains(httpResponse.statusCode) {
     |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 916 |             _ = try httpClient.validateResponse(response, data: errorData)
 917 |             throw HTTPClientError.responseError(response: httpResponse, detail: "Invalid response")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1005:29: error: cannot infer contextual base in reference to member 'lfs'
1003 |                 cachePolicy: cachePolicy,
1004 |                 progress: progress,
1005 |                 transport: .lfs,
     |                             `- error: cannot infer contextual base in reference to member 'lfs'
1006 |                 localFilesOnly: localFilesOnly
1007 |             )
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1040:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'hfAsyncDownload'
1038 |             progress: Progress? = nil
1039 |         ) async throws -> URL {
1040 |             let (tempURL, response) = try await session.hfAsyncDownload(
     |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'hfAsyncDownload'
1041 |                 resumeFrom: resumeData,
1042 |                 progress: progress
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1083:23: error: 'nil' requires a contextual type
1081 |             endpoint: endpoint,
1082 |             cachePolicy: cachePolicy,
1083 |             progress: nil,
     |                       `- error: 'nil' requires a contextual type
1084 |             transport: transport,
1085 |             localFilesOnly: localFilesOnly
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1134:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1132 |         lock.unlock()
1133 |         if cancelled {
1134 |             task.cancel()
     |                  `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1135 |         } else {
1136 |             task.resume()
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1136:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
1134 |             task.cancel()
1135 |         } else {
1136 |             task.resume()
     |                  `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
1137 |         }
1138 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1145:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1143 |         let task = task
1144 |         lock.unlock()
1145 |         task?.cancel()
     |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1146 |     }
1147 | }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1203:31: error: 'nil' requires a contextual type
1201 |         guard metadata?.matches(response) != false else {
1202 |             writeError = StreamingDownloadError.identityMismatch
1203 |             completionHandler(nil)
     |                               `- error: 'nil' requires a contextual type
1204 |             return
1205 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1207:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1205 |         }
1206 |         var request = request
1207 |         if response.url?.scheme != request.url?.scheme
     |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1208 |             || response.url?.host != request.url?.host || response.url?.port != request.url?.port
1209 |         {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1208:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1206 |         var request = request
1207 |         if response.url?.scheme != request.url?.scheme
1208 |             || response.url?.host != request.url?.host || response.url?.port != request.url?.port
     |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1209 |         {
1210 |             request.setValue(nil, forHTTPHeaderField: "If-Range")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1208:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1206 |         var request = request
1207 |         if response.url?.scheme != request.url?.scheme
1208 |             || response.url?.host != request.url?.host || response.url?.port != request.url?.port
     |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1209 |         {
1210 |             request.setValue(nil, forHTTPHeaderField: "If-Range")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1210:30: error: 'nil' requires a contextual type
1208 |             || response.url?.host != request.url?.host || response.url?.port != request.url?.port
1209 |         {
1210 |             request.setValue(nil, forHTTPHeaderField: "If-Range")
     |                              `- error: 'nil' requires a contextual type
1211 |         }
1212 |         completionHandler(request)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1222:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1220 |     ) {
1221 |         self.response = response
1222 |         guard let httpResponse = response as? HTTPURLResponse,
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1223 |             (200 ..< 300).contains(httpResponse.statusCode)
1224 |         else {
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1223:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1221 |         self.response = response
1222 |         guard let httpResponse = response as? HTTPURLResponse,
1223 |             (200 ..< 300).contains(httpResponse.statusCode)
     |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1224 |         else {
1225 |             completionHandler(.allow)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1225:32: error: cannot infer contextual base in reference to member 'allow'
1223 |             (200 ..< 300).contains(httpResponse.statusCode)
1224 |         else {
1225 |             completionHandler(.allow)
     |                                `- error: cannot infer contextual base in reference to member 'allow'
1226 |             return
1227 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1233:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1231 |                 throw StreamingDownloadError.identityMismatch
1232 |             }
1233 |             if httpResponse.statusCode == 206 {
     |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1234 |                 if resumeOffset > 0, metadata?.allowsResume(from: httpResponse) == false {
1235 |                     throw StreamingDownloadError.identityMismatch
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1237:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1235 |                     throw StreamingDownloadError.identityMismatch
1236 |                 }
1237 |                 guard let range = DownloadContentRange(httpResponse.value(forHTTPHeaderField: "Content-Range")),
     |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
1238 |                     range.start == resumeOffset
1239 |                 else { throw StreamingDownloadError.invalidRange }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1246:45: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1244 |                 expectedBodySize = range.end - range.start + 1
1245 |             } else {
1246 |                 expectedBodySize = response.expectedContentLength >= 0 ? response.expectedContentLength : nil
     |                                             `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1247 |                 if expectedSize == nil { expectedSize = expectedBodySize }
1248 |             }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1246:83: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1244 |                 expectedBodySize = range.end - range.start + 1
1245 |             } else {
1246 |                 expectedBodySize = response.expectedContentLength >= 0 ? response.expectedContentLength : nil
     |                                                                                   `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1247 |                 if expectedSize == nil { expectedSize = expectedBodySize }
1248 |             }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1253:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1251 |                 withIntermediateDirectories: true
1252 |             )
1253 |             let appending = resumeOffset > 0 && httpResponse.statusCode == 206
     |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1254 |             if appending {
1255 |                 if !FileManager.default.fileExists(atPath: targetURL.path) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1273:32: error: cannot infer contextual base in reference to member 'cancel'
1271 |         } catch {
1272 |             writeError = error
1273 |             completionHandler(.cancel)
     |                                `- error: cannot infer contextual base in reference to member 'cancel'
1274 |             return
1275 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1276:28: error: cannot infer contextual base in reference to member 'allow'
1274 |             return
1275 |         }
1276 |         completionHandler(.allow)
     |                            `- error: cannot infer contextual base in reference to member 'allow'
1277 |     }
1278 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1289:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1287 |         } catch {
1288 |             writeError = error
1289 |             dataTask.cancel()
     |                      `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
1290 |             return
1291 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1293:65: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1291 |         }
1292 |         bytesWritten += Int64(data.count)
1293 |         if progress.totalUnitCount <= 0, let response, response.expectedContentLength > 0 {
     |                                                                 `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1294 |             progress.totalUnitCount = response.expectedContentLength + effectiveOffset
1295 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:48: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1292 |         bytesWritten += Int64(data.count)
1293 |         if progress.totalUnitCount <= 0, let response, response.expectedContentLength > 0 {
1294 |             progress.totalUnitCount = response.expectedContentLength + effectiveOffset
     |                                                `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
1295 |         }
1296 |         progress.completedUnitCount = effectiveOffset + bytesWritten
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1304:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1302 |         try? fileHandle?.close()
1303 |         fileHandle = nil
1304 |         session?.invalidateAndCancel()
     |                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1305 |         if let writeError {
1306 |             if !keepPartialFile {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1400:22: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
1398 |             lock.unlock()
1399 |             if isCancelled {
1400 |                 task.cancel()
     |                      `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
1401 |             } else {
1402 |                 task.resume()
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1402:22: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
1400 |                 task.cancel()
1401 |             } else {
1402 |                 task.resume()
     |                      `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
1403 |             }
1404 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1411:19: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
1409 |             let task = task
1410 |             lock.unlock()
1411 |             task?.cancel()
     |                   `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
1412 |         }
1413 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1501:45: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
1499 |         ) {
1500 |             guard !hasResumed,
1501 |                 let response = downloadTask.response as? HTTPURLResponse,
     |                                             `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
1502 |                 (200 ..< 300).contains(response.statusCode)
1503 |             else { return }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1536:47: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
1534 |             hasResumed = true
1535 |
1536 |             guard let response = downloadTask.response else {
     |                                               `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
1537 |                 session?.invalidateAndCancel()
1538 |                 continuation.resume(throwing: URLError(.badServerResponse))
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1537:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1535 |
1536 |             guard let response = downloadTask.response else {
1537 |                 session?.invalidateAndCancel()
     |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1538 |                 continuation.resume(throwing: URLError(.badServerResponse))
1539 |                 return
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1562:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
1560 |                     progress.completedUnitCount = progress.totalUnitCount
1561 |                 }
1562 |                 session?.finishTasksAndInvalidate()
     |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
1563 |                 continuation.resume(returning: (persistedURL, response))
1564 |             } catch {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1566:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1564 |             } catch {
1565 |                 try? FileManager.default.removeItem(at: persistedURL)
1566 |                 session?.invalidateAndCancel()
     |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1567 |                 continuation.resume(throwing: error)
1568 |             }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1574:22: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1572 |             guard let continuation, !hasResumed else { return }
1573 |             hasResumed = true
1574 |             session?.invalidateAndCancel()
     |                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
1575 |             continuation.resume(throwing: error ?? URLError(.badServerResponse))
1576 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1700:59: error: cannot infer contextual base in reference to member 'head'
1698 |             .appending(component: revision)
1699 |             .appending(path: repoPath)
1700 |         var request = try await httpClient.createRequest(.head, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'head'
1701 |         request.setValue("bytes=0-0", forHTTPHeaderField: "Range")
1702 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1704:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1702 |
1703 |         do {
1704 |             let (_, response) = try await session.data(for: request)
     |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1705 |             guard let httpResponse = response as? HTTPURLResponse else {
1706 |                 return File(exists: false)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1774:34: error: 'nil' requires a contextual type
1772 |             maxConcurrentDownloads: maxConcurrentDownloads,
1773 |             progressHandler: progressHandler,
1774 |             fileProgressHandler: nil
     |                                  `- error: 'nil' requires a contextual type
1775 |         )
1776 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1858:17: error: 'nil' requires a contextual type
1856 |             of: repo,
1857 |             kind: kind,
1858 |             to: nil,
     |                 `- error: 'nil' requires a contextual type
1859 |             revision: revision,
1860 |             matching: globs,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1865:34: error: 'nil' requires a contextual type
1863 |             maxConcurrentDownloads: maxConcurrentDownloads,
1864 |             progressHandler: progressHandler,
1865 |             fileProgressHandler: nil
     |                                  `- error: 'nil' requires a contextual type
1866 |         )
1867 |     }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1908:17: error: 'nil' requires a contextual type
1906 |             of: repo,
1907 |             kind: kind,
1908 |             to: nil,
     |                 `- error: 'nil' requires a contextual type
1909 |             revision: revision,
1910 |             matching: globs,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1946:28: error: cannot find 'Progress' in scope
1944 |             matching: globs
1945 |         ) {
1946 |             let progress = Progress(totalUnitCount: 1)
     |                            `- error: cannot find 'Progress' in scope
1947 |             progress.completedUnitCount = 1
1948 |             if let progressHandler {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2029:24: error: cannot find 'Progress' in scope
2027 |             partial + snapshotWeight(for: entry)
2028 |         }
2029 |         let progress = Progress(totalUnitCount: max(totalWeight, 1))
     |                        `- error: cannot find 'Progress' in scope
2030 |         if let progressHandler {
2031 |             await progressHandler(progress)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2047:32: error: cannot find 'Progress' in scope
2045 |             try validateSnapshotEntryPath(entry.path)
2046 |             let weight = snapshotWeight(for: entry)
2047 |             let fileProgress = Progress(totalUnitCount: weight, parent: progress, pendingUnitCount: weight)
     |                                `- error: cannot find 'Progress' in scope
2048 |             return SnapshotDownloadWorkItem(
2049 |                 entry: entry,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2058:40: error: cannot infer contextual base in reference to member 'lfs'
2056 |         let lfsEntries =
2057 |             workItems
2058 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
2059 |             .sorted {
2060 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2065:62: error: cannot infer contextual base in reference to member 'lfs'
2063 |                 return $0.weight > $1.weight
2064 |             }
2065 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
2066 |
2067 |         // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2073:45: error: cannot infer contextual base in reference to member 'file'
2071 |             ? []
2072 |             : workItems
2073 |                 .filter { $0.entry.type == .file }
     |                                             `- error: cannot infer contextual base in reference to member 'file'
2074 |                 .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
2075 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2155 |     /// - Returns: `nil` when the response does not include a valid Xet file ID.
2156 |     init?(response: URLResponse) {
2157 |         guard let httpResponse = response as? HTTPURLResponse else {
     |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2158 |             return nil
2159 |         }
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-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2161:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2159 |         }
2160 |
2161 |         let rawFileID = httpResponse.value(forHTTPHeaderField: "X-Xet-Hash")?
     |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2162 |             .trimmingCharacters(in: .whitespacesAndNewlines)
2163 |         guard let fileID = rawFileID, !fileID.isEmpty else {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2162:38: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
2160 |
2161 |         let rawFileID = httpResponse.value(forHTTPHeaderField: "X-Xet-Hash")?
2162 |             .trimmingCharacters(in: .whitespacesAndNewlines)
     |                                      `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
2163 |         guard let fileID = rawFileID, !fileID.isEmpty else {
2164 |             return nil
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2166:53: error: cannot infer key path type from context; consider explicitly specifying a root type
2164 |             return nil
2165 |         }
2166 |         guard fileID.count == 64, fileID.allSatisfy(\.isHexDigit) else {
     |                                                     `- error: cannot infer key path type from context; consider explicitly specifying a root type
2167 |             return nil
2168 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2171:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2169 |
2170 |         let rawSize =
2171 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
     |                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2172 |             ?? ((200 ... 299).contains(httpResponse.statusCode)
2173 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length")
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2172:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
2170 |         let rawSize =
2171 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
2172 |             ?? ((200 ... 299).contains(httpResponse.statusCode)
     |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
2173 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length")
2174 |                 : nil)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2173:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2171 |             httpResponse.value(forHTTPHeaderField: "X-Linked-Size")
2172 |             ?? ((200 ... 299).contains(httpResponse.statusCode)
2173 |                 ? httpResponse.value(forHTTPHeaderField: "Content-Length")
     |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
2174 |                 : nil)
2175 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2360:43: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
2358 |             withIntermediateDirectories: true
2359 |         )
2360 |         try data.write(to: url, options: .atomic)
     |                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
2361 |     }
2362 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2639:59: error: cannot infer contextual base in reference to member 'head'
2637 |             .appending(component: revision)
2638 |             .appending(path: repoPath)
2639 |         var request = try await httpClient.createRequest(.head, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'head'
2640 |         request.cachePolicy = .reloadIgnoringLocalCacheData
2641 |
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2640:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
2638 |             .appending(path: repoPath)
2639 |         var request = try await httpClient.createRequest(.head, url: url)
2640 |         request.cachePolicy = .reloadIgnoringLocalCacheData
     |                                `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
2641 |
2642 |         #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2645:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
2643 |             let (_, response) = try await metadataSession.data(for: request)
2644 |         #else
2645 |             let (_, response) = try await session.data(for: request, delegate: SameHostRedirectDelegate.shared)
     |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
2646 |         #endif
2647 |         guard let metadata = XetFileMetadata(response: response) else {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2672:59: error: cannot infer contextual base in reference to member 'head'
2670 |     /// This captures `X-Linked-Etag` and `X-Repo-Commit` before a potential CDN redirect.
2671 |     func fetchFileMetadata(url: URL) async throws -> FileMetadata? {
2672 |         let request = try await httpClient.createRequest(.head, url: url)
     |                                                           `- error: cannot infer contextual base in reference to member 'head'
2673 |         #if canImport(FoundationNetworking)
2674 |             let (_, response) = try await metadataSession.data(for: request)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2676:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
2674 |             let (_, response) = try await metadataSession.data(for: request)
2675 |         #else
2676 |             let (_, response) = try await session.data(for: request, delegate: SameHostRedirectDelegate.shared)
     |                                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
2677 |         #endif
2678 |         guard let httpResponse = response as? HTTPURLResponse,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2716:39: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
2714 |         completionHandler: @escaping (URLRequest?) -> Void
2715 |     ) {
2716 |         guard let originalHost = task.originalRequest?.url?.host,
     |                                       `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
2717 |             let newHost = request.url?.host
2718 |         else {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:2719:31: error: 'nil' requires a contextual type
2717 |             let newHost = request.url?.host
2718 |         else {
2719 |             completionHandler(nil)
     |                               `- error: 'nil' requires a contextual type
2720 |             return
2721 |         }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1353:22: error: cannot find type 'URLRequest' in scope
1351 |     /// - Returns: The response and, for a non-2xx response, its body data.
1352 |     func hfStreamingDownload(
1353 |         for request: URLRequest,
     |                      `- error: cannot find type 'URLRequest' in scope
1354 |         progress: Progress? = nil,
1355 |         resumeOffset: Int64 = 0,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1354:19: error: cannot find type 'Progress' in scope
1352 |     func hfStreamingDownload(
1353 |         for request: URLRequest,
1354 |         progress: Progress? = nil,
     |                   `- error: cannot find type 'Progress' in scope
1355 |         resumeOffset: Int64 = 0,
1356 |         targetURL: URL,
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1417:26: error: cannot find type 'URLRequest' in scope
1415 |     extension URLSession {
1416 |         func hfAsyncDownload(
1417 |             for request: URLRequest,
     |                          `- error: cannot find type 'URLRequest' in scope
1418 |             progress: Progress? = nil,
1419 |             resumeOffset: Int64 = 0
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1418:23: error: cannot find type 'Progress' in scope
1416 |         func hfAsyncDownload(
1417 |             for request: URLRequest,
1418 |             progress: Progress? = nil,
     |                       `- error: cannot find type 'Progress' in scope
1419 |             resumeOffset: Int64 = 0
1420 |         ) async throws -> (URL, URLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift:1447:23: error: cannot find type 'Progress' in scope
1445 |         func hfAsyncDownload(
1446 |             resumeFrom resumeData: Data,
1447 |             progress: Progress? = nil
     |                       `- error: cannot find type 'Progress' in scope
1448 |         ) async throws -> (URL, URLResponse) {
1449 |             let box = DownloadTaskBox()
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm