Build Information
Failed to build DangerSwiftShoki, reference v0.3.1 (8a4af1), with Swift 6.2 for Wasm on 16 Oct 2026 03:59:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yumemi-inc/danger-swift-shoki.git
Reference: v0.3.1
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/yumemi-inc/danger-swift-shoki
* tag v0.3.1 -> FETCH_HEAD
HEAD is now at 8a4af1f Update all non-major dependencies (#10)
Cloned https://github.com/yumemi-inc/danger-swift-shoki.git
Revision (git rev-parse @):
8a4af1f72d1944348935c150b6213015f8c3bd4a
SUCCESS checkout https://github.com/yumemi-inc/danger-swift-shoki.git at v0.3.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/yumemi-inc/danger-swift-shoki.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:0563b842faffea9ddc6fe15fbd2051d02dff3ef29dc4b5bfe0a0910a084eee81
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/danger/swift.git
[1/10523] Fetching swift
Fetched https://github.com/danger/swift.git from cache (0.64s)
Computing version for https://github.com/danger/swift.git
Computed https://github.com/danger/swift.git at 3.23.0 (0.82s)
Fetching https://github.com/mxcl/Version
Fetching https://github.com/nerdishbynature/octokit.swift
Fetching https://github.com/shibapm/Logger
[1/311] Fetching version
[312/427] Fetching version, logger
Fetched https://github.com/shibapm/Logger from cache (0.36s)
[1/5288] Fetching octokit.swift
Fetched https://github.com/mxcl/Version from cache (0.50s)
Fetched https://github.com/nerdishbynature/octokit.swift from cache (0.50s)
Computing version for https://github.com/nerdishbynature/octokit.swift
Computed https://github.com/nerdishbynature/octokit.swift at 0.14.0 (0.64s)
Fetching https://github.com/nerdishbynature/RequestKit.git
[1/1693] Fetching requestkit
Fetched https://github.com/nerdishbynature/RequestKit.git from cache (0.41s)
Computing version for https://github.com/nerdishbynature/RequestKit.git
Computed https://github.com/nerdishbynature/RequestKit.git at 3.4.0 (0.65s)
Computing version for https://github.com/mxcl/Version
Computed https://github.com/mxcl/Version at 2.2.1 (0.22s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (1.25s)
Creating working copy for https://github.com/shibapm/Logger
Working copy of https://github.com/shibapm/Logger resolved at 0.2.3
Creating working copy for https://github.com/nerdishbynature/RequestKit.git
Working copy of https://github.com/nerdishbynature/RequestKit.git resolved at 3.4.0
Creating working copy for https://github.com/mxcl/Version
Working copy of https://github.com/mxcl/Version resolved at 2.2.1
Creating working copy for https://github.com/nerdishbynature/octokit.swift
Working copy of https://github.com/nerdishbynature/octokit.swift resolved at 0.14.0
Creating working copy for https://github.com/danger/swift.git
Working copy of https://github.com/danger/swift.git resolved at 3.23.0
warning: 'octokit.swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/octokit.swift/OctoKit/Info.plist
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/16] Emitting module RequestKit
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |
24 | public extension JSONPostRouter {
25 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | guard let request = request() else {
27 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | #if compiler(>=5.5.2) && canImport(_Concurrency)
71 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
72 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
73 | guard let request = request() else {
74 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
93 | #endif
94 |
95 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
96 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
97 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:101:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
99 | }
100 |
101 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
103 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:111:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 | }
110 |
111 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
112 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
113 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:158:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
156 | #if compiler(>=5.5.2) && canImport(_Concurrency)
157 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
158 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
159 | return try await post(session, decoder: configuration.decoder, expectedResultType: expectedResultType)
160 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:163:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 |
162 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
163 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
164 | let decoder = JSONDecoder()
165 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | #endif
17 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 | public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:65:80: error: cannot find type 'URLRequest' in scope
63 |
64 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
65 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
66 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
67 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:71:23: error: cannot find type 'URLRequest' in scope
69 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
70 | -> URLSessionDataTaskProtocol?
71 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:84:23: error: cannot find type 'URLRequest' in scope
82 |
83 | public extension Router {
84 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
85 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
86 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:138:80: error: cannot find type 'URLRequest' in scope
136 | }
137 |
138 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
139 | var urlComponents = urlComponents
140 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:159:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
157 |
158 | @available(*, deprecated, message: "Plase use `load` method instead")
159 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
160 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
161 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:165:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
163 | }
164 |
165 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
166 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
167 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:175:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
177 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:212:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 | }
211 |
212 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
214 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:218:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | }
217 |
218 | func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | guard let request = request() else {
220 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:243:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
241 |
242 | @discardableResult
243 | func delete(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
244 | guard let request = request() else { return nil }
245 | let task = session.dataTask(with: request) { data, response, err in
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:261:71: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
259 |
260 | @discardableResult
261 | func put<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
262 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
263 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:294:73: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
292 |
293 | @discardableResult
294 | func patch<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
295 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
296 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:327:81: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |
326 | @discardableResult
327 | func loadPaginated<T: Codable>(_ session: RequestKitURLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 | decoder: JSONDecoder = JSONDecoder(),
329 | expectedResultType _: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:361:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
359 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
360 | public extension Router {
361 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
362 | guard let request = request() else {
363 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:381:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
379 | }
380 |
381 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
382 | return try await load(session, decoder: configuration.decoder, expectedResultType: expectedResultType)
383 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:385:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
383 | }
384 |
385 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
386 | let decoder = JSONDecoder()
387 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:393:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
391 | }
392 |
393 | func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
394 | guard let request = request() else {
395 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:410:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
408 | }
409 |
410 | func delete(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
411 | guard let request = request() else {
412 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:424:71: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
422 | }
423 |
424 | func put<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
425 | guard let request = request() else {
426 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:442:73: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
440 | }
441 |
442 | func patch<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
443 | guard let request = request() else {
444 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:460:81: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
458 | }
459 |
460 | func loadPaginated<T: Codable>(_ session: RequestKitURLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
461 | decoder: JSONDecoder = JSONDecoder(),
462 | expectedResultType _: T.Type) async throws -> PaginatedResponse<T>
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:494:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
492 | }
493 |
494 | public extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
495 | var wasSuccessful: Bool {
496 | let successRange = 200 ..< 300
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/16] Emitting module DangerShellExecutor
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:58:31: error: cannot find 'DispatchQueue' in scope
56 | public struct ShellExecutor: ShellExecuting {
57 | /// Queue used to concurrently listen to both stdout and stderr
58 | private let outputQueue = DispatchQueue(label: "ShellExecutor.outputQueue", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
59 |
60 | public init() {}
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:58:94: error: cannot infer contextual base in reference to member 'concurrent'
56 | public struct ShellExecutor: ShellExecuting {
57 | /// Queue used to concurrently listen to both stdout and stderr
58 | private let outputQueue = DispatchQueue(label: "ShellExecutor.outputQueue", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
59 |
60 | public init() {}
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:142:51: error: cannot find type 'Process' in scope
140 | with arguments: [String],
141 | environmentVariables: [String: String],
142 | outputFile: String?) -> Process
| `- error: cannot find type 'Process' in scope
143 | {
144 | let scriptOutputFile: String
[10/16] Compiling DangerShellExecutor ShellExecutor.swift
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:58:31: error: cannot find 'DispatchQueue' in scope
56 | public struct ShellExecutor: ShellExecuting {
57 | /// Queue used to concurrently listen to both stdout and stderr
58 | private let outputQueue = DispatchQueue(label: "ShellExecutor.outputQueue", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
59 |
60 | public init() {}
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:58:94: error: cannot infer contextual base in reference to member 'concurrent'
56 | public struct ShellExecutor: ShellExecuting {
57 | /// Queue used to concurrently listen to both stdout and stderr
58 | private let outputQueue = DispatchQueue(label: "ShellExecutor.outputQueue", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
59 |
60 | public init() {}
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:142:51: error: cannot find type 'Process' in scope
140 | with arguments: [String],
141 | environmentVariables: [String: String],
142 | outputFile: String?) -> Process
| `- error: cannot find type 'Process' in scope
143 | {
144 | let scriptOutputFile: String
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:105:21: error: cannot find 'DispatchGroup' in scope
103 | try task.run()
104 |
105 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
106 |
107 | var stdoutString: String!
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:110:47: error: cannot infer contextual base in reference to member 'userInitiated'
108 | var stderrData: Data!
109 |
110 | outputQueue.async(group: group, qos: .userInitiated) {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
111 | // Pull out the STDOUT as a string because we'll need that regardless
112 | let stdoutData = stdout.fileHandleForReading.readDataToEndOfFile()
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:116:47: error: cannot infer contextual base in reference to member 'userInitiated'
114 | }
115 |
116 | outputQueue.async(group: group, qos: .userInitiated) {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
117 | // Read from STDERR to ensure the `Pipe` does not fill up
118 | stderrData = stderr.fileHandleForReading.readDataToEndOfFile()
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:154:20: error: cannot find 'Process' in scope
152 | let script = "\(command) \(arguments.joined(separator: " "))" + scriptOutputFile
153 |
154 | let task = Process()
| `- error: cannot find 'Process' in scope
155 | task.executableURL = URL(fileURLWithPath: "/bin/sh")
156 | task.arguments = ["-c", script]
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:65:80: error: cannot find type 'URLRequest' in scope
63 |
64 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
65 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
66 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
67 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:71:23: error: cannot find type 'URLRequest' in scope
69 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
70 | -> URLSessionDataTaskProtocol?
71 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:84:23: error: cannot find type 'URLRequest' in scope
82 |
83 | public extension Router {
84 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
85 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
86 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:138:80: error: cannot find type 'URLRequest' in scope
136 | }
137 |
138 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
139 | var urlComponents = urlComponents
140 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:159:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
157 |
158 | @available(*, deprecated, message: "Plase use `load` method instead")
159 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
160 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
161 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:165:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
163 | }
164 |
165 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
166 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
167 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:175:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
177 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:212:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
210 | }
211 |
212 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
213 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
214 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:218:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
216 | }
217 |
218 | func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | guard let request = request() else {
220 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:243:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
241 |
242 | @discardableResult
243 | func delete(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
244 | guard let request = request() else { return nil }
245 | let task = session.dataTask(with: request) { data, response, err in
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:261:71: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
259 |
260 | @discardableResult
261 | func put<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
262 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
263 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:294:73: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
292 |
293 | @discardableResult
294 | func patch<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
295 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
296 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:327:81: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |
326 | @discardableResult
327 | func loadPaginated<T: Codable>(_ session: RequestKitURLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 | decoder: JSONDecoder = JSONDecoder(),
329 | expectedResultType _: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:361:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
359 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
360 | public extension Router {
361 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
362 | guard let request = request() else {
363 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:381:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
379 | }
380 |
381 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
382 | return try await load(session, decoder: configuration.decoder, expectedResultType: expectedResultType)
383 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:385:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
383 | }
384 |
385 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
386 | let decoder = JSONDecoder()
387 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:393:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
391 | }
392 |
393 | func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
394 | guard let request = request() else {
395 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:410:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
408 | }
409 |
410 | func delete(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
411 | guard let request = request() else {
412 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:424:71: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
422 | }
423 |
424 | func put<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
425 | guard let request = request() else {
426 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:442:73: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
440 | }
441 |
442 | func patch<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
443 | guard let request = request() else {
444 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:460:81: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
458 | }
459 |
460 | func loadPaginated<T: Codable>(_ session: RequestKitURLSession = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
461 | decoder: JSONDecoder = JSONDecoder(),
462 | expectedResultType _: T.Type) async throws -> PaginatedResponse<T>
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:494:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
492 | }
493 |
494 | public extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
495 | var wasSuccessful: Bool {
496 | let successRange = 200 ..< 300
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:144:37: error: cannot find 'URLRequest' in scope
142 | switch encoding {
143 | case .url, .json:
144 | var mutableURLRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
145 | mutableURLRequest.httpMethod = method.rawValue
146 | return mutableURLRequest
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:150:37: error: cannot find 'URLRequest' in scope
148 | let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
149 | urlComponents.queryItems = nil // clear the query items as they go into the body
150 | var mutableURLRequest = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
151 | mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
152 | mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:184:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
182 | let task = session.dataTask(with: request) { data, response, err in
183 | if let response = response as? HTTPURLResponse {
184 | if response.wasSuccessful == false {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
185 | var userInfo = [String: Any]()
186 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:225:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
223 | let task = session.dataTask(with: request) { data, response, err in
224 | if let response = response as? HTTPURLResponse {
225 | if response.wasSuccessful == false {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
226 | var userInfo = [String: Any]()
227 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:246:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
244 | guard let request = request() else { return nil }
245 | let task = session.dataTask(with: request) { data, response, err in
246 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
247 | var userInfo = [String: Any]()
248 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:273:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
271 | }
272 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
273 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
274 | var userInfo = [String: Any]()
275 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:306:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
304 | }
305 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
306 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
307 | var userInfo = [String: Any]()
308 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:334:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
332 | guard let request = request() else { return nil }
333 | let task = session.dataTask(with: request) { data, response, err in
334 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
335 | var userInfo = [String: Any]()
336 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:366:76: error: 'nil' requires a contextual type
364 | }
365 |
366 | let responseTuple = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
367 |
368 | if let response = responseTuple.1 as? HTTPURLResponse {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:398:76: error: 'nil' requires a contextual type
396 | }
397 |
398 | let responseTuple = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
399 | if let response = responseTuple.1 as? HTTPURLResponse {
400 | if response.wasSuccessful == false {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:414:79: error: 'nil' requires a contextual type
412 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
413 | }
414 | let (data, response) = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
415 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
416 | var userInfo = [String: Any]()
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:429:101: error: 'nil' requires a contextual type
427 | }
428 | let body = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
429 | let (responseData, response) = try await session.upload(for: request, from: body, delegate: nil)
| `- error: 'nil' requires a contextual type
430 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
431 | var userInfo = [String: Any]()
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:447:101: error: 'nil' requires a contextual type
445 | }
446 | let body = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
447 | let (responseData, response) = try await session.upload(for: request, from: body, delegate: nil)
| `- error: 'nil' requires a contextual type
448 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
449 | var userInfo = [String: Any]()
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:467:79: error: 'nil' requires a contextual type
465 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
466 | }
467 | let (data, response) = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
468 | if let httpResponse = response as? HTTPURLResponse, !httpResponse.wasSuccessful {
469 | var userInfo = [String: Any]()
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:476:82: error: type of expression is ambiguous without a type annotation
474 | }
475 | let decoded = try decoder.decode(T.self, from: data)
476 | let linkHeader = (response as? HTTPURLResponse)?.allHeaderFields["Link"] as? String
| `- error: type of expression is ambiguous without a type annotation
477 | return PaginatedResponse(values: decoded, pageInfo: PageInfo(linkHeader: linkHeader))
478 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[11/16] Emitting module Logger
BUILD FAILURE 6.2 wasm