Build Information
Failed to build Apic with Swift 5.8 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/JuanjoArreola/Apic.git
Reference: 5.1.1
Cloned https://github.com/JuanjoArreola/Apic.git into spi-builder-workspace
SUCCESS checkout https://github.com/JuanjoArreola/Apic.git at 5.1.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/JuanjoArreola/AsyncRequest.git
[1/137] Fetching asyncrequest
Fetched https://github.com/JuanjoArreola/AsyncRequest.git (0.24s)
Computing version for https://github.com/JuanjoArreola/AsyncRequest.git
Computed https://github.com/JuanjoArreola/AsyncRequest.git at 2.3.0 (1.05s)
Creating working copy for https://github.com/JuanjoArreola/AsyncRequest.git
Working copy of https://github.com/JuanjoArreola/AsyncRequest.git resolved at 2.3.0
Building for debugging...
[1/9] Compiling AsyncRequest URLSessionRequest.swift
/host/spi-builder-workspace/.build/checkouts/AsyncRequest/Sources/URLSessionRequest.swift:5:24: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var dataTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/AsyncRequest/Sources/URLSessionRequest.swift:8:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
dataTask?.cancel()
~~~~~~~~~ ^~~~~~
[2/10] Compiling AsyncRequest UUIDTimeoutRequest.swift
[3/10] Compiling AsyncRequest TimeoutRequest.swift
[4/10] Compiling AsyncRequest RequestError.swift
[5/10] Compiling AsyncRequest RequestGroup.swift
[6/10] Compiling AsyncRequest RequestHandlers.swift
[7/10] Compiling AsyncRequest Cancellable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Compiling AsyncRequest GroupRequestHandlers.swift
[9/10] Compiling AsyncRequest Request.swift
[10/10] Emitting module AsyncRequest
/host/spi-builder-workspace/.build/checkouts/AsyncRequest/Sources/URLSessionRequest.swift:5:24: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var dataTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
BUILD FAILURE 5.8 linux
Build Machine: Linux 2