The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build OpenAI, reference main (01c08e), with Swift 6.1 for Wasm on 2 Sep 2025 12:45:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/OpenAI.git
Reference: main
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/Recouse/OpenAI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 01c08ef Add more response types
Cloned https://github.com/Recouse/OpenAI.git
Revision (git rev-parse @):
01c08efdd5bc3ac48b40ae3a877800056aacfb82
SUCCESS checkout https://github.com/Recouse/OpenAI.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Recouse/OpenAI.git
https://github.com/Recouse/OpenAI.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.1.0 but the installed version is 6.0.2
error: fatalError
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Recouse/EventSource.git
Fetching https://github.com/mattt/JSONSchema.git
Fetching https://github.com/apple/swift-log.git
[1/760] Fetching eventsource
[670/952] Fetching eventsource, jsonschema
[953/4855] Fetching eventsource, jsonschema, swift-log
Fetched https://github.com/Recouse/EventSource.git from cache (0.32s)
[1012/4095] Fetching jsonschema, swift-log
Fetched https://github.com/mattt/JSONSchema.git from cache (0.33s)
[1054/3903] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (1.01s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.1.5 (1.07s)
Computing version for https://github.com/mattt/JSONSchema.git
Computed https://github.com/mattt/JSONSchema.git at 1.3.1 (0.68s)
Fetching https://github.com/apple/swift-collections.git
[1/17394] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.54s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (2.24s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.1
Creating working copy for https://github.com/mattt/JSONSchema.git
Working copy of https://github.com/mattt/JSONSchema.git resolved at 1.3.1
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.1.5
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.4
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/35] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[9/35] Compiling InternalCollectionsUtilities UInt+reversed.swift
[10/35] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[11/35] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[12/35] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[13/36] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[14/36] Compiling InternalCollectionsUtilities Debugging.swift
[15/36] Compiling InternalCollectionsUtilities Descriptions.swift
[16/36] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[17/36] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[18/36] Compiling InternalCollectionsUtilities _SortedCollection.swift
[19/36] Compiling EventSource Extensions.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/37] Compiling Logging Locks.swift
[21/37] Compiling Logging LogHandler.swift
[22/37] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[23/37] Compiling InternalCollectionsUtilities Integer rank.swift
[24/37] Emitting module InternalCollectionsUtilities
[25/37] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[27/38] Compiling Logging Logging.swift
[28/38] Emitting module Logging
[29/38] Compiling Logging MetadataProvider.swift
[31/94] Compiling EventSource SessionDelegate.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/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
   |                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |                                                                    `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 |         case didReceiveData(Data)
19 |     }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         case didReceiveData(Data)
19 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |              `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 |         case didReceiveData(Data)
19 |     }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |     func urlSession(
26 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         task: URLSessionTask,
28 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     func urlSession(
26 |         _ session: URLSession,
27 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didCompleteWithError error: Error?
29 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
   |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 |     ) {
39 |         internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 |     func urlSession(
34 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     func urlSession(
34 |         _ session: URLSession,
35 |         dataTask: URLSessionDataTask,
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         didReceive response: URLResponse,
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |         _ session: URLSession,
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 |     ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |     func urlSession(
43 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         dataTask: URLSessionDataTask,
45 |         didReceive data: Data
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     func urlSession(
43 |         _ session: URLSession,
44 |         dataTask: URLSessionDataTask,
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         didReceive data: Data
46 |     ) {
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
[32/94] Compiling EventSource Headers.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/94] Compiling OrderedCollections _HashTable+Bucket.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
[34/94] Compiling OrderedCollections _HashTable+BucketIterator.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
[35/94] Emitting module EventSource
<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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:61:42: error: cannot find type 'URLRequest' in scope
 59 |     }
 60 |
 61 |     public func dataTask(for urlRequest: URLRequest) -> DataTask {
    |                                          `- error: cannot find type 'URLRequest' in scope
 62 |         DataTask(
 63 |             urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:104:32: error: cannot find type 'URLRequest' in scope
102 |
103 |         /// A URLRequest of the events source.
104 |         public let urlRequest: URLRequest
    |                                `- error: cannot find type 'URLRequest' in scope
105 |
106 |         private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:141:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 |         }
140 |
141 |         private var urlSessionConfiguration: URLSessionConfiguration {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 |             let configuration = URLSessionConfiguration.default
143 |             configuration.httpAdditionalHeaders = [
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:154:25: error: cannot find type 'URLRequest' in scope
152 |
153 |         internal init(
154 |             urlRequest: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
155 |             eventParser: EventParser,
156 |             timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |             _ error: Error?,
223 |             stream continuation: AsyncStream<EventType>.Continuation,
224 |             urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |         ) {
226 |             guard readyState != .closed else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:244:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
244 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
    |                                                      `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
245 |         ) {
246 |             guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:241:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |
240 |         private func handleSessionResponse(
241 |             _ response: URLResponse,
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:243:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |             _ response: URLResponse,
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
245 |         ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:277:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |         /// and sets the `readyState` property to `.closed`.
276 |         /// - Returns: State before closing.
277 |         private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
    |                                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |             let previousState = self.readyState
279 |             if previousState != .closed {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:289:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 |             from data: Data,
288 |             stream continuation: AsyncStream<EventType>.Continuation,
289 |             urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 |         ) {
291 |             if let httpResponseErrorStatusCode {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:328:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 |         /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
327 |         /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
328 |         public func cancel(urlSession: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |             readyState = .closed
330 |             lastMessageId = ""
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
   |                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |                                                                    `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 |         case didReceiveData(Data)
19 |     }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         case didReceiveData(Data)
19 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |              `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 |         case didReceiveData(Data)
19 |     }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |     func urlSession(
26 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         task: URLSessionTask,
28 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     func urlSession(
26 |         _ session: URLSession,
27 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didCompleteWithError error: Error?
29 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
   |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 |     ) {
39 |         internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 |     func urlSession(
34 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     func urlSession(
34 |         _ session: URLSession,
35 |         dataTask: URLSessionDataTask,
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         didReceive response: URLResponse,
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |         _ session: URLSession,
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 |     ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |     func urlSession(
43 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         dataTask: URLSessionDataTask,
45 |         didReceive data: Data
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     func urlSession(
43 |         _ session: URLSession,
44 |         dataTask: URLSessionDataTask,
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         didReceive data: Data
46 |     ) {
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
[36/94] Compiling EventSource Mutex.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
[37/94] Compiling EventSource ServerEvent.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
[38/94] Compiling EventSource EventSourceError.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
[39/94] Compiling EventSource EventSource.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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:61:42: error: cannot find type 'URLRequest' in scope
 59 |     }
 60 |
 61 |     public func dataTask(for urlRequest: URLRequest) -> DataTask {
    |                                          `- error: cannot find type 'URLRequest' in scope
 62 |         DataTask(
 63 |             urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:104:32: error: cannot find type 'URLRequest' in scope
102 |
103 |         /// A URLRequest of the events source.
104 |         public let urlRequest: URLRequest
    |                                `- error: cannot find type 'URLRequest' in scope
105 |
106 |         private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:141:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 |         }
140 |
141 |         private var urlSessionConfiguration: URLSessionConfiguration {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 |             let configuration = URLSessionConfiguration.default
143 |             configuration.httpAdditionalHeaders = [
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:154:25: error: cannot find type 'URLRequest' in scope
152 |
153 |         internal init(
154 |             urlRequest: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
155 |             eventParser: EventParser,
156 |             timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |             _ error: Error?,
223 |             stream continuation: AsyncStream<EventType>.Continuation,
224 |             urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |         ) {
226 |             guard readyState != .closed else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:244:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
244 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
    |                                                      `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
245 |         ) {
246 |             guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:241:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |
240 |         private func handleSessionResponse(
241 |             _ response: URLResponse,
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:243:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |             _ response: URLResponse,
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
245 |         ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:277:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |         /// and sets the `readyState` property to `.closed`.
276 |         /// - Returns: State before closing.
277 |         private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
    |                                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |             let previousState = self.readyState
279 |             if previousState != .closed {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:289:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 |             from data: Data,
288 |             stream continuation: AsyncStream<EventType>.Continuation,
289 |             urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 |         ) {
291 |             if let httpResponseErrorStatusCode {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:328:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 |         /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
327 |         /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
328 |         public func cancel(urlSession: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |             readyState = .closed
330 |             lastMessageId = ""
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:142:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
140 |
141 |         private var urlSessionConfiguration: URLSessionConfiguration {
142 |             let configuration = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
143 |             configuration.httpAdditionalHeaders = [
144 |                 HTTPHeaderField.accept: Accept.eventStream,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:174:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
172 |             return AsyncStream { continuation in
173 |                 let sessionDelegate = SessionDelegate()
174 |                 let urlSession = URLSession(
    |                                  `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
175 |                     configuration: urlSessionConfiguration,
176 |                     delegate: sessionDelegate,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:177:36: error: 'nil' requires a contextual type
175 |                     configuration: urlSessionConfiguration,
176 |                     delegate: sessionDelegate,
177 |                     delegateQueue: nil
    |                                    `- error: 'nil' requires a contextual type
178 |                 )
179 |                 let urlSessionDataTask = urlSession.dataTask(with: urlRequest)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:247:36: error: cannot infer contextual base in reference to member 'cancel'
245 |         ) {
246 |             guard readyState != .closed else {
247 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
248 |                 return
249 |             }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:251:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |             }
250 |
251 |             guard let httpResponse = response as? HTTPURLResponse else {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |                 completionHandler(.cancel)
253 |                 return
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:252:36: error: cannot infer contextual base in reference to member 'cancel'
250 |
251 |             guard let httpResponse = response as? HTTPURLResponse else {
252 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
253 |                 return
254 |             }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:257:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
255 |
256 |             // Stop connection when 204 response code, otherwise keep open
257 |             guard httpResponse.statusCode != 204 else {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
258 |                 completionHandler(.cancel)
259 |                 close(stream: continuation, urlSession: urlSession)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:258:36: error: cannot infer contextual base in reference to member 'cancel'
256 |             // Stop connection when 204 response code, otherwise keep open
257 |             guard httpResponse.statusCode != 204 else {
258 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
259 |                 close(stream: continuation, urlSession: urlSession)
260 |                 return
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:263:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
261 |             }
262 |
263 |             if 200...299 ~= httpResponse.statusCode {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
264 |                 if readyState != .open {
265 |                     setOpen(stream: continuation)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:268:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
266 |                 }
267 |             } else {
268 |                 httpResponseErrorStatusCode = httpResponse.statusCode
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
269 |             }
270 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:271:32: error: cannot infer contextual base in reference to member 'allow'
269 |             }
270 |
271 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
272 |         }
273 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:331:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
329 |             readyState = .closed
330 |             lastMessageId = ""
331 |             urlSession.invalidateAndCancel()
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
332 |         }
333 |     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/29] Emitting module EventSource
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:61:42: error: cannot find type 'URLRequest' in scope
 59 |     }
 60 |
 61 |     public func dataTask(for urlRequest: URLRequest) -> DataTask {
    |                                          `- error: cannot find type 'URLRequest' in scope
 62 |         DataTask(
 63 |             urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:104:32: error: cannot find type 'URLRequest' in scope
102 |
103 |         /// A URLRequest of the events source.
104 |         public let urlRequest: URLRequest
    |                                `- error: cannot find type 'URLRequest' in scope
105 |
106 |         private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:141:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 |         }
140 |
141 |         private var urlSessionConfiguration: URLSessionConfiguration {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 |             let configuration = URLSessionConfiguration.default
143 |             configuration.httpAdditionalHeaders = [
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:154:25: error: cannot find type 'URLRequest' in scope
152 |
153 |         internal init(
154 |             urlRequest: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
155 |             eventParser: EventParser,
156 |             timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |             _ error: Error?,
223 |             stream continuation: AsyncStream<EventType>.Continuation,
224 |             urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |         ) {
226 |             guard readyState != .closed else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:244:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
244 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
    |                                                      `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
245 |         ) {
246 |             guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:241:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |
240 |         private func handleSessionResponse(
241 |             _ response: URLResponse,
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:243:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |             _ response: URLResponse,
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
245 |         ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:277:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |         /// and sets the `readyState` property to `.closed`.
276 |         /// - Returns: State before closing.
277 |         private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
    |                                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |             let previousState = self.readyState
279 |             if previousState != .closed {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:289:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 |             from data: Data,
288 |             stream continuation: AsyncStream<EventType>.Continuation,
289 |             urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 |         ) {
291 |             if let httpResponseErrorStatusCode {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:328:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 |         /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
327 |         /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
328 |         public func cancel(urlSession: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |             readyState = .closed
330 |             lastMessageId = ""
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
   |                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |                                                                    `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 |         case didReceiveData(Data)
19 |     }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         case didReceiveData(Data)
19 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |              `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 |         case didReceiveData(Data)
19 |     }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |     func urlSession(
26 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         task: URLSessionTask,
28 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     func urlSession(
26 |         _ session: URLSession,
27 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didCompleteWithError error: Error?
29 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
   |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 |     ) {
39 |         internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 |     func urlSession(
34 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     func urlSession(
34 |         _ session: URLSession,
35 |         dataTask: URLSessionDataTask,
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         didReceive response: URLResponse,
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |         _ session: URLSession,
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 |     ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |     func urlSession(
43 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         dataTask: URLSessionDataTask,
45 |         didReceive data: Data
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     func urlSession(
43 |         _ session: URLSession,
44 |         dataTask: URLSessionDataTask,
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         didReceive data: Data
46 |     ) {
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
[3/30] Compiling EventSource EventSourceError.swift
[4/30] Compiling EventSource Extensions.swift
[5/30] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[6/30] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[7/30] Compiling InternalCollectionsUtilities Debugging.swift
[8/30] Compiling InternalCollectionsUtilities Descriptions.swift
[9/30] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[10/31] Compiling EventSource SessionDelegate.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
   |                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |                                                                    `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 |         case didReceiveData(Data)
19 |     }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         case didReceiveData(Data)
19 |     }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 |     enum Event: Sendable {
16 |         case didCompleteWithError(Error?)
17 |         case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
   |              `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 |         case didReceiveData(Data)
19 |     }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |     func urlSession(
26 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         task: URLSessionTask,
28 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     func urlSession(
26 |         _ session: URLSession,
27 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         didCompleteWithError error: Error?
29 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
   |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 |     ) {
39 |         internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 |     func urlSession(
34 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     func urlSession(
34 |         _ session: URLSession,
35 |         dataTask: URLSessionDataTask,
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         didReceive response: URLResponse,
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |         _ session: URLSession,
35 |         dataTask: URLSessionDataTask,
36 |         didReceive response: URLResponse,
   |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 |     ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |     func urlSession(
43 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         dataTask: URLSessionDataTask,
45 |         didReceive data: Data
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     func urlSession(
43 |         _ session: URLSession,
44 |         dataTask: URLSessionDataTask,
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         didReceive data: Data
46 |     ) {
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
[11/31] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:61:42: error: cannot find type 'URLRequest' in scope
 59 |     }
 60 |
 61 |     public func dataTask(for urlRequest: URLRequest) -> DataTask {
    |                                          `- error: cannot find type 'URLRequest' in scope
 62 |         DataTask(
 63 |             urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:104:32: error: cannot find type 'URLRequest' in scope
102 |
103 |         /// A URLRequest of the events source.
104 |         public let urlRequest: URLRequest
    |                                `- error: cannot find type 'URLRequest' in scope
105 |
106 |         private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:141:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 |         }
140 |
141 |         private var urlSessionConfiguration: URLSessionConfiguration {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 |             let configuration = URLSessionConfiguration.default
143 |             configuration.httpAdditionalHeaders = [
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:154:25: error: cannot find type 'URLRequest' in scope
152 |
153 |         internal init(
154 |             urlRequest: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
155 |             eventParser: EventParser,
156 |             timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |             _ error: Error?,
223 |             stream continuation: AsyncStream<EventType>.Continuation,
224 |             urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |         ) {
226 |             guard readyState != .closed else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:244:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
244 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
    |                                                      `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
245 |         ) {
246 |             guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:241:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |
240 |         private func handleSessionResponse(
241 |             _ response: URLResponse,
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:243:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |             _ response: URLResponse,
242 |             stream continuation: AsyncStream<EventType>.Continuation,
243 |             urlSession: URLSession,
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
245 |         ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:277:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |         /// and sets the `readyState` property to `.closed`.
276 |         /// - Returns: State before closing.
277 |         private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
    |                                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |             let previousState = self.readyState
279 |             if previousState != .closed {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:289:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 |             from data: Data,
288 |             stream continuation: AsyncStream<EventType>.Continuation,
289 |             urlSession: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 |         ) {
291 |             if let httpResponseErrorStatusCode {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:328:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 |         /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
327 |         /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
328 |         public func cancel(urlSession: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |             readyState = .closed
330 |             lastMessageId = ""
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:142:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
140 |
141 |         private var urlSessionConfiguration: URLSessionConfiguration {
142 |             let configuration = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
143 |             configuration.httpAdditionalHeaders = [
144 |                 HTTPHeaderField.accept: Accept.eventStream,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:174:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
172 |             return AsyncStream { continuation in
173 |                 let sessionDelegate = SessionDelegate()
174 |                 let urlSession = URLSession(
    |                                  `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
175 |                     configuration: urlSessionConfiguration,
176 |                     delegate: sessionDelegate,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:177:36: error: 'nil' requires a contextual type
175 |                     configuration: urlSessionConfiguration,
176 |                     delegate: sessionDelegate,
177 |                     delegateQueue: nil
    |                                    `- error: 'nil' requires a contextual type
178 |                 )
179 |                 let urlSessionDataTask = urlSession.dataTask(with: urlRequest)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:247:36: error: cannot infer contextual base in reference to member 'cancel'
245 |         ) {
246 |             guard readyState != .closed else {
247 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
248 |                 return
249 |             }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:251:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |             }
250 |
251 |             guard let httpResponse = response as? HTTPURLResponse else {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |                 completionHandler(.cancel)
253 |                 return
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:252:36: error: cannot infer contextual base in reference to member 'cancel'
250 |
251 |             guard let httpResponse = response as? HTTPURLResponse else {
252 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
253 |                 return
254 |             }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:257:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
255 |
256 |             // Stop connection when 204 response code, otherwise keep open
257 |             guard httpResponse.statusCode != 204 else {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
258 |                 completionHandler(.cancel)
259 |                 close(stream: continuation, urlSession: urlSession)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:258:36: error: cannot infer contextual base in reference to member 'cancel'
256 |             // Stop connection when 204 response code, otherwise keep open
257 |             guard httpResponse.statusCode != 204 else {
258 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
259 |                 close(stream: continuation, urlSession: urlSession)
260 |                 return
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:263:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
261 |             }
262 |
263 |             if 200...299 ~= httpResponse.statusCode {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
264 |                 if readyState != .open {
265 |                     setOpen(stream: continuation)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:268:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
266 |                 }
267 |             } else {
268 |                 httpResponseErrorStatusCode = httpResponse.statusCode
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
269 |             }
270 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:271:32: error: cannot infer contextual base in reference to member 'allow'
269 |             }
270 |
271 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
272 |         }
273 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:331:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
329 |             readyState = .closed
330 |             lastMessageId = ""
331 |             urlSession.invalidateAndCancel()
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
332 |         }
333 |     }
[12/31] Compiling EventSource Headers.swift
[13/31] Compiling EventSource Mutex.swift
[14/31] Compiling EventSource ServerEvent.swift
[15/31] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[16/31] Compiling InternalCollectionsUtilities Integer rank.swift
[17/31] Emitting module InternalCollectionsUtilities
[18/31] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[19/31] Compiling InternalCollectionsUtilities _SortedCollection.swift
[22/31] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[23/31] Compiling InternalCollectionsUtilities UInt+reversed.swift
[24/31] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[25/31] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[26/31] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[27/32] Compiling Logging LogHandler.swift
[28/32] Compiling Logging Locks.swift
[29/32] Emitting module Logging
[30/32] Compiling Logging MetadataProvider.swift
BUILD FAILURE 6.1 wasm