Build Information
Failed to build AsyncRequest with Swift 5.9 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.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/JuanjoArreola/AsyncRequest.git
Reference: master
Cloned https://github.com/JuanjoArreola/AsyncRequest.git into spi-builder-workspace
SUCCESS checkout https://github.com/JuanjoArreola/AsyncRequest.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
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.9-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 TimeoutRequest.swift
[3/10] Compiling AsyncRequest RequestHandlers.swift
[4/10] Compiling AsyncRequest UUIDTimeoutRequest.swift
[5/10] Compiling AsyncRequest RequestGroup.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/10] Compiling AsyncRequest RequestError.swift
[7/10] Compiling AsyncRequest Cancellable.swift
[8/10] Compiling AsyncRequest GroupRequestHandlers.swift
[9/10] Compiling AsyncRequest Request.swift
[10/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
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2