The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-package-directory with Swift 5.9 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.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bitwit/swift-package-directory.git
Reference: master
Cloned https://github.com/bitwit/swift-package-directory.git into spi-builder-workspace
SUCCESS checkout https://github.com/bitwit/swift-package-directory.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-4606859-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/mxcl/PromiseKit.git
[1/16571] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git (1.50s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (0.97s)
Creating working copy for https://github.com/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.22.1
Building for debugging...
[1/20] Emitting module PromiseKit
[2/22] Compiling PromiseKit Async.swift
[3/22] Compiling PromiseKit Box.swift
[4/22] Compiling PromiseKit Catchable.swift
[5/22] Compiling PromiseKit Combine.swift
[6/22] Compiling PromiseKit Configuration.swift
[7/22] Compiling PromiseKit race.swift
[8/22] Compiling PromiseKit when.swift
[9/22] Compiling PromiseKit Thenable.swift
[10/22] Compiling PromiseKit after.swift
[11/22] Compiling PromiseKit Guarantee.swift
[12/22] Compiling PromiseKit LogEvent.swift
[13/22] Compiling PromiseKit Promise.swift
[14/22] Compiling PromiseKit Resolver.swift
[15/22] Compiling PromiseKit firstly.swift
[16/22] Compiling PromiseKit hang.swift
[17/22] Compiling PromiseKit CustomStringConvertible.swift
[18/22] Compiling PromiseKit Error.swift
[20/24] Wrapping AST for PromiseKit for debugging
[22/33] Compiling SPDCore WhiskWrap.swift
[23/34] Compiling SPDCore GitHub.swift
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:50:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
    public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:68:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:92:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:110:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:137:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:153:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
[24/34] Compiling SPDCore URLRequest+Curl.swift
/host/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:8:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
                 ^~~~~~~~~~
[25/34] Compiling SPDCore Cloudant.swift
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:10:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let limit: Int = 10
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:10:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'limit' case to silence this warning
    let limit: Int = 10
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:10:9: note: make the property mutable instead
    let limit: Int = 10
    ~~~ ^
    var
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:11:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let sort = [["stargazers_count": "desc"]]
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:11:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'sort' case to silence this warning
    let sort = [["stargazers_count": "desc"]]
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:11:9: note: make the property mutable instead
    let sort = [["stargazers_count": "desc"]]
    ~~~ ^
    var
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:12:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let selector = ["stargazers_count": ["$gte": 100]]
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:12:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'selector' case to silence this warning
    let selector = ["stargazers_count": ["$gte": 100]]
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:12:9: note: make the property mutable instead
    let selector = ["stargazers_count": ["$gte": 100]]
    ~~~ ^
    var
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:43:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
    public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:66:19: error: cannot find 'URLRequest' in scope
        let req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:86:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:108:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:131:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:151:19: error: cannot find 'URLRequest' in scope
        let req = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:161:19: error: cannot find 'URLRequest' in scope
        var req = URLRequest(url: url)
                  ^~~~~~~~~~
[26/34] Compiling SPDCore performRequest.swift
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
    public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:18:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:18:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~
[27/34] Compiling SPDCore PackageManager.swift
[28/34] Compiling SPDCore PackageCrawler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/34] Compiling SPDCore DataStructures.swift
[30/34] Compiling SPDCore Package.swift
[31/34] Emitting module SPDCore
/host/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:8:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
    public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:10:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let limit: Int = 10
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:10:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'limit' case to silence this warning
    let limit: Int = 10
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:10:9: note: make the property mutable instead
    let limit: Int = 10
    ~~~ ^
    var
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:11:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let sort = [["stargazers_count": "desc"]]
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:11:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'sort' case to silence this warning
    let sort = [["stargazers_count": "desc"]]
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:11:9: note: make the property mutable instead
    let sort = [["stargazers_count": "desc"]]
    ~~~ ^
    var
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:12:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let selector = ["stargazers_count": ["$gte": 100]]
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:12:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'selector' case to silence this warning
    let selector = ["stargazers_count": ["$gte": 100]]
        ^
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:12:9: note: make the property mutable instead
    let selector = ["stargazers_count": ["$gte": 100]]
    ~~~ ^
    var
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1