The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Nappa with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-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/AlTavares/Nappa.git
Reference: master
Cloned https://github.com/AlTavares/Nappa.git into spi-builder-workspace
SUCCESS checkout https://github.com/AlTavares/Nappa.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/8] Emitting module Nappa
/host/spi-builder-workspace/Sources/Nappa/Extensions/URLRequestExtension.swift:4:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:19:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: RequestTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    var state: URLSessionTask.State { get }
               ~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:22:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var cookieStorage: HTTPCookieStorage { get }
                       ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
    func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:27:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var cookieStorage: HTTPCookieStorage {
                       ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:33:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:35:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var cookieStorage: HTTPCookieStorage {
                              ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:39:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(configuration: URLSessionConfiguration) {
                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:43:41: error: cannot find type 'URLRequest' in scope
    public func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask? {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:59:25: error: cannot find type 'URLRequest' in scope
    public var request: URLRequest?
                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:62:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var response: HTTPURLResponse?
                         ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
    public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
                                                      ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:193:61: error: cannot find type 'URLRequest' in scope
    private func buildRequest(forUrl url: String) -> Result<URLRequest, HTTPResponseError> {
                                                            ^~~~~~~~~~
[2/9] Compiling Nappa ResultExtension.swift
[3/9] Compiling Nappa HTTPService.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
    func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    var state: URLSessionTask.State { get }
               ~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:193:61: error: cannot find type 'URLRequest' in scope
    private func buildRequest(forUrl url: String) -> Result<URLRequest, HTTPResponseError> {
                                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
    public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:133:43: error: incorrect argument label in call (have 'error:', expected 'response:')
            completionHandler(DataResponse(error: error as? HTTPResponseError))
                                          ^~~~~~
                                           response
/host/spi-builder-workspace/Sources/Nappa/HTTPService.swift:133:31: error: initializer 'init(response:)' requires that 'HTTPResponseError?' inherit from 'Response'
            completionHandler(DataResponse(error: error as? HTTPResponseError))
                              ^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: where 'SomeResponse' = 'HTTPResponseError?'
    public convenience init<SomeResponse: Response>(response: SomeResponse) {
                       ^
[4/9] Compiling Nappa HTTPRequestAdapter.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:19:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: RequestTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:16:31: error: 'State' is not a member type of type 'Foundation.URLSessionTask' (aka 'AnyObject')
    var state: URLSessionTask.State { get }
               ~~~~~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:22:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var cookieStorage: HTTPCookieStorage { get }
                       ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:23:34: error: cannot find type 'URLRequest' in scope
    func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask?
                                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:27:24: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var cookieStorage: HTTPCookieStorage {
                       ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:33:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:35:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var cookieStorage: HTTPCookieStorage {
                              ^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:39:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(configuration: URLSessionConfiguration) {
                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:43:41: error: cannot find type 'URLRequest' in scope
    public func performRequest(request: URLRequest, completionHandler: @escaping (DataResponse) -> Void) -> RequestTask? {
                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:28:34: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        return HTTPCookieStorage.shared
               ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:36:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
        return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
               ~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:36:80: error: type 'HTTPCookieStorage' (aka 'AnyObject') has no member 'shared'
        return urlSession.configuration.httpCookieStorage ?? HTTPCookieStorage.shared
                                                             ~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:40:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        urlSession = URLSession(configuration: configuration)
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
    public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:44:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let dataTask = urlSession.dataTask(with: request) { data, response, error in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:54: error: extra arguments at positions #1, #3, #4 in call
                return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
                                                     ^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: 'init(response:)' declared here
    public convenience init<SomeResponse: Response>(response: SomeResponse) {
                       ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:42: error: initializer 'init(response:)' requires that 'HTTPURLResponse?' (aka 'Optional<AnyObject>') inherit from 'Response'
                return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
                                         ^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: where 'SomeResponse' = 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
    public convenience init<SomeResponse: Response>(response: SomeResponse) {
                       ^
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:47:117: error: cannot infer contextual base in reference to member 'requestError'
                return completionHandler(DataResponse(request: request, response: httpResponse, data: data, error: .requestError(error)))
                                                                                                                   ~^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:57:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
    return SimpleRequestAdapter(configuration: .default)
                                               ~^~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPRequestAdapter.swift:61:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
    return SimpleRequestAdapter(configuration: .ephemeral)
                                               ~^~~~~~~~~
[5/9] Compiling Nappa URLRequestExtension.swift
/host/spi-builder-workspace/Sources/Nappa/Extensions/URLRequestExtension.swift:4:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
                 ^~~~~~~~~~
[6/9] Compiling Nappa HTTPResponse.swift
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:59:25: error: cannot find type 'URLRequest' in scope
    public var request: URLRequest?
                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:62:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var response: HTTPURLResponse?
                         ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:26: error: cannot find type 'URLRequest' in scope
    public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:70:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(request: URLRequest? = nil, response: HTTPURLResponse? = nil, data: Data? = nil, error: HTTPResponseError? = nil) {
                                                      ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:34:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if emptyDataStatusCodes.contains(response.statusCode) { return .success(Data()) }
                                         ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:18: error: extra arguments at positions #1, #3, #4 in call
        self.init(request: response.request, response: response.response, data: response.data, error: response.error)
                 ^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:77:24: note: 'init(response:)' declared here
    public convenience init<SomeResponse: Response>(response: SomeResponse) {
                       ^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'Response'
        self.init(request: response.request, response: response.response, data: response.data, error: response.error)
                                                                ^
                                                                         as! Response
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: error: value of optional type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') must be unwrapped to a value of type 'HTTPURLResponse' (aka 'AnyObject')
        self.init(request: response.request, response: response.response, data: response.data, error: response.error)
                                                                ^
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: note: coalesce using '??' to provide a default when the optional value contains 'nil'
        self.init(request: response.request, response: response.response, data: response.data, error: response.error)
                                                                ^
                                                                         ?? <#default value#>
/host/spi-builder-workspace/Sources/Nappa/HTTPResponse.swift:78:65: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
        self.init(request: response.request, response: response.response, data: response.data, error: response.error)
                                                                ^
                                                                        !
[7/9] Compiling Nappa AnyEncodable.swift
[8/9] Compiling Nappa DispatchQueueExtension.swift
[9/9] Compiling Nappa HTTPServiceErrors.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2