The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SimpleDownloader 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/t-ae/simpledownloader.git
Reference: master
Cloned https://github.com/t-ae/simpledownloader.git into spi-builder-workspace
SUCCESS checkout https://github.com/t-ae/simpledownloader.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...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/4] Emitting module SimpleDownloader
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:10:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                config: URLSessionConfiguration = URLSessionConfiguration.default) {
                        ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:10:75: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
                config: URLSessionConfiguration = URLSessionConfiguration.default) {
                                                  ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:26:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession,
                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:27:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                           downloadTask: URLSessionDownloadTask,
                                         ^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:57:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession,
                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:58:34: 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/SimpleDownloader.swift:74:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession,
                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:75:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                           downloadTask: URLSessionDownloadTask,
                                         ^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:3:56: error: cannot find type 'URLSessionDownloadDelegate' in scope
public class SimpleDownloader: URLSessionWrapper<URL>, URLSessionDownloadDelegate {
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleRequester.swift:12:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                config: URLSessionConfiguration = URLSessionConfiguration.default) {
                        ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleRequester.swift:12:75: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
                config: URLSessionConfiguration = URLSessionConfiguration.default) {
                                                  ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SimpleRequester.swift:7:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class SimpleRequester: URLSessionWrapper<(URLResponse, Data)> {
                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/URLSessionWrapper.swift:9:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSession!
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/URLSessionWrapper.swift:10:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var task: URLSessionTask!
              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
[2/4] Compiling SimpleDownloader SimpleRequester.swift
/host/spi-builder-workspace/Sources/SimpleRequester.swift:12:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                config: URLSessionConfiguration = URLSessionConfiguration.default) {
                        ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleRequester.swift:12:75: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
                config: URLSessionConfiguration = URLSessionConfiguration.default) {
                                                  ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SimpleRequester.swift:7:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public class SimpleRequester: URLSessionWrapper<(URLResponse, Data)> {
                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleRequester.swift:22:22: error: cannot find type 'URLRequest' in scope
        var request: URLRequest
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleRequester.swift:25:23: error: cannot find 'URLRequest' in scope
            request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleRequester.swift:30:23: error: cannot find 'URLRequest' in scope
            request = URLRequest(url: queryUrl)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleRequester.swift:39:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = URLSession(configuration: config)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleRequester.swift:41:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        task = session.dataTask(with: request) { data, response, error in
               ~~~~~~~ ^~~~~~~~
[3/4] Compiling SimpleDownloader SimpleDownloader.swift
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:10:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                config: URLSessionConfiguration = URLSessionConfiguration.default) {
                        ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:10:75: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
                config: URLSessionConfiguration = URLSessionConfiguration.default) {
                                                  ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:26:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession,
                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:27:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                           downloadTask: URLSessionDownloadTask,
                                         ^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:57:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession,
                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:58:34: 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/SimpleDownloader.swift:74:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public func urlSession(_ session: URLSession,
                                      ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:75:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                           downloadTask: URLSessionDownloadTask,
                                         ^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:3:56: error: cannot find type 'URLSessionDownloadDelegate' in scope
public class SimpleDownloader: URLSessionWrapper<URL>, URLSessionDownloadDelegate {
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:14:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        session = URLSession(configuration: config,
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:18:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:22:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
        task = session.downloadTask(with: request)
               ~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:30:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
        let response = downloadTask.response as? HTTPURLResponse
                       ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:47:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
                self.session.finishTasksAndInvalidate()
                ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:52:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
                self.session.finishTasksAndInvalidate()
                ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:70:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
            self.session.finishTasksAndInvalidate()
            ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
[4/4] Compiling SimpleDownloader URLSessionWrapper.swift
/host/spi-builder-workspace/Sources/URLSessionWrapper.swift:9:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var session: URLSession!
                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/URLSessionWrapper.swift:10:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var task: URLSessionTask!
              ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/URLSessionWrapper.swift:35:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
        task.resume()
        ~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/URLSessionWrapper.swift:39:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
        task.cancel()
        ~~~~ ^~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2