Build Information
Failed to build Endpoints with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-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/isotopsweden/endpoints.git
Reference: 3.0.0
Cloned https://github.com/isotopsweden/endpoints.git into spi-builder-workspace
SUCCESS checkout https://github.com/isotopsweden/endpoints.git at 3.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/13] Compiling Endpoints CommunicatorError.swift
[2/13] Compiling Endpoints CommunicatorResponse.swift
[3/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
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/14] 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 {
^ ~~~~~~~~~~
[5/14] 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: unable to infer type of a closure parameter 'result' in the current context
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)))
~~~~~~~~ ^~~~~~~~~~
[6/14] 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: unable to infer type of a closure parameter 'result' in the current context
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)))
~~~~~~~~ ^~~~~~~~~~
[7/14] 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,
^~~~~~~~~~
[8/14] 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()
~~~~~~~~ ^~~~~~
[9/14] 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()
~~~~~~~~ ^~~~~~
[10/14] Compiling Endpoints Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
_ request: URLRequest,
^~~~~~~~~~
[11/14] 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 {
^ ~~~~~~~~~~~~~~~
[12/14] 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 {
^ ~~~~~~~~~~~~~~~
[13/14] 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)
^~~~~~~~~~
[14/14] 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: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2