Build Information
Failed to build swift-package-directory with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.35.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bitwit/swift-package-directory.git
Reference: 0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/bitwit/swift-package-directory
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 5467153 add crawlGithub action
Cloned https://github.com/bitwit/swift-package-directory.git
Revision (git rev-parse @):
54671535d371ed5ecead5dea42804da9b9f6b065
SUCCESS checkout https://github.com/bitwit/swift-package-directory.git at 0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/bitwit/swift-package-directory.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/mxcl/PromiseKit.git
[1/16938] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (1.10s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (1.18s)
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...
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/25] Emitting module PromiseKit
[6/27] Compiling PromiseKit Thenable.swift
[7/27] Compiling PromiseKit after.swift
[8/27] Compiling PromiseKit race.swift
[9/27] Compiling PromiseKit when.swift
[10/27] Compiling PromiseKit firstly.swift
[11/27] Compiling PromiseKit hang.swift
[12/27] Compiling PromiseKit Guarantee.swift
[13/27] Compiling PromiseKit LogEvent.swift
[14/27] Compiling PromiseKit CustomStringConvertible.swift
[15/27] Compiling PromiseKit Error.swift
[16/27] Compiling PromiseKit Async.swift
[17/27] Compiling PromiseKit Box.swift
[18/27] Compiling PromiseKit Catchable.swift
[19/27] Compiling PromiseKit Combine.swift
[20/27] Compiling PromiseKit Configuration.swift
[21/27] Compiling PromiseKit Promise.swift
[22/27] Compiling PromiseKit Resolver.swift
[23/28] Wrapping AST for PromiseKit for debugging
[25/36] 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)
^~~~~~~~~~
[26/36] 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 {
^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/37] Compiling SPDCore DataStructures.swift
[28/37] Compiling SPDCore Package.swift
[29/37] 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
[30/37] Compiling SPDCore PackageManager.swift
[31/37] Compiling SPDCore PackageCrawler.swift
[32/37] 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
~~~~~~~~~~ ^~~~~~
[33/37] 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: fatalError
[0/1] Planning build
Building for debugging...
[0/6] Write swift-version-24593BA9C3E375BF.txt
[2/10] 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
~~~~~~~~~~ ^~~~~~
[3/10] 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)
^~~~~~~~~~
[4/10] 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 {
^~~~~~~~~~
[5/10] 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)
[6/10] 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.10 linux