The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftQuests with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/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/Ast3r10n/swiftquests.git
Reference: 0.4.0
Cloned https://github.com/Ast3r10n/swiftquests.git into spi-builder-workspace
SUCCESS checkout https://github.com/Ast3r10n/swiftquests.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-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/5] Compiling SwiftQuests Request.swift
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:20:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias Response = (data: Data?, urlResponse: URLResponse?)
                                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:69:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public let credential: URLCredential?
                           ^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:74:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    public var session = URLSession(configuration: .ephemeral)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:74:53: error: cannot infer contextual base in reference to member 'ephemeral'
    public var session = URLSession(configuration: .ephemeral)
                                                   ~^~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:77:28: error: cannot find type 'URLRequest' in scope
    public var urlRequest: URLRequest!
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:102:35: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                using credential: URLCredential? = nil,
                                  ^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:103:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                onSession session: URLSession? = nil,
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:183:84: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func perform<T: Decodable>(decoding object: T.Type) async throws -> (T, URLResponse?) {
                                                                                   ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:204:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            _ result: Result<(T, URLResponse?), Error>) throws -> Void) {
                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:231:38: error: cannot find type 'URLRequest' in scope
    private func prepare() throws -> URLRequest {
                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:129:34: error: type 'URLCredentialStorage' (aka 'AnyObject') has no member 'shared'
            URLCredentialStorage.shared.set(
            ~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:135:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if let statusCode = (response.1 as? HTTPURLResponse)?.statusCode,
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:158:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            if let statusCode = (response as? HTTPURLResponse)?.statusCode,
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:169:34: error: type 'URLCredentialStorage' (aka 'AnyObject') has no member 'shared'
            URLCredentialStorage.shared.set(
            ~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:238:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
[2/5] Compiling SwiftQuests RequestConfigurationHolder.swift
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:78:37: error: cannot find 'NSURLAuthenticationMethodDefault' in scope
    open var authenticationMethod = NSURLAuthenticationMethodDefault
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    open var defaultURLSession = URLSession(configuration: .ephemeral)
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:61: error: cannot infer contextual base in reference to member 'ephemeral'
    open var defaultURLSession = URLSession(configuration: .ephemeral)
                                                           ~^~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling SwiftQuests NetworkError.swift
[4/5] Emitting module SwiftQuests
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:34:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var defaultURLSession: URLSession { get }
                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:40:26: error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var protectionSpace: URLProtectionSpace {
                         ^~~~~~~~~~~~~~~~~~
Foundation.URLProtectionSpace:2:18: note: 'URLProtectionSpace' has been explicitly marked unavailable here
public typealias URLProtectionSpace = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:78:37: error: cannot find 'NSURLAuthenticationMethodDefault' in scope
    open var authenticationMethod = NSURLAuthenticationMethodDefault
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    open var defaultURLSession = URLSession(configuration: .ephemeral)
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:61: error: cannot infer contextual base in reference to member 'ephemeral'
    open var defaultURLSession = URLSession(configuration: .ephemeral)
                                                           ~^~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:20:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias Response = (data: Data?, urlResponse: URLResponse?)
                                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:69:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public let credential: URLCredential?
                           ^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:74:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    public var session = URLSession(configuration: .ephemeral)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:74:53: error: cannot infer contextual base in reference to member 'ephemeral'
    public var session = URLSession(configuration: .ephemeral)
                                                   ~^~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:77:28: error: cannot find type 'URLRequest' in scope
    public var urlRequest: URLRequest!
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:102:35: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                using credential: URLCredential? = nil,
                                  ^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:103:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                onSession session: URLSession? = nil,
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:183:84: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func perform<T: Decodable>(decoding object: T.Type) async throws -> (T, URLResponse?) {
                                                                                   ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:204:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            _ result: Result<(T, URLResponse?), Error>) throws -> Void) {
                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:231:38: error: cannot find type 'URLRequest' in scope
    private func prepare() throws -> URLRequest {
                                     ^~~~~~~~~~
[5/5] Compiling SwiftQuests DefaultRequestConfiguration.swift
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:34:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var defaultURLSession: URLSession { get }
                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:40:26: error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var protectionSpace: URLProtectionSpace {
                         ^~~~~~~~~~~~~~~~~~
Foundation.URLProtectionSpace:2:18: note: 'URLProtectionSpace' has been explicitly marked unavailable here
public typealias URLProtectionSpace = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:78:37: error: cannot find 'NSURLAuthenticationMethodDefault' in scope
    open var authenticationMethod = NSURLAuthenticationMethodDefault
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    open var defaultURLSession = URLSession(configuration: .ephemeral)
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:61: error: cannot infer contextual base in reference to member 'ephemeral'
    open var defaultURLSession = URLSession(configuration: .ephemeral)
                                                           ~^~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:41:9: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        URLProtectionSpace(host: baseURL,
        ^~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1