The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ReactiveSSE with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/banjun/ReactiveSSE.git
Reference: 0.4.0
Cloned https://github.com/banjun/ReactiveSSE.git into spi-builder-workspace
SUCCESS checkout https://github.com/banjun/ReactiveSSE.git at 0.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/ReactiveCocoa/ReactiveSwift
Fetching https://github.com/Quick/Quick.git
[1/13702] Fetching quick
[11374/66016] Fetching quick, reactiveswift
[22074/81762] Fetching quick, reactiveswift, nimble
Fetching https://github.com/kareman/FootlessParser
Fetched https://github.com/Quick/Quick.git (0.61s)
[25255/68060] Fetching reactiveswift, nimble
[42951/69892] Fetching reactiveswift, nimble, footlessparser
Fetched https://github.com/kareman/FootlessParser (0.39s)
[59690/68060] Fetching reactiveswift, nimble
Fetched https://github.com/Quick/Nimble.git (1.97s)
Fetched https://github.com/ReactiveCocoa/ReactiveSwift (1.98s)
Computing version for https://github.com/kareman/FootlessParser
Computed https://github.com/kareman/FootlessParser at 0.5.2 (0.92s)
Computing version for https://github.com/ReactiveCocoa/ReactiveSwift
Computed https://github.com/ReactiveCocoa/ReactiveSwift at 6.2.1 (0.29s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.0.7 (0.29s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.0 (0.31s)
Creating working copy for https://github.com/kareman/FootlessParser
Working copy of https://github.com/kareman/FootlessParser resolved at 0.5.2
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.0.7
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.0
Creating working copy for https://github.com/ReactiveCocoa/ReactiveSwift
Working copy of https://github.com/ReactiveCocoa/ReactiveSwift resolved at 6.2.1
Building for debugging...
[1/27] Emitting module FootlessParser
[2/27] Compiling FootlessParser Converters.swift
[3/27] Compiling FootlessParser Parser.swift
[4/27] Compiling FootlessParser Parser+Operators.swift
[5/27] Compiling FootlessParser Error.swift
[6/27] Compiling FootlessParser StringParser.swift
[7/27] Compiling FootlessParser Parsers.swift
[10/29] Compiling ReactiveSwift Scheduler.swift
[11/29] Compiling ReactiveSwift Signal.swift
[12/29] Compiling ReactiveSwift Property.swift
[13/29] Compiling ReactiveSwift Reactive.swift
[14/29] Compiling ReactiveSwift ResultExtensions.swift
[15/29] Compiling ReactiveSwift SignalProducer.swift
[16/29] Compiling ReactiveSwift UnidirectionalBinding.swift
[17/31] Compiling ReactiveSwift EventLogger.swift
[18/31] Compiling ReactiveSwift Flatten.swift
[19/31] Compiling ReactiveSwift FoundationExtensions.swift
[20/31] Compiling ReactiveSwift Lifetime.swift
[21/31] Compiling ReactiveSwift Observer.swift
[22/31] Compiling ReactiveSwift Optional.swift
[23/31] Compiling ReactiveSwift Action.swift
[24/31] Compiling ReactiveSwift Atomic.swift
[25/31] Compiling ReactiveSwift Bag.swift
[26/31] Emitting module ReactiveSwift
[27/31] Compiling ReactiveSwift Deprecations+Removals.swift
[28/31] Compiling ReactiveSwift Disposable.swift
[29/31] Compiling ReactiveSwift Event.swift
[30/31] Compiling ReactiveSwift UninhabitedTypeGuards.swift
[31/31] Compiling ReactiveSwift ValidatingProperty.swift
[34/40] Compiling ReactiveSSE SessionDataPipe.swift
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                         ~~~~~~~~~~ ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                     ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:17:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:17:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                     ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:25:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:25:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
                                                 ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:4:40: error: cannot find type 'URLSessionDataDelegate' in scope
final class SessionDataPipe: NSObject, URLSessionDataDelegate {
                                       ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:8:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let response = response as? HTTPURLResponse else { return completionHandler(.cancel) }
                                      ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:8:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else { return completionHandler(.cancel) }
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:8:92: error: cannot infer contextual base in reference to member 'cancel'
        guard let response = response as? HTTPURLResponse else { return completionHandler(.cancel) }
                                                                                          ~^~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:9:24: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        guard response.statusCode == 200,
              ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:10:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
            response.mimeType == "text/event-stream" else {
            ~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:11:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                pipe.input.send(error: .notSSE(statusCode: response.statusCode, mimeType: response.mimeType))
                                                           ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:11:100: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
                pipe.input.send(error: .notSSE(statusCode: response.statusCode, mimeType: response.mimeType))
                                                                                          ~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:12:43: error: cannot infer contextual base in reference to member 'cancel'
                return completionHandler(.cancel)
                                         ~^~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:14:28: error: cannot infer contextual base in reference to member 'allow'
        completionHandler(.allow)
                          ~^~~~~
[35/40] Compiling ReactiveSSE SSError.swift
[36/40] Compiling ReactiveSSE ReactiveSSE.swift
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:7:33: error: cannot find type 'URLRequest' in scope
    public init(urlRequest req: URLRequest, maxBuffer: Int? = nil) {
                                ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:13:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let configuration = URLSessionConfiguration.default
                                ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
            let session = URLSession(configuration: URLSessionConfiguration.default, delegate: delegate, delegateQueue: queue)
                          ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:31:77: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let session = URLSession(configuration: URLSessionConfiguration.default, delegate: delegate, delegateQueue: queue)
                                                    ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
[37/40] Compiling ReactiveSSE SSEvent.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[38/40] Compiling ReactiveSSE EventStream.swift
[39/40] Compiling ReactiveSSE ReactiveOperator.swift
[40/40] Emitting module ReactiveSSE
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:7:33: error: cannot find type 'URLRequest' in scope
    public init(urlRequest req: URLRequest, maxBuffer: Int? = nil) {
                                ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                         ~~~~~~~~~~ ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                     ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:17:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:17:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                     ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:25:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:25:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
                                                 ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:4:40: error: cannot find type 'URLSessionDataDelegate' in scope
final class SessionDataPipe: NSObject, URLSessionDataDelegate {
                                       ^~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1