The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HTTPCodable with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/terwanerik/httpcodable.git
Reference: 0.2.0
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/terwanerik/httpcodable
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 6b40e00 Merge pull request #1 from terwanerik/passing-current-session
Cloned https://github.com/terwanerik/httpcodable.git
Revision (git rev-parse @):
6b40e00b7dad02c8010e0bc98ca1006d11fd0f5b
SUCCESS checkout https://github.com/terwanerik/httpcodable.git at 0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/terwanerik/httpcodable.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/formbound/Futures.git
[1/972] Fetching futures
Fetched https://github.com/formbound/Futures.git from cache (0.27s)
Computing version for https://github.com/formbound/Futures.git
Computed https://github.com/formbound/Futures.git at 1.6.1 (1.27s)
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...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling Futures PromisesExtended.swift
[5/9] Compiling Futures Promise.swift
[6/9] Compiling Futures DispatchQueue+Futures.swift
[7/9] Compiling Futures AnyFuture.swift
[8/9] Emitting module Futures
[9/9] Compiling Futures Future.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/19] 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? {
                            ^~~~~~~~~~
[12/19] 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
                   ~~~~~~~~~~ ^~~~~~~~
[13/19] 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 }
                     ^~~~~~~~~~
[14/19] 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 }
                     ^~~~~~~~~~
[15/20] Compiling HTTPCodable HTTPCodableMethod.swift
[16/20] 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)
                                                                 ~^~~~~~~
[17/20] 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
                                            ^
[18/20] Compiling HTTPCodable HTTPCodableError.swift
[19/20] Compiling HTTPCodable Encodable+Query.swift
[20/20] 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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] 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 }
                     ^~~~~~~~~~
[3/8] 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 }
                     ^~~~~~~~~~
[4/8] 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)
                                                                 ~^~~~~~~
[5/8] 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
                                            ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] 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? {
                            ^~~~~~~~~~
[7/8] 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
                   ~~~~~~~~~~ ^~~~~~~~
[8/8] Compiling HTTPCodable CodableClient+Codable.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.10 linux

Build Machine: Linux 2