Build Information
Failed to build RobotsTxt, reference 0.1.0 (65c747), with Swift 6.1 for Wasm on 9 Oct 2026 19:01:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build 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.1
Building package at path: $PWD
https://github.com/Xenoglyphiq/robotstxt-swift.git
https://github.com/Xenoglyphiq/robotstxt-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/29] Write sources
[8/29] Write swift-version-24593BA9C3E375BF.txt
[10/33] Compiling RobotsTxt Types.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/33] Compiling RobotsTxt Parse.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/33] Compiling RobotsTxt Match.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/33] Emitting module RobotsTxt
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/34] Wrapping AST for RobotsTxt for debugging
[16/45] Compiling check_path main.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/45] Emitting module check_path
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/46] Emitting module list_sitemaps
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/46] Compiling list_sitemaps main.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/46] Emitting module explain_decision
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/46] Compiling explain_decision main.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/48] Wrapping AST for check_path for debugging
[25/48] Write Objects.LinkFileList
[26/48] Wrapping AST for list_sitemaps for debugging
[27/48] Wrapping AST for explain_decision for debugging
[28/48] Write Objects.LinkFileList
[30/48] Linking check_path.wasm
[31/48] Linking list_sitemaps.wasm
[32/48] Linking explain_decision.wasm
error: emit-module command failed with exit code 1 (use -v to see invocation)
[34/48] Emitting module RobotsTxtIO
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[35/48] Compiling RobotsTxtIO URLSessionTransport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 | }
[36/48] Compiling robotstxt_bench main.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 robotstxt_bench
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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) }
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/21] Write swift-version-24593BA9C3E375BF.txt
[2/25] Compiling RobotsTxt Parse.swift
[3/25] Compiling RobotsTxt Types.swift
[4/25] Emitting module RobotsTxt
[5/25] Compiling RobotsTxt Match.swift
[7/36] Emitting module list_sitemaps
[8/36] Compiling list_sitemaps main.swift
[9/37] Compiling explain_decision main.swift
[10/37] Emitting module explain_decision
[11/38] Compiling RobotsTxtIO URLSessionTransport.swift
/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 | }
[12/37] Write Objects.LinkFileList
[14/37] Compiling check_path main.swift
[15/37] Emitting module check_path
[17/38] 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) }
[17/37] Write Objects.LinkFileList
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/37] 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) }
[20/36] Write Objects.LinkFileList
[21/36] Linking check_path.wasm
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/36] Emitting module RobotsTxtIO
/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
[22/36] Linking list_sitemaps.wasm
[22/36] Linking explain_decision.wasm
BUILD FAILURE 6.1 wasm