Build Information
Failed to build AsyncRequest with Swift 5.8 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-1":/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/AsyncRequest.git
Reference: 2.3.0
Cloned https://github.com/JuanjoArreola/AsyncRequest.git into spi-builder-workspace
SUCCESS checkout https://github.com/JuanjoArreola/AsyncRequest.git at 2.3.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
[1/9] Compiling AsyncRequest URLSessionRequest.swift
/host/spi-builder-workspace/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/Sources/URLSessionRequest.swift:8:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
dataTask?.cancel()
~~~~~~~~~ ^~~~~~
[2/10] Compiling AsyncRequest RequestError.swift
[3/10] Compiling AsyncRequest UUIDTimeoutRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Compiling AsyncRequest Cancellable.swift
[5/10] Compiling AsyncRequest GroupRequestHandlers.swift
[6/10] Emitting module AsyncRequest
/host/spi-builder-workspace/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
^
[7/10] Compiling AsyncRequest RequestGroup.swift
[8/10] Compiling AsyncRequest Request.swift
[9/10] Compiling AsyncRequest RequestHandlers.swift
[10/10] Compiling AsyncRequest TimeoutRequest.swift
BUILD FAILURE 5.8 linux
Build Machine: Linux 1