Build Information
Failed to build HTTP Client with Swift 5.7 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/joemasilotti/HTTP-Client.git
Reference: main
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/joemasilotti/HTTP-Client
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4b48153 Merge pull request #5 from joemasilotti/user-agent
Cloned https://github.com/joemasilotti/HTTP-Client.git
Revision (git rev-parse @):
4b481532b99df84ef626fc5617376f2ae4e79fae
SUCCESS checkout https://github.com/joemasilotti/HTTP-Client.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.7
Building package at path: $workDir
https://github.com/joemasilotti/HTTP-Client.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
[1/9] Compiling HTTP Method.swift
[2/9] Compiling HTTP Request.swift
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
var asURLRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
func addToRequest(_ request: inout URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Request.swift:20: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)[3/10] Compiling HTTP Empty.swift
[4/10] Emitting module HTTP
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
override func addToRequest(_ request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:19: error: method does not override any method from its superclass
override func addToRequest(_ request: inout URLRequest) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
public func request(_ request: URLRequest) async -> ClientResult<T, E> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static var requestLoader: RequestLoader = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
var asURLRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
func addToRequest(_ request: inout URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: RequestLoader {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[5/10] Compiling HTTP BodyRequest.swift
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
override func addToRequest(_ request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:19: error: method does not override any method from its superclass
override func addToRequest(_ request: inout URLRequest) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
public func request(_ request: URLRequest) async -> ClientResult<T, E> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
var asURLRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:19:40: error: type of expression is ambiguous without more context
let (data, response) = try await requestLoader.load(request)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse
^
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let response = response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/Client.swift:34:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if (200 ..< 300).contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:37:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return handleFailure(data, statusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
[6/10] Compiling HTTP Client.swift
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
override func addToRequest(_ request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:19: error: method does not override any method from its superclass
override func addToRequest(_ request: inout URLRequest) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
public func request(_ request: URLRequest) async -> ClientResult<T, E> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
var asURLRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:19:40: error: type of expression is ambiguous without more context
let (data, response) = try await requestLoader.load(request)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse
^
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let response = response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/Client.swift:34:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if (200 ..< 300).contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:37:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return handleFailure(data, statusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
[7/10] Compiling HTTP Response.swift
[8/10] Compiling HTTP RequestLoader.swift
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: RequestLoader {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:8:33: error: cannot find type 'URLRequest' in scope
public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:16:37: error: cannot find type 'URLRequest' in scope
private func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
[9/10] Compiling HTTP HTTPError.swift
[10/10] Compiling HTTP Global.swift
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static var requestLoader: RequestLoader = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/HTTP/Global.swift:13:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
requestLoader = URLSession.shared
~~~~~~~~~~ ^~~~~~
[0/1] Planning build
Building for debugging...
[1/6] Compiling HTTP Request.swift
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
var asURLRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
func addToRequest(_ request: inout URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Request.swift:20:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
[2/6] Compiling HTTP RequestLoader.swift
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: RequestLoader {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:8:33: error: cannot find type 'URLRequest' in scope
public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:16:37: error: cannot find type 'URLRequest' in scope
private func _data(for request: URLRequest) async throws -> (Data, URLResponse) {
^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)[3/6] Compiling HTTP Global.swift
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static var requestLoader: RequestLoader = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/HTTP/Global.swift:13:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
requestLoader = URLSession.shared
~~~~~~~~~~ ^~~~~~
[4/6] Emitting module HTTP
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
override func addToRequest(_ request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:19: error: method does not override any method from its superclass
override func addToRequest(_ request: inout URLRequest) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
public func request(_ request: URLRequest) async -> ClientResult<T, E> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/Global.swift:7:65: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static var requestLoader: RequestLoader = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
var asURLRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Request.swift:27:40: error: cannot find type 'URLRequest' in scope
func addToRequest(_ request: inout URLRequest) {}
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: RequestLoader {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[5/6] Compiling HTTP Client.swift
/host/spi-builder-workspace/Sources/HTTP/RequestLoader.swift:4:26: error: cannot find type 'URLRequest' in scope
func load(_ request: URLRequest) async throws -> (Data, URLResponse)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:17:36: error: cannot find type 'URLRequest' in scope
public func request(_ request: URLRequest) async -> ClientResult<T, E> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:30:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleResponse(_ response: URLResponse, with data: Data) -> ClientResult<T, E> {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/Request.swift:19:23: error: cannot find type 'URLRequest' in scope
var asURLRequest: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:19:40: error: type of expression is ambiguous without more context
let (data, response) = try await requestLoader.load(request)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = response as? HTTPURLResponse
^
/host/spi-builder-workspace/Sources/HTTP/Client.swift:31:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let response = response as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/HTTP/Client.swift:34:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if (200 ..< 300).contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:35:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return handleSuccess(data, headers: response.allHeaderFields, statusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Client.swift:37:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return handleFailure(data, statusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
[6/6] Compiling HTTP BodyRequest.swift
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:49: error: cannot find type 'URLRequest' in scope
override func addToRequest(_ request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/BodyRequest.swift:11:19: error: method does not override any method from its superclass
override func addToRequest(_ request: inout URLRequest) {
~~~~~~~~ ^
BUILD FAILURE 5.7 linux
Build Machine: Linux 1