The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Apic with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/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.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.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/JuanjoArreola/AsyncRequest.git
[1/137] Fetching asyncrequest
Fetched https://github.com/JuanjoArreola/AsyncRequest.git (0.20s)
Computing version for https://github.com/JuanjoArreola/AsyncRequest.git
Computed https://github.com/JuanjoArreola/AsyncRequest.git at 2.3.0 (1.16s)
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 TimeoutRequest.swift
[2/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()
        ~~~~~~~~~ ^~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/10] Compiling AsyncRequest Cancellable.swift
[4/10] Compiling AsyncRequest GroupRequestHandlers.swift
[5/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
                 ^
[6/10] Compiling AsyncRequest RequestError.swift
[7/10] Compiling AsyncRequest Request.swift
[8/10] Compiling AsyncRequest RequestGroup.swift
[9/10] Compiling AsyncRequest RequestHandlers.swift
[10/10] Compiling AsyncRequest UUIDTimeoutRequest.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2