The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RobotsTxt, reference 0.1.0 (65c747), with Swift 6.2 for Wasm on 9 Oct 2026 19:01:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-2":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Xenoglyphiq/robotstxt-swift.git
Reference: 0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/Xenoglyphiq/robotstxt-swift
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 65c747c Release 0.1.0 (#4)
Cloned https://github.com/Xenoglyphiq/robotstxt-swift.git
Revision (git rev-parse @):
65c747cbdb8570ee7246bc3df2f0fd8ed0917433
SUCCESS checkout https://github.com/Xenoglyphiq/robotstxt-swift.git at 0.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Xenoglyphiq/robotstxt-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-2":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c092ff8dc506a2a30e6239b6992792fd4f7dfaaa46cac3b3c48d8fe35e954282
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/29] Write sources
[8/29] Write swift-version-24593BA9C3E375BF.txt
[10/33] Compiling RobotsTxt Types.swift
[11/33] Compiling RobotsTxt Parse.swift
[12/33] Compiling RobotsTxt Match.swift
[13/33] Emitting module RobotsTxt
[15/40] Emitting module explain_decision
[15/42] Wrapping AST for RobotsTxt for debugging
[17/42] Emitting module check_path
[18/42] Compiling explain_decision main.swift
[20/46] Compiling list_sitemaps main.swift
[21/46] Emitting module list_sitemaps
[22/47] Compiling check_path main.swift
[22/47] Wrapping AST for explain_decision for debugging
[23/48] Write Objects.LinkFileList
[26/48] Wrapping AST for list_sitemaps for debugging
[27/48] Write Objects.LinkFileList
[28/48] Wrapping AST for check_path for debugging
[29/48] Write Objects.LinkFileList
[30/48] Linking explain_decision.wasm
[31/48] Linking list_sitemaps.wasm
[32/48] Linking check_path.wasm
[34/48] Compiling RobotsTxtIO URLSessionTransport.swift
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:24:59: error: value of type '_' expected to be instance of class or class-constrained type
 22 |     ///   - configuration: copied by `URLSession`; the default is `.ephemeral`.
 23 |     ///   - userAgent: sent as the `User-Agent` header when set.
 24 |     public init(configuration: URLSessionConfiguration = .ephemeral, userAgent: String? = nil) {
    |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 25 |         delegate = Delegate()
 26 |         session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:24:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 22 |     ///   - configuration: copied by `URLSession`; the default is `.ephemeral`.
 23 |     ///   - userAgent: sent as the `User-Agent` header when set.
 24 |     public init(configuration: URLSessionConfiguration = .ephemeral, userAgent: String? = nil) {
    |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 25 |         delegate = Delegate()
 26 |         session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     public static let shared = URLSessionTransport()
 16 |
 17 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private let delegate: Delegate
 19 |     private let userAgent: String?
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/Sources/RobotsTxtIO/URLSessionTransport.swift:24:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     ///   - configuration: copied by `URLSession`; the default is `.ephemeral`.
 23 |     ///   - userAgent: sent as the `User-Agent` header when set.
 24 |     public init(configuration: URLSessionConfiguration = .ephemeral, userAgent: String? = nil) {
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         delegate = Delegate()
 26 |         session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:56:41: error: cannot find type 'URLSessionDataDelegate' in scope
 54 |
 55 | /// Per-task state, kept under a lock: delegate callbacks arrive on URLSession's queue.
 56 | private final class Delegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
    |                                         `- error: cannot find type 'URLSessionDataDelegate' in scope
 57 |     private struct State {
 58 |         let limit: Int
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:60:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         let limit: Int
 59 |         let continuation: CheckedContinuation<TransportResponse?, Never>
 60 |         var response: HTTPURLResponse?
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |         var body: [UInt8] = []
 62 |     }
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/Sources/RobotsTxtIO/URLSessionTransport.swift:67:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     private var states: [Int: State] = [:]
 66 |
 67 |     func start(_ task: URLSessionDataTask, limit: Int, _ continuation: CheckedContinuation<TransportResponse?, Never>) {
    |                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         lock.lock()
 69 |         states[task.taskIdentifier] = State(limit: limit, continuation: continuation)
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/Sources/RobotsTxtIO/URLSessionTransport.swift:75:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |     /// Removes the task's state and resumes its continuation exactly once.
 75 |     private func finish(_ task: URLSessionTask, failed: Bool) {
    |                                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         lock.lock()
 77 |         let state = states.removeValue(forKey: task.taskIdentifier)
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/Sources/RobotsTxtIO/URLSessionTransport.swift:91:29: error: cannot find type 'URLRequest' in scope
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
    |                             `- error: cannot find type 'URLRequest' in scope
 92 |     ) {
 93 |         // Don't follow: the 3xx response itself completes the task.
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:91:81: error: cannot find type 'URLRequest' in scope
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
 92 |     ) {
 93 |         // Don't follow: the 3xx response itself completes the task.
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:90:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
 92 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:90:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
 92 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:90:91: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
 92 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:99:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 97 |     func urlSession(
 98 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
 99 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
    |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
100 |     ) {
101 |         lock.lock()
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:98:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |     func urlSession(
 98 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
100 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:98:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |     func urlSession(
 98 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
100 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:98:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |     func urlSession(
 98 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
    |                                                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
100 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:107:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |     }
106 |
107 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |         lock.lock()
109 |         var full = 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/Sources/RobotsTxtIO/URLSessionTransport.swift:107:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |     }
106 |
107 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |         lock.lock()
109 |         var full = false
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/Sources/RobotsTxtIO/URLSessionTransport.swift:123:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |     }
122 |
123 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         finish(task, failed: error != nil)
125 |     }
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/Sources/RobotsTxtIO/URLSessionTransport.swift:123:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |     }
122 |
123 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         finish(task, failed: error != nil)
125 |     }
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/Sources/RobotsTxtIO/URLSessionTransport.swift:26:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 24 |     public init(configuration: URLSessionConfiguration = .ephemeral, userAgent: String? = nil) {
 25 |         delegate = Delegate()
 26 |         session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 27 |         self.userAgent = userAgent
 28 |     }
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:26:95: error: 'nil' requires a contextual type
 24 |     public init(configuration: URLSessionConfiguration = .ephemeral, userAgent: String? = nil) {
 25 |         delegate = Delegate()
 26 |         session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                               `- error: 'nil' requires a contextual type
 27 |         self.userAgent = userAgent
 28 |     }
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:30:22: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 28 |     }
 29 |
 30 |     deinit { session.invalidateAndCancel() }
    |                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 31 |
 32 |     public func get(_ url: URL, maxBodyBytes: Int) async -> TransportResponse? {
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:33:23: error: cannot find 'URLRequest' in scope
 31 |
 32 |     public func get(_ url: URL, maxBodyBytes: Int) async -> TransportResponse? {
 33 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 34 |         // The bytes as stored: robots.txt is small, and a decoded gzip body would
 35 |         // make the byte limit count something else.
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:38:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 36 |         request.setValue("identity", forHTTPHeaderField: "Accept-Encoding")
 37 |         if let userAgent { request.setValue(userAgent, forHTTPHeaderField: "User-Agent") }
 38 |         let task = Box(session.dataTask(with: request))
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 39 |         return await withTaskCancellationHandler {
 40 |             await withCheckedContinuation { (continuation: CheckedContinuation<TransportResponse?, Never>) in
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:69:21: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
 67 |     func start(_ task: URLSessionDataTask, limit: Int, _ continuation: CheckedContinuation<TransportResponse?, Never>) {
 68 |         lock.lock()
 69 |         states[task.taskIdentifier] = State(limit: limit, continuation: continuation)
    |                     `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
 70 |         lock.unlock()
 71 |         task.resume()
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:71:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
 69 |         states[task.taskIdentifier] = State(limit: limit, continuation: continuation)
 70 |         lock.unlock()
 71 |         task.resume()
    |              `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
 72 |     }
 73 |
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:77:53: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 75 |     private func finish(_ task: URLSessionTask, failed: Bool) {
 76 |         lock.lock()
 77 |         let state = states.removeValue(forKey: task.taskIdentifier)
    |                                                     `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
 78 |         lock.unlock()
 79 |         guard let state else { return }
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:81:50: error: 'nil' requires a contextual type
 79 |         guard let state else { return }
 80 |         guard !failed, let http = state.response else {
 81 |             state.continuation.resume(returning: nil)
    |                                                  `- error: 'nil' requires a contextual type
 82 |             return
 83 |         }
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:94:27: error: 'nil' requires a contextual type
 92 |     ) {
 93 |         // Don't follow: the 3xx response itself completes the task.
 94 |         completionHandler(nil)
    |                           `- error: 'nil' requires a contextual type
 95 |     }
 96 |
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:102:25: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
100 |     ) {
101 |         lock.lock()
102 |         states[dataTask.taskIdentifier]?.response = response as? HTTPURLResponse
    |                         `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
103 |         lock.unlock()
104 |         completionHandler(.allow)
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:102:62: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
100 |     ) {
101 |         lock.lock()
102 |         states[dataTask.taskIdentifier]?.response = response as? HTTPURLResponse
    |                                                              `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
103 |         lock.unlock()
104 |         completionHandler(.allow)
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:104:28: error: cannot infer contextual base in reference to member 'allow'
102 |         states[dataTask.taskIdentifier]?.response = response as? HTTPURLResponse
103 |         lock.unlock()
104 |         completionHandler(.allow)
    |                            `- error: cannot infer contextual base in reference to member 'allow'
105 |     }
106 |
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:110:27: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
108 |         lock.lock()
109 |         var full = false
110 |         let id = dataTask.taskIdentifier
    |                           `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
111 |         if let limit = states[id]?.limit, let count = states[id]?.body.count {
112 |             states[id]!.body.append(contentsOf: data.prefix(limit - count))  // in place, no copy
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:112:67: error: cannot convert value of type 'Duration' to expected argument type 'Int'
110 |         let id = dataTask.taskIdentifier
111 |         if let limit = states[id]?.limit, let count = states[id]?.body.count {
112 |             states[id]!.body.append(contentsOf: data.prefix(limit - count))  // in place, no copy
    |                                                                   `- error: cannot convert value of type 'Duration' to expected argument type 'Int'
113 |             full = count + data.count >= limit
114 |         }
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:119:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
117 |             // Enough bytes: answer now and stop the download.
118 |             finish(dataTask, failed: false)
119 |             dataTask.cancel()
    |                      `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
120 |         }
121 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[35/48] Emitting module robotstxt_bench
/host/spi-builder-workspace/Sources/robotstxt-bench/main.swift:33:17: error: cannot find 'DispatchTime' in scope
31 | var ms = [Double]()
32 | for run in 0..<18 {
33 |     let start = DispatchTime.now().uptimeNanoseconds
   |                 `- error: cannot find 'DispatchTime' in scope
34 |     var sum = 0
35 |     for block in blocks {
/host/spi-builder-workspace/Sources/robotstxt-bench/main.swift:41:26: error: cannot find 'DispatchTime' in scope
39 |         }
40 |     }
41 |     let elapsed = Double(DispatchTime.now().uptimeNanoseconds - start) / 1e6
   |                          `- error: cannot find 'DispatchTime' in scope
42 |     precondition(sum == checksum, "checksum \(sum) != \(checksum): wrong answers")
43 |     if run >= 3 { ms.append(elapsed) }
[36/48] Compiling robotstxt_bench main.swift
/host/spi-builder-workspace/Sources/robotstxt-bench/main.swift:33:17: error: cannot find 'DispatchTime' in scope
31 | var ms = [Double]()
32 | for run in 0..<18 {
33 |     let start = DispatchTime.now().uptimeNanoseconds
   |                 `- error: cannot find 'DispatchTime' in scope
34 |     var sum = 0
35 |     for block in blocks {
/host/spi-builder-workspace/Sources/robotstxt-bench/main.swift:41:26: error: cannot find 'DispatchTime' in scope
39 |         }
40 |     }
41 |     let elapsed = Double(DispatchTime.now().uptimeNanoseconds - start) / 1e6
   |                          `- error: cannot find 'DispatchTime' in scope
42 |     precondition(sum == checksum, "checksum \(sum) != \(checksum): wrong answers")
43 |     if run >= 3 { ms.append(elapsed) }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[37/48] Emitting module RobotsTxtIO
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:24:59: error: value of type '_' expected to be instance of class or class-constrained type
 22 |     ///   - configuration: copied by `URLSession`; the default is `.ephemeral`.
 23 |     ///   - userAgent: sent as the `User-Agent` header when set.
 24 |     public init(configuration: URLSessionConfiguration = .ephemeral, userAgent: String? = nil) {
    |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 25 |         delegate = Delegate()
 26 |         session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:24:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 22 |     ///   - configuration: copied by `URLSession`; the default is `.ephemeral`.
 23 |     ///   - userAgent: sent as the `User-Agent` header when set.
 24 |     public init(configuration: URLSessionConfiguration = .ephemeral, userAgent: String? = nil) {
    |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 25 |         delegate = Delegate()
 26 |         session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     public static let shared = URLSessionTransport()
 16 |
 17 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private let delegate: Delegate
 19 |     private let userAgent: String?
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/Sources/RobotsTxtIO/URLSessionTransport.swift:24:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     ///   - configuration: copied by `URLSession`; the default is `.ephemeral`.
 23 |     ///   - userAgent: sent as the `User-Agent` header when set.
 24 |     public init(configuration: URLSessionConfiguration = .ephemeral, userAgent: String? = nil) {
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         delegate = Delegate()
 26 |         session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:56:41: error: cannot find type 'URLSessionDataDelegate' in scope
 54 |
 55 | /// Per-task state, kept under a lock: delegate callbacks arrive on URLSession's queue.
 56 | private final class Delegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
    |                                         `- error: cannot find type 'URLSessionDataDelegate' in scope
 57 |     private struct State {
 58 |         let limit: Int
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:60:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         let limit: Int
 59 |         let continuation: CheckedContinuation<TransportResponse?, Never>
 60 |         var response: HTTPURLResponse?
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |         var body: [UInt8] = []
 62 |     }
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/Sources/RobotsTxtIO/URLSessionTransport.swift:67:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     private var states: [Int: State] = [:]
 66 |
 67 |     func start(_ task: URLSessionDataTask, limit: Int, _ continuation: CheckedContinuation<TransportResponse?, Never>) {
    |                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         lock.lock()
 69 |         states[task.taskIdentifier] = State(limit: limit, continuation: continuation)
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/Sources/RobotsTxtIO/URLSessionTransport.swift:75:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |     /// Removes the task's state and resumes its continuation exactly once.
 75 |     private func finish(_ task: URLSessionTask, failed: Bool) {
    |                                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         lock.lock()
 77 |         let state = states.removeValue(forKey: task.taskIdentifier)
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/Sources/RobotsTxtIO/URLSessionTransport.swift:91:29: error: cannot find type 'URLRequest' in scope
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
    |                             `- error: cannot find type 'URLRequest' in scope
 92 |     ) {
 93 |         // Don't follow: the 3xx response itself completes the task.
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:91:81: error: cannot find type 'URLRequest' in scope
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
 92 |     ) {
 93 |         // Don't follow: the 3xx response itself completes the task.
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:90:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
 92 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:90:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
 92 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:90:91: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         newRequest request: URLRequest, completionHandler: @Sendable @escaping (URLRequest?) -> Void
 92 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:99:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 97 |     func urlSession(
 98 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
 99 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
    |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
100 |     ) {
101 |         lock.lock()
/host/spi-builder-workspace/Sources/RobotsTxtIO/URLSessionTransport.swift:98:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |     func urlSession(
 98 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
100 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:98:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |     func urlSession(
 98 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
100 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:98:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |     func urlSession(
 98 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
    |                                                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
100 |     ) {
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/Sources/RobotsTxtIO/URLSessionTransport.swift:107:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |     }
106 |
107 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |         lock.lock()
109 |         var full = 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/Sources/RobotsTxtIO/URLSessionTransport.swift:107:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |     }
106 |
107 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |         lock.lock()
109 |         var full = false
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/Sources/RobotsTxtIO/URLSessionTransport.swift:123:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |     }
122 |
123 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         finish(task, failed: error != nil)
125 |     }
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/Sources/RobotsTxtIO/URLSessionTransport.swift:123:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |     }
122 |
123 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         finish(task, failed: error != nil)
125 |     }
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
BUILD FAILURE 6.2 wasm