Build Information
Failed to build swift-package-directory, reference master (cdc4af
), with Swift 6.1 for Linux on 26 Apr 2025 08:02:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bitwit/swift-package-directory.git
Reference: master
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
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at cdc4af4 Update README.md
Cloned https://github.com/bitwit/swift-package-directory.git
Revision (git rev-parse @):
cdc4af47a55d992cfed378d88fac6d3416f2b332
SUCCESS checkout https://github.com/bitwit/swift-package-directory.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/bitwit/swift-package-directory.git
https://github.com/bitwit/swift-package-directory.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "promisekit",
"requirement" : {
"range" : [
{
"lower_bound" : "6.3.1",
"upper_bound" : "7.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/mxcl/PromiseKit.git"
}
],
"manifest_display_name" : "swift-package-directory",
"name" : "swift-package-directory",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SPDCore",
"targets" : [
"SPDCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SPDCorePlayground",
"targets" : [
"SPDCorePlayground"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SPDCorePlayground",
"module_type" : "SwiftTarget",
"name" : "SPDCorePlayground",
"path" : "Sources/SPDCorePlayground",
"product_memberships" : [
"SPDCorePlayground"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"SPDCore"
],
"type" : "executable"
},
{
"c99name" : "SPDCore",
"module_type" : "SwiftTarget",
"name" : "SPDCore",
"path" : "Sources/SPDCore",
"product_dependencies" : [
"PromiseKit"
],
"product_memberships" : [
"SPDCore",
"SPDCorePlayground"
],
"sources" : [
"Data Structures/DataStructures.swift",
"Data Structures/Package.swift",
"Functions/URLRequest+Curl.swift",
"Functions/WhiskWrap.swift",
"Functions/performRequest.swift",
"Services/Cloudant.swift",
"Services/GitHub.swift",
"Services/PackageCrawler.swift",
"Services/PackageManager.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/mxcl/PromiseKit.git
[1/17186] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (1.13s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (3.45s)
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] Compiling PromiseKit Promise.swift
[6/25] Compiling PromiseKit Resolver.swift
[7/27] Compiling PromiseKit firstly.swift
[8/27] Compiling PromiseKit hang.swift
[9/27] Compiling PromiseKit Combine.swift
[10/27] Compiling PromiseKit Configuration.swift
[11/27] Emitting module PromiseKit
[12/27] Compiling PromiseKit Async.swift
[13/27] Compiling PromiseKit Box.swift
[14/27] Compiling PromiseKit Catchable.swift
[15/27] Compiling PromiseKit Thenable.swift
[16/27] Compiling PromiseKit after.swift
[17/27] Compiling PromiseKit Guarantee.swift
[18/27] Compiling PromiseKit LogEvent.swift
[19/27] Compiling PromiseKit CustomStringConvertible.swift
[20/27] Compiling PromiseKit Error.swift
[21/27] Compiling PromiseKit race.swift
[22/27] Compiling PromiseKit when.swift
[23/28] Wrapping AST for PromiseKit for debugging
[25/37] Compiling SPDCore GitHub.swift
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:50:19: error: cannot find 'URLRequest' in scope
48 | }
49 |
50 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
51 |
52 | let userPasswordString = "\(username):\(accessToken)"
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 | }
11 |
12 | public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let host = request.url?.host ?? "unknown"
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:68:19: error: cannot find 'URLRequest' in scope
66 | }
67 |
68 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
69 |
70 | let userPasswordString = "\(username):\(accessToken)"
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:92:19: error: cannot find 'URLRequest' in scope
90 | }
91 |
92 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
93 | let userPasswordString = "\(username):\(accessToken)"
94 | let userPasswordData = userPasswordString.data(using: .utf8)
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:110:19: error: cannot find 'URLRequest' in scope
108 | }
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | let userPasswordString = "\(username):\(accessToken)"
112 | let userPasswordData = userPasswordString.data(using: .utf8)
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:137:19: error: cannot find 'URLRequest' in scope
135 | }
136 |
137 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
138 | let userPasswordString = "\(username):\(accessToken)"
139 | let userPasswordData = userPasswordString.data(using: .utf8)
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:153:19: error: cannot find 'URLRequest' in scope
151 | }
152 |
153 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
154 | let userPasswordString = "\(username):\(accessToken)"
155 | let userPasswordData = userPasswordString.data(using: .utf8)
[26/38] Compiling SPDCore WhiskWrap.swift
[27/38] Compiling SPDCore performRequest.swift
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:6:23: warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public class Networking {
5 |
6 | public static var callCount = [String: Int]()
| |- warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'callCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'callCount' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | public static func reportCallCount() {
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 | }
11 |
12 | public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let host = request.url?.host ?? "unknown"
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:18:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |
17 | return Promise { resolver in
18 | let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |
20 | if let err = error {
[28/38] 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
8 |
9 | struct PopularSearch: Codable {
10 | let limit: Int = 10
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'limit' case to silence this warning
| `- note: make the property mutable instead
11 | let sort = [["stargazers_count": "desc"]]
12 | let selector = ["stargazers_count": ["$gte": 100]]
/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
9 | struct PopularSearch: Codable {
10 | let limit: Int = 10
11 | let sort = [["stargazers_count": "desc"]]
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'sort' case to silence this warning
| `- note: make the property mutable instead
12 | let selector = ["stargazers_count": ["$gte": 100]]
13 | let use_index: String
/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
10 | let limit: Int = 10
11 | let sort = [["stargazers_count": "desc"]]
12 | let selector = ["stargazers_count": ["$gte": 100]]
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'selector' case to silence this warning
| `- note: make the property mutable instead
13 | let use_index: String
14 | }
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:43:19: error: cannot find 'URLRequest' in scope
41 | let query = PopularSearch(use_index: popularIndex)
42 |
43 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
44 | let reqData = try! JSONEncoder().encode(query)
45 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 | }
11 |
12 | public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let host = request.url?.host ?? "unknown"
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:66:19: error: cannot find 'URLRequest' in scope
64 | }
65 |
66 | let req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
67 |
68 | return Networking.perform(req, transformingResponseTo: FindAllResult.self, debug: false)
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:86:19: error: cannot find 'URLRequest' in scope
84 | ]
85 |
86 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
87 | let reqData = try! JSONSerialization.data(withJSONObject: query, options: [])
88 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:108:19: error: cannot find 'URLRequest' in scope
106 | ]
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | let reqData = try! JSONSerialization.data(withJSONObject: query, options: [])
110 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:131:19: error: cannot find 'URLRequest' in scope
129 | // finalPackage.last_package_update = Date()
130 |
131 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
132 | let encoder = JSONEncoder()
133 | encoder.dateEncodingStrategy = .iso8601
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:151:19: error: cannot find 'URLRequest' in scope
149 | }
150 |
151 | let req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
152 | return Networking.perform(req, transformingResponseTo: AppConfig.self)
153 | }
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:161:19: error: cannot find 'URLRequest' in scope
159 | }
160 |
161 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
162 |
163 | let encoder = JSONEncoder()
[29/38] Compiling SPDCore PackageCrawler.swift
[30/38] Compiling SPDCore PackageManager.swift
[31/38] Compiling SPDCore URLRequest+Curl.swift
/host/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:8:18: error: cannot find type 'URLRequest' in scope
6 | import Foundation
7 |
8 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | /// Returns a cURL command for a request
[32/38] Compiling SPDCore DataStructures.swift
[33/38] Compiling SPDCore Package.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[34/38] Emitting module SPDCore
/host/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:8:18: error: cannot find type 'URLRequest' in scope
6 | import Foundation
7 |
8 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | /// Returns a cURL command for a request
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:6:23: warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public class Networking {
5 |
6 | public static var callCount = [String: Int]()
| |- warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'callCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'callCount' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | public static func reportCallCount() {
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 | }
11 |
12 | public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let host = request.url?.host ?? "unknown"
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/6] Write swift-version-24593BA9C3E375BF.txt
[2/22] Compiling PromiseKit CustomStringConvertible.swift
[3/22] Compiling PromiseKit Error.swift
[4/24] Emitting module PromiseKit
[5/24] Compiling PromiseKit Async.swift
[6/24] Compiling PromiseKit Box.swift
[7/24] Compiling PromiseKit Catchable.swift
[8/24] Compiling PromiseKit Promise.swift
[9/24] Compiling PromiseKit Resolver.swift
[10/24] Compiling PromiseKit Combine.swift
[11/24] Compiling PromiseKit Configuration.swift
[12/24] Compiling PromiseKit Guarantee.swift
[13/24] Compiling PromiseKit LogEvent.swift
[14/24] Compiling PromiseKit firstly.swift
[15/24] Compiling PromiseKit hang.swift
[16/24] Compiling PromiseKit Thenable.swift
[17/24] Compiling PromiseKit after.swift
[18/24] Compiling PromiseKit race.swift
[19/24] Compiling PromiseKit when.swift
[21/33] Compiling SPDCore performRequest.swift
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 | }
11 |
12 | public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let host = request.url?.host ?? "unknown"
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:18:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |
17 | return Promise { resolver in
18 | let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |
20 | if let err = error {
[22/34] Compiling SPDCore WhiskWrap.swift
[23/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
6 | import Foundation
7 |
8 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | /// Returns a cURL command for a request
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/34] Compiling SPDCore DataStructures.swift
[25/34] Compiling SPDCore Package.swift
[26/34] Emitting module SPDCore
/host/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:8:18: error: cannot find type 'URLRequest' in scope
6 | import Foundation
7 |
8 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | /// Returns a cURL command for a request
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 | }
11 |
12 | public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let host = request.url?.host ?? "unknown"
[27/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
8 |
9 | struct PopularSearch: Codable {
10 | let limit: Int = 10
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'limit' case to silence this warning
| `- note: make the property mutable instead
11 | let sort = [["stargazers_count": "desc"]]
12 | let selector = ["stargazers_count": ["$gte": 100]]
/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
9 | struct PopularSearch: Codable {
10 | let limit: Int = 10
11 | let sort = [["stargazers_count": "desc"]]
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'sort' case to silence this warning
| `- note: make the property mutable instead
12 | let selector = ["stargazers_count": ["$gte": 100]]
13 | let use_index: String
/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
10 | let limit: Int = 10
11 | let sort = [["stargazers_count": "desc"]]
12 | let selector = ["stargazers_count": ["$gte": 100]]
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'selector' case to silence this warning
| `- note: make the property mutable instead
13 | let use_index: String
14 | }
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:43:19: error: cannot find 'URLRequest' in scope
41 | let query = PopularSearch(use_index: popularIndex)
42 |
43 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
44 | let reqData = try! JSONEncoder().encode(query)
45 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 | }
11 |
12 | public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let host = request.url?.host ?? "unknown"
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:66:19: error: cannot find 'URLRequest' in scope
64 | }
65 |
66 | let req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
67 |
68 | return Networking.perform(req, transformingResponseTo: FindAllResult.self, debug: false)
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:86:19: error: cannot find 'URLRequest' in scope
84 | ]
85 |
86 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
87 | let reqData = try! JSONSerialization.data(withJSONObject: query, options: [])
88 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:108:19: error: cannot find 'URLRequest' in scope
106 | ]
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | let reqData = try! JSONSerialization.data(withJSONObject: query, options: [])
110 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:131:19: error: cannot find 'URLRequest' in scope
129 | // finalPackage.last_package_update = Date()
130 |
131 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
132 | let encoder = JSONEncoder()
133 | encoder.dateEncodingStrategy = .iso8601
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:151:19: error: cannot find 'URLRequest' in scope
149 | }
150 |
151 | let req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
152 | return Networking.perform(req, transformingResponseTo: AppConfig.self)
153 | }
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:161:19: error: cannot find 'URLRequest' in scope
159 | }
160 |
161 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
162 |
163 | let encoder = JSONEncoder()
[28/34] Compiling SPDCore GitHub.swift
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:50:19: error: cannot find 'URLRequest' in scope
48 | }
49 |
50 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
51 |
52 | let userPasswordString = "\(username):\(accessToken)"
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 | }
11 |
12 | public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | let host = request.url?.host ?? "unknown"
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:68:19: error: cannot find 'URLRequest' in scope
66 | }
67 |
68 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
69 |
70 | let userPasswordString = "\(username):\(accessToken)"
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:92:19: error: cannot find 'URLRequest' in scope
90 | }
91 |
92 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
93 | let userPasswordString = "\(username):\(accessToken)"
94 | let userPasswordData = userPasswordString.data(using: .utf8)
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:110:19: error: cannot find 'URLRequest' in scope
108 | }
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | let userPasswordString = "\(username):\(accessToken)"
112 | let userPasswordData = userPasswordString.data(using: .utf8)
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:137:19: error: cannot find 'URLRequest' in scope
135 | }
136 |
137 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
138 | let userPasswordString = "\(username):\(accessToken)"
139 | let userPasswordData = userPasswordString.data(using: .utf8)
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:153:19: error: cannot find 'URLRequest' in scope
151 | }
152 |
153 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
154 | let userPasswordString = "\(username):\(accessToken)"
155 | let userPasswordData = userPasswordString.data(using: .utf8)
[29/34] Compiling SPDCore PackageManager.swift
[30/34] Compiling SPDCore PackageCrawler.swift
BUILD FAILURE 6.1 linux