The Swift Package Index logo.Swift Package Index

Build Information

Failed to build danger-swift, reference master (14a6d1), with Swift 6.2 for Wasm on 24 Oct 2026 01:34:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/danger/swift.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/danger/swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 14a6d16 Enable dev depdendencies
Cloned https://github.com/danger/swift.git
Revision (git rev-parse @):
14a6d1696085ed4f09ea26fb47330e3c9996ba8d
SUCCESS checkout https://github.com/danger/swift.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/danger/swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/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:c2cc4df169d3c45015ced899e997f329be5fc90bdbfce388bd8981e1ea44d639
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/shibapm/PackageConfig.git
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/Realm/SwiftLint
Fetching https://github.com/shibapm/Rocket
Fetching https://github.com/shibapm/Komondor
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git
[1/509] Fetching komondor
[37/1089] Fetching komondor, packageconfig
[1015/2475] Fetching komondor, packageconfig, rocket
[2476/64956] Fetching komondor, packageconfig, rocket, swiftformat
[8725/231019] Fetching komondor, packageconfig, rocket, swiftformat, swiftlint
[17653/247612] Fetching komondor, packageconfig, rocket, swiftformat, swiftlint, swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (2.98s)
Fetching https://github.com/mxcl/Version
[45702/231019] Fetching komondor, packageconfig, rocket, swiftformat, swiftlint
[46577/231330] Fetching komondor, packageconfig, rocket, swiftformat, swiftlint, version
Fetched https://github.com/mxcl/Version from cache (0.42s)
Fetching https://github.com/shibapm/Logger
[47826/231019] Fetching komondor, packageconfig, rocket, swiftformat, swiftlint
[49531/231135] Fetching komondor, packageconfig, rocket, swiftformat, swiftlint, logger
Fetched https://github.com/shibapm/Logger from cache (0.38s)
Fetching https://github.com/nerdishbynature/octokit.swift
[49700/231019] Fetching komondor, packageconfig, rocket, swiftformat, swiftlint
[51615/236307] Fetching komondor, packageconfig, rocket, swiftformat, swiftlint, octokit.swift
Fetched https://github.com/nerdishbynature/octokit.swift from cache (0.51s)
[52772/231019] Fetching komondor, packageconfig, rocket, swiftformat, swiftlint
Fetched https://github.com/shibapm/PackageConfig.git from cache (28.00s)
Fetched https://github.com/shibapm/Rocket from cache (28.00s)
Fetched https://github.com/shibapm/Komondor from cache (28.00s)
Fetched https://github.com/nicklockwood/SwiftFormat from cache (28.31s)
Fetched https://github.com/Realm/SwiftLint from cache (28.55s)
Computing version for https://github.com/shibapm/Rocket
Computed https://github.com/shibapm/Rocket at 1.3.0 (29.44s)
Fetching https://github.com/kareman/SwiftShell
Fetching https://github.com/jpsim/Yams
[1/4891] Fetching swiftshell
[4892/16769] Fetching swiftshell, yams
Fetched https://github.com/kareman/SwiftShell from cache (1.06s)
Fetched https://github.com/jpsim/Yams from cache (1.07s)
Computing version for https://github.com/shibapm/Komondor
Computed https://github.com/shibapm/Komondor at 1.1.4 (1.96s)
Fetching https://github.com/JohnSundell/ShellOut.git
[1/980] Fetching shellout
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.40s)
Computing version for https://github.com/nerdishbynature/octokit.swift
Computed https://github.com/nerdishbynature/octokit.swift at 0.14.0 (0.54s)
Fetching https://github.com/nerdishbynature/RequestKit.git
[1/1693] Fetching requestkit
Fetched https://github.com/nerdishbynature/RequestKit.git from cache (0.43s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (0.60s)
Computing version for https://github.com/kareman/SwiftShell
Computed https://github.com/kareman/SwiftShell at 5.1.1 (0.18s)
Computing version for https://github.com/nerdishbynature/RequestKit.git
Computed https://github.com/nerdishbynature/RequestKit.git at 3.4.0 (0.17s)
Computing version for https://github.com/mxcl/Version
Computed https://github.com/mxcl/Version at 2.2.1 (0.18s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (0.17s)
Computing version for https://github.com/shibapm/PackageConfig.git
Computed https://github.com/shibapm/PackageConfig.git at 1.1.3 (0.17s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 5.4.0 (0.17s)
Computing version for https://github.com/Realm/SwiftLint
Computed https://github.com/Realm/SwiftLint at 0.59.1 (0.21s)
Fetching https://github.com/scottrhoyt/SwiftyTextTable.git
Fetching https://github.com/jpsim/SourceKitten.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/JohnSundell/CollectionConcurrencyKit.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/101] Fetching collectionconcurrencykit
[102/1030] Fetching collectionconcurrencykit, swiftytexttable
[1031/14476] Fetching collectionconcurrencykit, swiftytexttable, cryptoswift
[2914/30858] Fetching collectionconcurrencykit, swiftytexttable, cryptoswift, sourcekitten
[7338/50142] Fetching collectionconcurrencykit, swiftytexttable, cryptoswift, sourcekitten, swift-argument-parser
Fetched https://github.com/JohnSundell/CollectionConcurrencyKit.git from cache (0.99s)
Fetched https://github.com/scottrhoyt/SwiftyTextTable.git from cache (0.99s)
Fetched https://github.com/jpsim/SourceKitten.git from cache (0.99s)
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.13s)
[1/81072] Fetching swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (3.42s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.44s)
Computing version for https://github.com/JohnSundell/CollectionConcurrencyKit.git
Computed https://github.com/JohnSundell/CollectionConcurrencyKit.git at 0.2.0 (3.62s)
Computing version for https://github.com/scottrhoyt/SwiftyTextTable.git
Computed https://github.com/scottrhoyt/SwiftyTextTable.git at 0.9.0 (0.86s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.0 (0.25s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.10.0 (0.17s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.37.1 (0.17s)
Fetching https://github.com/drmohundro/SWXMLHash.git
[1/2879] Fetching swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (0.47s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 7.0.2 (0.63s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.15s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.19.7 (0.14s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5669] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.49s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.64s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/2727] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.61s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.13.1 (1.52s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.64.1 (0.17s)
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/kareman/SwiftShell
Working copy of https://github.com/kareman/SwiftShell resolved at 5.1.1
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.0
Creating working copy for https://github.com/Realm/SwiftLint
Working copy of https://github.com/Realm/SwiftLint resolved at 0.59.1
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.13.1
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing.git
Working copy of https://github.com/pointfreeco/swift-snapshot-testing.git resolved at 1.19.7
Creating working copy for https://github.com/shibapm/PackageConfig.git
Working copy of https://github.com/shibapm/PackageConfig.git resolved at 1.1.3
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 7.0.2
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.64.1
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.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/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
Creating working copy for https://github.com/shibapm/Komondor
Working copy of https://github.com/shibapm/Komondor resolved at 1.1.4
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.10.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/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 5.4.0
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/JohnSundell/CollectionConcurrencyKit.git
Working copy of https://github.com/JohnSundell/CollectionConcurrencyKit.git resolved at 0.2.0
Creating working copy for https://github.com/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.37.1
Creating working copy for https://github.com/scottrhoyt/SwiftyTextTable.git
Working copy of https://github.com/scottrhoyt/SwiftyTextTable.git resolved at 0.9.0
Creating working copy for https://github.com/shibapm/Rocket
Working copy of https://github.com/shibapm/Rocket resolved at 1.3.0
warning: 'komondor': Conflicting identity for rocket: dependency 'github.com/f-meloni/rocket' and dependency 'github.com/shibapm/rocket' both point to the same package identity 'rocket'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/shibapm/komondor->github.com/f-meloni/rocket (B) /host/spi-builder-workspace->github.com/shibapm/rocket. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
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
[1/1] Compiling plugin SwiftLintCommandPlugin
[2/2] Compiling plugin SwiftLintBuildToolPlugin
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
[5/5] Compiling plugin SwiftFormatPlugin
Building for debugging...
[5/31] Write sources
[16/31] Write swift-version-24593BA9C3E375BF.txt
[18/46] Compiling Version Version.swift
[19/46] Compiling Version Version+Range.swift
[20/46] Emitting module Version
[21/46] Compiling Version Version+Codable.swift
[22/46] Compiling Version Version+Comparable.swift
[23/46] Compiling Version Version+Foundation.swift
[25/47] Compiling RequestKit JSONPostRouter.swift
/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/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: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: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/JSONPostRouter.swift:40:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 38 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
 39 |             if let response = response as? HTTPURLResponse {
 40 |                 if !response.wasSuccessful {
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 41 |                     var userInfo = [String: Any]()
 42 |                     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/JSONPostRouter.swift:78:90: error: 'nil' requires a contextual type
 76 |
 77 |         let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
 78 |         let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 79 |         if let response = responseTuple.1 as? HTTPURLResponse {
 80 |             if !response.wasSuccessful {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:127:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
125 |
126 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
127 |             if let response = response as? HTTPURLResponse, !response.wasSuccessful {
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
128 |                 var userInfo = [String: Any]()
129 |                 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/JSONPostRouter.swift:178:90: error: 'nil' requires a contextual type
176 |
177 |         let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
178 |         let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
179 |         if let response = responseTuple.1 as? HTTPURLResponse, response.wasSuccessful == false {
180 |             var userInfo = [String: Any]()
[26/47] Compiling RequestKit Router.swift
/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>
[26/47] Wrapping AST for Version for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/47] Emitting module DangerShellExecutor
/host/spi-builder-workspace/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/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/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
[29/47] Compiling DangerShellExecutor ShellExecutor.swift
/host/spi-builder-workspace/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/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/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/Sources/DangerShellExecutor/ShellExecutor.swift:82:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 80 |             let result = String(data: data, encoding: .utf8).map { $0.trimmingCharacters(in: .whitespacesAndNewlines) } ?? ""
 81 |             return result
 82 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 83 |             return error.localizedDescription
 84 |         }
/host/spi-builder-workspace/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/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/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/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]
[30/47] Emitting module Logger
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/47] 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>
[32/47] Compiling RequestKit RequestKitSession.swift
/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: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: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: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: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: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: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/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/RequestKitSession.swift:26:40: error: cannot find type 'URLRequest' in scope
24 |
25 | extension URLSession: RequestKitURLSession {
26 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
   |                                        `- error: cannot find type 'URLRequest' in scope
27 |         return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
28 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:30:42: error: cannot find type 'URLRequest' in scope
28 |     }
29 |
30 |     public func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                          `- error: cannot find type 'URLRequest' in scope
31 |         return uploadTask(with: request, from: bodyData, completionHandler: completionHandler)
32 |     }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.2 wasm