Build Information
Failed to build GetExtensions with Swift 5.8 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.28.9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/binaryscraping/GetExtensions.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/binaryscraping/GetExtensions
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at aa20f38 Add all delegate methods
Cloned https://github.com/binaryscraping/GetExtensions.git
Revision (git rev-parse @):
aa20f38721142eb6592b2c8f11179d32d7d70ae3
SUCCESS checkout https://github.com/binaryscraping/GetExtensions.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $workDir
https://github.com/binaryscraping/GetExtensions.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/kean/Get
[1/2261] Fetching get
Fetched https://github.com/kean/Get (0.44s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.1.5 (0.51s)
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.1.5
Building for debugging...
[1/6] Compiling Get Response.swift
[2/6] Compiling Get Request.swift
[3/6] Compiling Get APIClientDelegate.swift
[4/6] Compiling Get DataLoader.swift
[5/6] Compiling Get APIClient.swift
[6/6] Emitting module Get
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Emitting module GetExtensions
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:12:74: error: cannot find type 'URLRequest' in scope
public func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:20:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
shouldRetry task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:34:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
validateResponse response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:36:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[10/10] Compiling GetExtensions MultiAPIClientDelegate.swift
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:12:74: error: cannot find type 'URLRequest' in scope
public func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:20:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
shouldRetry task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:34:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
validateResponse response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:36:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:25:57: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
if try await delegate.client(client, shouldRetry: task, error: error, attempts: attempts) {
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:25:57: note: did you mean to use 'as!' to force downcast?
if try await delegate.client(client, shouldRetry: task, error: error, attempts: attempts) {
^
as! URLSessionTask
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:39:20: error: no exact matches in call to instance method 'client'
try delegate.client(client, validateResponse: response, data: data, task: task)
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:89:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
^
[0/1] Planning build
Building for debugging...
[1/1] Emitting module Get
warning: Will not do cross-module incremental builds, priors saved at TimePoint(seconds: 1706673820, nanoseconds: 0)), but the previous build started at TimePoint(seconds: 1706673820, nanoseconds: 793449000), at '/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/GetExtensions.build/master.priors'
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module GetExtensions
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:12:74: error: cannot find type 'URLRequest' in scope
public func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:20:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
shouldRetry task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:34:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
validateResponse response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:36:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
[5/5] Compiling GetExtensions MultiAPIClientDelegate.swift
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:12:74: error: cannot find type 'URLRequest' in scope
public func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:20:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
shouldRetry task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:34:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
validateResponse response: HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:36:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:25:57: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
if try await delegate.client(client, shouldRetry: task, error: error, attempts: attempts) {
^
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:25:57: note: did you mean to use 'as!' to force downcast?
if try await delegate.client(client, shouldRetry: task, error: error, attempts: attempts) {
^
as! URLSessionTask
/host/spi-builder-workspace/Sources/GetExtensions/MultiAPIClientDelegate.swift:39:20: error: no exact matches in call to instance method 'client'
try delegate.client(client, validateResponse: response, data: data, task: task)
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:89:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
^
BUILD FAILURE 5.8 linux