The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Endpoints with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-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/isotopsweden/endpoints.git
Reference: 3.0.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/isotopsweden/endpoints
 * tag               3.0.0      -> FETCH_HEAD
HEAD is now at 2319120 Clean up README/project in preparation of release (#30)
Cloned https://github.com/isotopsweden/endpoints.git
Revision (git rev-parse @):
2319120f00bc5a0fe7f5e492245a0da8c6b5d655
SUCCESS checkout https://github.com/isotopsweden/endpoints.git at 3.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/isotopsweden/endpoints.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/16] Compiling Endpoints HTTPURLResponse+successfulStatusCode.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
[5/16] Compiling Endpoints Logger.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
[6/17] Compiling Endpoints CommunicatorError.swift
[7/17] Compiling Endpoints CommunicatorResponse.swift
[8/17] Compiling Endpoints Decoder.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
[9/17] Compiling Endpoints Endpoint.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
[10/17] Compiling Endpoints URLSession+Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: Transporter {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:12:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
[11/17] Compiling Endpoints TransporterResponse.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public let urlResponse: HTTPURLResponse
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(response: HTTPURLResponse, data: Data) {
                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[12/17] Compiling Endpoints Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
[13/17] Compiling Endpoints Request+Cancellable.swift
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(dataTask: URLSessionDataTask) {
                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:26:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
            dataTask.cancel()
            ~~~~~~~~ ^~~~~~
[14/17] Compiling Endpoints Request.swift
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(dataTask: URLSessionDataTask) {
                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:26:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
            dataTask.cancel()
            ~~~~~~~~ ^~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/17] Emitting module Endpoints
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        transporter: Transporter = URLSession.shared,
                                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
    private func log(request: URLRequest, method: HTTPMethod) {
                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func log(response: HTTPURLResponse) {
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        response: HTTPURLResponse,
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(dataTask: URLSessionDataTask) {
                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public let urlResponse: HTTPURLResponse
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(response: HTTPURLResponse, data: Data) {
                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: Transporter {
^         ~~~~~~~~~~
[16/17] Compiling Endpoints Communicator+publisher.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        transporter: Transporter = URLSession.shared,
                                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
    private func log(request: URLRequest, method: HTTPMethod) {
                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func log(response: HTTPURLResponse) {
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        response: HTTPURLResponse,
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
        let request: URLRequest
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
        log(request: request, method: endpoint.method)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
        return transporter.send(request) { [weak self] result in
                                                       ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
        let urlString = response.url?.absoluteString ?? "<Missing URL>"
                        ~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        logger?.log("<Communicator> \(response.statusCode) \(urlString)")
                                      ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        switch response.statusCode {
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    code: response.statusCode,
                          ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                    headers: response.allHeaderFields)
                             ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
                                                                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
                                                                       ~~~~~~~~ ^~~~~~~~~~
[17/17] Compiling Endpoints Communicator.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        transporter: Transporter = URLSession.shared,
                                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
    private func log(request: URLRequest, method: HTTPMethod) {
                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func log(response: HTTPURLResponse) {
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        response: HTTPURLResponse,
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
        let request: URLRequest
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
        log(request: request, method: endpoint.method)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
        return transporter.send(request) { [weak self] result in
                                                       ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
        let urlString = response.url?.absoluteString ?? "<Missing URL>"
                        ~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        logger?.log("<Communicator> \(response.statusCode) \(urlString)")
                                      ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        switch response.statusCode {
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    code: response.statusCode,
                          ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                    headers: response.allHeaderFields)
                             ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
                                                                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
                                                                       ~~~~~~~~ ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling Endpoints Request+Cancellable.swift
[3/13] Compiling Endpoints Request.swift
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(dataTask: URLSessionDataTask) {
                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:26:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
            dataTask.cancel()
            ~~~~~~~~ ^~~~~~
[4/13] Compiling Endpoints TransporterResponse.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public let urlResponse: HTTPURLResponse
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(response: HTTPURLResponse, data: Data) {
                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[5/13] Compiling Endpoints Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
[6/13] Compiling Endpoints HTTPURLResponse+successfulStatusCode.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
[7/13] Compiling Endpoints Logger.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
[8/13] Compiling Endpoints Decoder.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
[9/13] Compiling Endpoints Endpoint.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/13] Compiling Endpoints Communicator+publisher.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        transporter: Transporter = URLSession.shared,
                                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
    private func log(request: URLRequest, method: HTTPMethod) {
                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func log(response: HTTPURLResponse) {
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        response: HTTPURLResponse,
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
        let request: URLRequest
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
        log(request: request, method: endpoint.method)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
        return transporter.send(request) { [weak self] result in
                                                       ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
        let urlString = response.url?.absoluteString ?? "<Missing URL>"
                        ~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        logger?.log("<Communicator> \(response.statusCode) \(urlString)")
                                      ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        switch response.statusCode {
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    code: response.statusCode,
                          ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                    headers: response.allHeaderFields)
                             ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
                                                                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
                                                                       ~~~~~~~~ ^~~~~~~~~~
[11/13] Compiling Endpoints Communicator.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        transporter: Transporter = URLSession.shared,
                                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
    private func log(request: URLRequest, method: HTTPMethod) {
                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func log(response: HTTPURLResponse) {
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        response: HTTPURLResponse,
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
        let request: URLRequest
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
        log(request: request, method: endpoint.method)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
        return transporter.send(request) { [weak self] result in
                                                       ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
        let urlString = response.url?.absoluteString ?? "<Missing URL>"
                        ~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        logger?.log("<Communicator> \(response.statusCode) \(urlString)")
                                      ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        switch response.statusCode {
               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                    code: response.statusCode,
                          ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                    headers: response.allHeaderFields)
                             ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
                                                                       ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
                                                                       ~~~~~~~~ ^~~~~~~~~~
[12/13] Emitting module Endpoints
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        transporter: Transporter = URLSession.shared,
                                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
    private func log(request: URLRequest, method: HTTPMethod) {
                              ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private func log(response: HTTPURLResponse) {
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        response: HTTPURLResponse,
                  ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
    func asURLRequest() -> Result<URLRequest, CommunicatorError> {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^         ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    init(dataTask: URLSessionDataTask) {
                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public let urlResponse: HTTPURLResponse
                            ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(response: HTTPURLResponse, data: Data) {
                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: Transporter {
^         ~~~~~~~~~~
[13/13] Compiling Endpoints URLSession+Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: Transporter {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:12:20: error: cannot find type 'URLRequest' in scope
        _ request: URLRequest,
                   ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1