The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HTTPCodable 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/terwanerik/httpcodable.git
Reference: master
Cloned https://github.com/terwanerik/httpcodable.git into spi-builder-workspace
SUCCESS checkout https://github.com/terwanerik/httpcodable.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-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/formbound/Futures.git
[1/972] Fetching futures
Fetched https://github.com/formbound/Futures.git (0.29s)
Computing version for https://github.com/formbound/Futures.git
Computed https://github.com/formbound/Futures.git at 1.6.1 (0.93s)
Creating working copy for https://github.com/formbound/Futures.git
Working copy of https://github.com/formbound/Futures.git resolved at 1.6.1
Building for debugging...
[1/6] Compiling Futures PromisesExtended.swift
[2/6] Compiling Futures Promise.swift
[3/6] Compiling Futures DispatchQueue+Futures.swift
[4/6] Compiling Futures AnyFuture.swift
[5/6] Emitting module Futures
[6/6] Compiling Futures Future.swift
[9/17] Compiling HTTPCodable CodableClient+Request.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Request.swift:44:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
    var cachePolicy: URLRequest.CachePolicy? { get }
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
    public var cachePolicy: URLRequest.CachePolicy? {
                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Request.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = urlSession.dataTask(with: request) { (data, response, error) in
                   ~~~~~~~~~~ ^~~~~~~~
[10/17] Compiling HTTPCodable Client.swift
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var currentSession: URLSessionDataTask?
                               ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
    var cachePolicy: URLRequest.CachePolicy? { get }
                     ^~~~~~~~~~
[11/17] Compiling HTTPCodable CodableClient+Codable.swift
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var currentSession: URLSessionDataTask?
                               ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
    var cachePolicy: URLRequest.CachePolicy? { get }
                     ^~~~~~~~~~
[12/18] Compiling HTTPCodable HTTPCodableMethod.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/18] Emitting module HTTPCodable
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var currentSession: URLSessionDataTask?
                               ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
    var cachePolicy: URLRequest.CachePolicy? { get }
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:5:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
                                                          ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:6:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
                                                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:8:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var urlSession: URLSession { get }
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:15:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var sessionConfiguration: URLSessionConfiguration? { get }
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:43:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var urlSession: URLSession {
                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:59:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var sessionConfiguration: URLSessionConfiguration? {
                                     ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
    public var cachePolicy: URLRequest.CachePolicy? {
                            ^~~~~~~~~~
[14/18] Compiling HTTPCodable CodableClient+Rest.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:10:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
        return (future: response.future.map { data in
                                            ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:27:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
        return (future: response.future.map { data in
                                            ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:44:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
        return (future: response.future.map { data in
                                            ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:61:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
        return (future: response.future.map { data in
                                            ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:77:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
        return (future: response.future.map { data in
                                            ^
[15/18] Compiling HTTPCodable CodableClient.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:5:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
                                                          ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:6:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
                                                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:8:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var urlSession: URLSession { get }
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:15:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var sessionConfiguration: URLSessionConfiguration? { get }
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
    var cachePolicy: URLRequest.CachePolicy? { get }
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:43:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var urlSession: URLSession {
                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:59:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var sessionConfiguration: URLSessionConfiguration? {
                                     ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
    public var cachePolicy: URLRequest.CachePolicy? {
                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:44:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        return URLSession(configuration: sessionConfiguration ?? .default)
               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:44:67: error: type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>') has no member 'default'
        return URLSession(configuration: sessionConfiguration ?? .default)
                                                                 ~^~~~~~~
[16/18] Compiling HTTPCodable HTTPCodableError.swift
[17/18] Compiling HTTPCodable Encodable+Query.swift
[18/18] Compiling HTTPCodable HTTPCodable.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
    var cachePolicy: URLRequest.CachePolicy? { get }
                     ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1