Build Information
Failed to build swift-package-directory with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-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.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bitwit/swift-package-directory.git
Reference: 0.1.0
Cloned https://github.com/bitwit/swift-package-directory.git into spi-builder-workspace
SUCCESS checkout https://github.com/bitwit/swift-package-directory.git at 0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/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/16701] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git (0.95s)
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 Promise.swift
[3/22] Compiling PromiseKit Resolver.swift
[4/22] Compiling PromiseKit firstly.swift
[5/22] Compiling PromiseKit hang.swift
[6/22] Compiling PromiseKit Thenable.swift
[7/22] Compiling PromiseKit after.swift
[8/22] Compiling PromiseKit Combine.swift
[9/22] Compiling PromiseKit Configuration.swift
[10/22] Compiling PromiseKit Async.swift
[11/22] Compiling PromiseKit Box.swift
[12/22] Compiling PromiseKit Catchable.swift
[13/22] Compiling PromiseKit CustomStringConvertible.swift
[14/22] Compiling PromiseKit Error.swift
[15/22] Compiling PromiseKit Guarantee.swift
[16/22] Compiling PromiseKit LogEvent.swift
[17/22] Compiling PromiseKit race.swift
[18/22] Compiling PromiseKit when.swift
[20/24] Wrapping AST for PromiseKit for debugging
[22/32] 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:63:19: error: cannot find 'URLRequest' in scope
let req = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:83:19: error: cannot find 'URLRequest' in scope
var req = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:105:19: error: cannot find 'URLRequest' in scope
var req = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:128:19: error: cannot find 'URLRequest' in scope
var req = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:148:19: error: cannot find 'URLRequest' in scope
let req = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:158:19: error: cannot find 'URLRequest' in scope
var req = URLRequest(url: url)
^~~~~~~~~~
[23/33] 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 {
^~~~~~~~~~
[24/33] 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
~~~~~~~~~~ ^~~~~~
[25/33] Compiling SPDCore Package.swift
[26/33] Compiling SPDCore PackageManager.swift
[27/33] Compiling SPDCore PackageCrawler.swift
[28/33] Compiling SPDCore GitHub.swift
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:40: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:64:19: error: cannot find 'URLRequest' in scope
var req = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:82:19: error: cannot find 'URLRequest' in scope
var req = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:109:19: error: cannot find 'URLRequest' in scope
var req = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:125:19: error: cannot find 'URLRequest' in scope
var req = URLRequest(url: url)
^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/33] Compiling SPDCore DataStructures.swift
[30/33] 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