This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftChecksDangerPlugin with Swift 6.0 (beta) for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/JosephDuffy/SwiftChecksDangerPlugin.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/JosephDuffy/SwiftChecksDangerPlugin
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 19a6298 Update to Danger 3.12.3 and Swift 5.5
Cloned https://github.com/JosephDuffy/SwiftChecksDangerPlugin.git
Revision (git rev-parse @):
19a6298dc882b26bd5444ea80a17d1fd97e6d8a9
SUCCESS checkout https://github.com/JosephDuffy/SwiftChecksDangerPlugin.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/JosephDuffy/SwiftChecksDangerPlugin.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/danger/swift.git
Fetching https://github.com/shibapm/Logger
Fetching https://github.com/nerdishbynature/octokit.swift
Fetching https://github.com/mxcl/Version
Fetching https://github.com/nerdishbynature/RequestKit.git
[1/251] Fetching version
[252/367] Fetching version, logger
[368/1921] Fetching version, logger, requestkit
[1922/11548] Fetching version, logger, requestkit, swift
[2885/15870] Fetching version, logger, requestkit, swift, octokit.swift
Fetched https://github.com/mxcl/Version from cache (0.31s)
[4076/15619] Fetching logger, requestkit, swift, octokit.swift
Fetched https://github.com/shibapm/Logger from cache (0.45s)
Fetched https://github.com/nerdishbynature/octokit.swift from cache (0.45s)
Fetched https://github.com/nerdishbynature/RequestKit.git from cache (0.50s)
Fetched https://github.com/danger/swift.git from cache (0.50s)
Computing version for https://github.com/danger/swift.git
Computed https://github.com/danger/swift.git at 3.12.3 (0.55s)
Computing version for https://github.com/nerdishbynature/octokit.swift
Computed https://github.com/nerdishbynature/octokit.swift at 0.11.0 (1.43s)
Computing version for https://github.com/mxcl/Version
Computed https://github.com/mxcl/Version at 1.2.0 (1.40s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (0.52s)
Computing version for https://github.com/nerdishbynature/RequestKit.git
Computed https://github.com/nerdishbynature/RequestKit.git at 2.3.0 (0.59s)
Creating working copy for https://github.com/danger/swift.git
Working copy of https://github.com/danger/swift.git resolved at 3.12.3
Creating working copy for https://github.com/nerdishbynature/octokit.swift
Working copy of https://github.com/nerdishbynature/octokit.swift resolved at 0.11.0
Creating working copy for https://github.com/nerdishbynature/RequestKit.git
Working copy of https://github.com/nerdishbynature/RequestKit.git resolved at 2.3.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/mxcl/Version
Working copy of https://github.com/mxcl/Version resolved at 1.2.0
Building for debugging...
[0/15] Write sources
[6/15] Write swift-version-24593BA9C3E375BF.txt
[8/23] Emitting module DangerShellExecutor
[9/23] Compiling DangerShellExecutor ShellExecutor.swift
[10/24] Emitting module Logger
[11/24] Compiling Logger Logger.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/25] Emitting module RequestKit
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:9:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |
 8 | public extension JSONPostRouter {
 9 |     public 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'
10 |         guard let request = request() else {
11 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:54:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
52 |     }
53 |
54 |     public func post<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder:JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
   |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |         guard let request = request() else {
56 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     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.
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
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:5:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     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.
 6 | }
 7 |
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:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 | }
11 |
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
13 |
14 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
13 |
14 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
16 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:62:80: error: cannot find type 'URLRequest' in scope
 60 |
 61 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 62 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 63 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 65 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:70:30: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public extension Router {
 70 |     public func request() -> URLRequest? {
    |                              `- error: cannot find type 'URLRequest' in scope
 71 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 72 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:124:87: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     public func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
125 |         var urlComponents = urlComponents
126 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:145:83: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 |     @available(*, deprecated, message: "Plase use `load` method instead")
145 |     public func loadJSON<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 |         return load(session, expectedResultType: expectedResultType, completion: completion)
147 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:149:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 |     }
148 |
149 |     public func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |         let decoder = JSONDecoder()
151 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:157:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     }
156 |
157 |     public func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |         guard let request = request() else {
159 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:192:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
190 |     }
191 |
192 |     public func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
193 |         guard let request = request() else {
194 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:230:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
228 | }
229 |
230 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
231 |     public var wasSuccessful: Bool {
232 |         let successRange = 200..<300
[15/25] Compiling RequestKit Router.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:62:80: error: cannot find type 'URLRequest' in scope
 60 |
 61 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 62 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 63 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 65 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:70:30: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public extension Router {
 70 |     public func request() -> URLRequest? {
    |                              `- error: cannot find type 'URLRequest' in scope
 71 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 72 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:124:87: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     public func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
125 |         var urlComponents = urlComponents
126 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:145:83: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 |     @available(*, deprecated, message: "Plase use `load` method instead")
145 |     public func loadJSON<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 |         return load(session, expectedResultType: expectedResultType, completion: completion)
147 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:149:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 |     }
148 |
149 |     public func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |         let decoder = JSONDecoder()
151 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:157:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     }
156 |
157 |     public func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |         guard let request = request() else {
159 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:192:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
190 |     }
191 |
192 |     public func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
193 |         guard let request = request() else {
194 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:230:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
228 | }
229 |
230 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
231 |     public var wasSuccessful: Bool {
232 |         let successRange = 200..<300
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:130:37: error: cannot find 'URLRequest' in scope
128 |         switch encoding {
129 |         case .url, .json:
130 |             var mutableURLRequest = URLRequest(url: url)
    |                                     `- error: cannot find 'URLRequest' in scope
131 |             mutableURLRequest.httpMethod = method.rawValue
132 |             return mutableURLRequest
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:136:37: error: cannot find 'URLRequest' in scope
134 |             let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
135 |             urlComponents.queryItems = nil // clear the query items as they go into the body
136 |             var mutableURLRequest = URLRequest(url: urlComponents.url!)
    |                                     `- error: cannot find 'URLRequest' in scope
137 |             mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
138 |             mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:164:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
162 |         let task = session.dataTask(with: request) { data, response, err in
163 |             if let response = response as? HTTPURLResponse {
164 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
165 |                     var userInfo = [String: Any]()
166 |                     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:199:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
197 |         let task = session.dataTask(with: request) { data, response, err in
198 |             if let response = response as? HTTPURLResponse {
199 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
200 |                     var userInfo = [String: Any]()
201 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
[16/25] Compiling RequestKit JSONPostRouter.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:9:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |
 8 | public extension JSONPostRouter {
 9 |     public 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'
10 |         guard let request = request() else {
11 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:54:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
52 |     }
53 |
54 |     public func post<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder:JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
   |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |         guard let request = request() else {
56 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:62:80: error: cannot find type 'URLRequest' in scope
 60 |
 61 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 62 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 63 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:124:87: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     public func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
125 |         var urlComponents = urlComponents
126 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 65 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:70:30: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public extension Router {
 70 |     public func request() -> URLRequest? {
    |                              `- error: cannot find type 'URLRequest' in scope
 71 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 72 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:24:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
22 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
23 |             if let response = response as? HTTPURLResponse {
24 |                 if !response.wasSuccessful {
   |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
25 |                     var userInfo = [String: Any]()
26 |                     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:69:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
67 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
68 |             if let response = response as? HTTPURLResponse {
69 |                 if !response.wasSuccessful {
   |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
70 |                     var userInfo = [String: Any]()
71 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
[17/25] Compiling RequestKit RequestKitSession.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     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.
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
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:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     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.
 6 | }
 7 |
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:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 | }
11 |
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
13 |
14 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
13 |
14 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
16 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:40: error: cannot find type 'URLRequest' in scope
13 |
14 | extension URLSession: RequestKitURLSession {
15 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
   |                                        `- error: cannot find type 'URLRequest' in scope
16 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
17 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:19:42: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                          `- error: cannot find type 'URLRequest' in scope
20 |         return uploadTask(with: request, from: bodyData, completionHandler: completionHandler)
21 |     }
[17/25] Wrapping AST for Logger for debugging
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.