Build Information
Failed to build Soft, reference master (000215
), with Swift 6.0 for Linux on 31 Oct 2024 07:17:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" 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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/oliveroneill/soft.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/oliveroneill/soft
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0002155 Update to use Swift's inbuilt Result type
Cloned https://github.com/oliveroneill/soft.git
Revision (git rev-parse @):
000215572d4c4804894844c460b24570ed63fc4d
SUCCESS checkout https://github.com/oliveroneill/soft.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/oliveroneill/soft.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" 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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/IBM-Swift/SwiftyRequest.git
Fetching https://github.com/oliveroneill/WebBrowser.git
[1/58] Fetching webbrowser
Fetched https://github.com/oliveroneill/WebBrowser.git from cache (0.19s)
[1/2095] Fetching swiftyrequest
Fetched https://github.com/IBM-Swift/SwiftyRequest.git from cache (0.31s)
Computing version for https://github.com/oliveroneill/WebBrowser.git
Computed https://github.com/oliveroneill/WebBrowser.git at 1.0.0 (0.48s)
Fetching https://github.com/JohnSundell/ShellOut.git
[1/960] Fetching shellout
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.17s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (2.56s)
Computing version for https://github.com/IBM-Swift/SwiftyRequest.git
Computed https://github.com/IBM-Swift/SwiftyRequest.git at 1.1.3 (0.59s)
Fetching https://github.com/IBM-Swift/LoggerAPI.git
Fetching https://github.com/IBM-Swift/CircuitBreaker.git
[1/771] Fetching loggerapi
[171/2504] Fetching loggerapi, circuitbreaker
Fetched https://github.com/IBM-Swift/LoggerAPI.git from cache (0.29s)
Fetched https://github.com/IBM-Swift/CircuitBreaker.git from cache (0.29s)
Computing version for https://github.com/IBM-Swift/CircuitBreaker.git
Computed https://github.com/IBM-Swift/CircuitBreaker.git at 5.1.0 (2.61s)
Computing version for https://github.com/IBM-Swift/LoggerAPI.git
Computed https://github.com/IBM-Swift/LoggerAPI.git at 1.9.200 (0.60s)
Fetching https://github.com/apple/swift-log.git
[1/3649] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.35s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.65s)
Creating working copy for https://github.com/IBM-Swift/LoggerAPI.git
Working copy of https://github.com/IBM-Swift/LoggerAPI.git resolved at 1.9.200
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/IBM-Swift/SwiftyRequest.git
Working copy of https://github.com/IBM-Swift/SwiftyRequest.git resolved at 1.1.3
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/oliveroneill/WebBrowser.git
Working copy of https://github.com/oliveroneill/WebBrowser.git resolved at 1.0.0
Creating working copy for https://github.com/IBM-Swift/CircuitBreaker.git
Working copy of https://github.com/IBM-Swift/CircuitBreaker.git resolved at 5.1.0
warning: 'circuitbreaker': 'circuitbreaker' dependency on 'https://github.com/Kitura/LoggerAPI.git' conflicts with dependency on 'https://github.com/IBM-Swift/LoggerAPI.git' which has the same identity 'loggerapi'. this will be escalated to an error in future versions of SwiftPM.
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/15] Compiling Logging LogHandler.swift
[10/15] Compiling Logging Locks.swift
[11/15] Emitting module Logging
[12/15] Compiling Logging Logging.swift
[13/15] Compiling Logging MetadataProvider.swift
[15/18] Emitting module ShellOut
[16/18] Compiling ShellOut ShellOut.swift
[18/21] Compiling LoggerAPI Logger.swift
[19/21] Emitting module LoggerAPI
[21/32] Compiling CircuitBreaker Invocation.swift
[22/33] Compiling CircuitBreaker Utils.swift
[23/33] Compiling CircuitBreaker Stats.swift
[24/33] Compiling CircuitBreaker Monitor.swift
[25/33] Compiling CircuitBreaker MonitorCollection.swift
[26/33] Compiling CircuitBreaker Snapshot.swift
[27/33] Compiling CircuitBreaker BreakerError.swift
[28/33] Compiling CircuitBreaker Bulkhead.swift
[29/33] Emitting module CircuitBreaker
[30/33] Compiling CircuitBreaker CircuitBreaker.swift
[31/33] Compiling CircuitBreaker Collection.swift
[33/43] Compiling WebBrowser WebBrowser.swift
[34/43] Emitting module WebBrowser
[35/44] Compiling SwiftyRequest RestToken.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:716:25: error: cannot find type 'URLRequest' in scope
714 |
715 | /// The rest request
716 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
717 |
718 | /// The response to the request
[36/44] Compiling SwiftyRequest RestUtilities.swift
[38/45] Compiling SwiftyRequest MultipartFormData.swift
[39/45] Compiling SwiftyRequest StringExtensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[40/45] Compiling SwiftyRequest JSON.swift
[41/45] Compiling SwiftyRequest CodableExtensions.swift
[42/45] Compiling SwiftyRequest HTTPMethod.swift
[43/45] Compiling SwiftyRequest JSONWrapper.swift
[44/45] Emitting module SwiftyRequest
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// A default `URLSession` instance
29 | private var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | var session = URLSession(configuration: URLSessionConfiguration.default)
31 | if isSecure && isSelfSigned {
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:40:26: error: cannot find type 'URLRequest' in scope
38 |
39 | // The HTTP Request
40 | private var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// `CircuitBreaker` instance for this `RestRequest`
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:43:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | /// `CircuitBreaker` instance for this `RestRequest`
43 | public var circuitBreaker: CircuitBreaker<(Data?, HTTPURLResponse?, Error?) -> Void, String>?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | /// Parameters for a `CircuitBreaker` instance.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:92:34: error: 'nil' requires a contextual type
90 | }
91 | } else {
92 | request.setValue(nil, forHTTPHeaderField: "Authorization")
| `- error: 'nil' requires a contextual type
93 | }
94 | }
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:205:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 | ///
204 | /// - Parameter completionHandler: Callback used on completion of operation
205 | public func response(completionHandler: @escaping (Data?, HTTPURLResponse?, Error?) -> Void) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | if let breaker = circuitBreaker {
207 | breaker.run(commandArgs: completionHandler, fallbackArgs: "Circuit is open")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:277:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - completionHandler: Callback used on completion of operation
276 | public func responseObject<T: JSONDecodable>(
277 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | path: [JSONPathType]? = nil,
279 | templateParams: [String: String]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:355:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | /// - completionHandler: Callback used on completion of operation
354 | public func responseObject<T: Decodable>(
355 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
356 | templateParams: [String: String]? = nil,
357 | queryItems: [URLQueryItem]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:410:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
408 | /// - completionHandler: Callback used on completion of operation
409 | public func responseArray<T: JSONDecodable>(
410 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
411 | path: [JSONPathType]? = nil,
412 | templateParams: [String: String]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:488:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | /// - completionHandler: Callback used on completion of operation
487 | public func responseString(
488 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
489 | templateParams: [String: String]? = nil,
490 | queryItems: [URLQueryItem]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:553:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
551 | /// - completionHandler: Callback used on completion of operation
552 | public func responseVoid(
553 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
554 | templateParams: [String: String]? = nil,
555 | queryItems: [URLQueryItem]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:595:77: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
593 | /// - destination: URL destination to save the file to
594 | /// - completionHandler: Callback used on completion of operation
595 | public func download(to destination: URL, completionHandler: @escaping (HTTPURLResponse?, Error?) -> Void) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
596 | let task = session.downloadTask(with: request) { (source, response, error) in
597 | do {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:616:66: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
614 | ///
615 | /// - Parameter invocation: `Invocation` contains a command argument, Void return type, and a String fallback arguement
616 | private func handleInvocation(invocation: Invocation<(Data?, HTTPURLResponse?, Error?) -> Void, String>) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
617 | let task = session.dataTask(with: request) { (data, response, error) in
618 | if error != nil {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:716:25: error: cannot find type 'URLRequest' in scope
714 |
715 | /// The rest request
716 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
717 |
718 | /// The response to the request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:719:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
717 |
718 | /// The response to the request
719 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
720 |
721 | /// The Response Data
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:793:24: error: cannot find type 'URLSessionDelegate' in scope
791 |
792 | // URL Session extension
793 | extension RestRequest: URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
794 |
795 | /// URL session function to allow trusting certain URLs
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:142: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
794 |
795 | /// URL session function to allow trusting certain URLs
796 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
797 | let method = challenge.protectionSpace.authenticationMethod
798 | let host = challenge.protectionSpace.host
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 |
795 | /// URL session function to allow trusting certain URLs
796 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | let method = challenge.protectionSpace.authenticationMethod
798 | let host = challenge.protectionSpace.host
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 |
795 | /// URL session function to allow trusting certain URLs
796 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | let method = challenge.protectionSpace.authenticationMethod
798 | let host = challenge.protectionSpace.host
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
[45/45] Compiling SwiftyRequest RestRequest.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// A default `URLSession` instance
29 | private var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | var session = URLSession(configuration: URLSessionConfiguration.default)
31 | if isSecure && isSelfSigned {
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:40:26: error: cannot find type 'URLRequest' in scope
38 |
39 | // The HTTP Request
40 | private var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// `CircuitBreaker` instance for this `RestRequest`
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:43:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | /// `CircuitBreaker` instance for this `RestRequest`
43 | public var circuitBreaker: CircuitBreaker<(Data?, HTTPURLResponse?, Error?) -> Void, String>?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | /// Parameters for a `CircuitBreaker` instance.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:92:34: error: 'nil' requires a contextual type
90 | }
91 | } else {
92 | request.setValue(nil, forHTTPHeaderField: "Authorization")
| `- error: 'nil' requires a contextual type
93 | }
94 | }
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:205:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 | ///
204 | /// - Parameter completionHandler: Callback used on completion of operation
205 | public func response(completionHandler: @escaping (Data?, HTTPURLResponse?, Error?) -> Void) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | if let breaker = circuitBreaker {
207 | breaker.run(commandArgs: completionHandler, fallbackArgs: "Circuit is open")
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:277:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// - completionHandler: Callback used on completion of operation
276 | public func responseObject<T: JSONDecodable>(
277 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | path: [JSONPathType]? = nil,
279 | templateParams: [String: String]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:355:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | /// - completionHandler: Callback used on completion of operation
354 | public func responseObject<T: Decodable>(
355 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
356 | templateParams: [String: String]? = nil,
357 | queryItems: [URLQueryItem]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:410:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
408 | /// - completionHandler: Callback used on completion of operation
409 | public func responseArray<T: JSONDecodable>(
410 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
411 | path: [JSONPathType]? = nil,
412 | templateParams: [String: String]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:488:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | /// - completionHandler: Callback used on completion of operation
487 | public func responseString(
488 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
489 | templateParams: [String: String]? = nil,
490 | queryItems: [URLQueryItem]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:553:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
551 | /// - completionHandler: Callback used on completion of operation
552 | public func responseVoid(
553 | responseToError: ((HTTPURLResponse?, Data?) -> Error?)? = nil,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
554 | templateParams: [String: String]? = nil,
555 | queryItems: [URLQueryItem]? = nil,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:595:77: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
593 | /// - destination: URL destination to save the file to
594 | /// - completionHandler: Callback used on completion of operation
595 | public func download(to destination: URL, completionHandler: @escaping (HTTPURLResponse?, Error?) -> Void) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
596 | let task = session.downloadTask(with: request) { (source, response, error) in
597 | do {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:616:66: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
614 | ///
615 | /// - Parameter invocation: `Invocation` contains a command argument, Void return type, and a String fallback arguement
616 | private func handleInvocation(invocation: Invocation<(Data?, HTTPURLResponse?, Error?) -> Void, String>) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
617 | let task = session.dataTask(with: request) { (data, response, error) in
618 | if error != nil {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:716:25: error: cannot find type 'URLRequest' in scope
714 |
715 | /// The rest request
716 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
717 |
718 | /// The response to the request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:719:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
717 |
718 | /// The response to the request
719 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
720 |
721 | /// The Response Data
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:793:24: error: cannot find type 'URLSessionDelegate' in scope
791 |
792 | // URL Session extension
793 | extension RestRequest: URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
794 |
795 | /// URL session function to allow trusting certain URLs
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:142: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
794 |
795 | /// URL session function to allow trusting certain URLs
796 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
797 | let method = challenge.protectionSpace.authenticationMethod
798 | let host = challenge.protectionSpace.host
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 |
795 | /// URL session function to allow trusting certain URLs
796 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | let method = challenge.protectionSpace.authenticationMethod
798 | let host = challenge.protectionSpace.host
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:796:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
794 |
795 | /// URL session function to allow trusting certain URLs
796 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
797 | let method = challenge.protectionSpace.authenticationMethod
798 | let host = challenge.protectionSpace.host
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:30:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | /// A default `URLSession` instance
29 | private var session: URLSession {
30 | var session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | if isSecure && isSelfSigned {
32 | let config = URLSessionConfiguration.default
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:30:73: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
28 | /// A default `URLSession` instance
29 | private var session: URLSession {
30 | var session = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
31 | if isSecure && isSelfSigned {
32 | let config = URLSessionConfiguration.default
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:32:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 | var session = URLSession(configuration: URLSessionConfiguration.default)
31 | if isSecure && isSelfSigned {
32 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
33 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
34 | session = URLSession(configuration: config, delegate: self, delegateQueue: .main)
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:33:42: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | if isSecure && isSelfSigned {
32 | let config = URLSessionConfiguration.default
33 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
34 | session = URLSession(configuration: config, delegate: self, delegateQueue: .main)
35 | }
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:34:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | let config = URLSessionConfiguration.default
33 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
34 | session = URLSession(configuration: config, delegate: self, delegateQueue: .main)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | }
36 | return session
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:34:89: error: cannot infer contextual base in reference to member 'main'
32 | let config = URLSessionConfiguration.default
33 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
34 | session = URLSession(configuration: config, delegate: self, delegateQueue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
35 | }
36 | return session
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:105:105: error: 'nil' requires a contextual type
103 | // Remove any header fields external to the RestRequest supported headers
104 | let s: Set<String> = ["Authorization", "Accept", "Content-Type", "User-Agent"]
105 | _ = request.allHTTPHeaderFields?.map { key, value in if !s.contains(key) { request.setValue(nil, forHTTPHeaderField: key) } }
| `- error: 'nil' requires a contextual type
106 | // Add new header parameters
107 | for (key, value) in newValue {
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:184:24: error: cannot find 'URLRequest' in scope
182 | let urlComponents = URLComponents(string: url) ?? URLComponents(string: "")!
183 | let urlObject = urlComponents.url ?? URL(string: "n/a")!
184 | self.request = URLRequest(url: urlObject)
| `- error: cannot find 'URLRequest' in scope
185 |
186 | // Set inital fields
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:209:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
207 | breaker.run(commandArgs: completionHandler, fallbackArgs: "Circuit is open")
208 | } else {
209 | let task = session.dataTask(with: request) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
210 | guard error == nil, let response = response as? HTTPURLResponse else {
211 | completionHandler(nil, nil, error)
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:215:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
213 | }
214 |
215 | let code = response.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
216 | if code >= 200 && code < 300 {
217 | completionHandler(data, response, error)
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:240:32: error: generic parameter 'T' could not be inferred
238 | if let error = performSubstitutions(params: templateParams) {
239 | let result = Result<Data>.failure(error)
240 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
241 | completionHandler(dataResponse)
242 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:240:73: error: 'nil' requires a contextual type
238 | if let error = performSubstitutions(params: templateParams) {
239 | let result = Result<Data>.failure(error)
240 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
241 | completionHandler(dataResponse)
242 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:240:84: error: 'nil' requires a contextual type
238 | if let error = performSubstitutions(params: templateParams) {
239 | let result = Result<Data>.failure(error)
240 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
241 | completionHandler(dataResponse)
242 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:251:36: error: generic parameter 'T' could not be inferred
249 | if let error = error {
250 | let result = Result<Data>.failure(error)
251 | let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
252 | completionHandler(dataResponse)
253 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:285:32: error: generic parameter 'T' could not be inferred
283 | if let error = performSubstitutions(params: templateParams) {
284 | let result = Result<T>.failure(error)
285 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
286 | completionHandler(dataResponse)
287 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:285:73: error: 'nil' requires a contextual type
283 | if let error = performSubstitutions(params: templateParams) {
284 | let result = Result<T>.failure(error)
285 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
286 | completionHandler(dataResponse)
287 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:285:84: error: 'nil' requires a contextual type
283 | if let error = performSubstitutions(params: templateParams) {
284 | let result = Result<T>.failure(error)
285 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
286 | completionHandler(dataResponse)
287 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:296:36: error: generic parameter 'T' could not be inferred
294 | if let error = error {
295 | let result = Result<T>.failure(error)
296 | let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
297 | completionHandler(dataResponse)
298 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:362:32: error: generic parameter 'T' could not be inferred
360 | if let error = performSubstitutions(params: templateParams) {
361 | let result = Result<T>.failure(error)
362 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
363 | completionHandler(dataResponse)
364 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:362:73: error: 'nil' requires a contextual type
360 | if let error = performSubstitutions(params: templateParams) {
361 | let result = Result<T>.failure(error)
362 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
363 | completionHandler(dataResponse)
364 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:362:84: error: 'nil' requires a contextual type
360 | if let error = performSubstitutions(params: templateParams) {
361 | let result = Result<T>.failure(error)
362 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
363 | completionHandler(dataResponse)
364 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:373:36: error: generic parameter 'T' could not be inferred
371 | if let error = error ?? responseToError?(response, data) {
372 | let result = Result<T>.failure(error)
373 | let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
374 | completionHandler(dataResponse)
375 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:418:32: error: generic parameter 'T' could not be inferred
416 | if let error = performSubstitutions(params: templateParams) {
417 | let result = Result<[T]>.failure(error)
418 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
419 | completionHandler(dataResponse)
420 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:418:73: error: 'nil' requires a contextual type
416 | if let error = performSubstitutions(params: templateParams) {
417 | let result = Result<[T]>.failure(error)
418 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
419 | completionHandler(dataResponse)
420 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:418:84: error: 'nil' requires a contextual type
416 | if let error = performSubstitutions(params: templateParams) {
417 | let result = Result<[T]>.failure(error)
418 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
419 | completionHandler(dataResponse)
420 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:429:36: error: generic parameter 'T' could not be inferred
427 | if let error = error {
428 | let result = Result<[T]>.failure(error)
429 | let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
430 | completionHandler(dataResponse)
431 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:495:32: error: generic parameter 'T' could not be inferred
493 | if let error = performSubstitutions(params: templateParams) {
494 | let result = Result<String>.failure(error)
495 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
496 | completionHandler(dataResponse)
497 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:495:73: error: 'nil' requires a contextual type
493 | if let error = performSubstitutions(params: templateParams) {
494 | let result = Result<String>.failure(error)
495 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
496 | completionHandler(dataResponse)
497 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:495:84: error: 'nil' requires a contextual type
493 | if let error = performSubstitutions(params: templateParams) {
494 | let result = Result<String>.failure(error)
495 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
496 | completionHandler(dataResponse)
497 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:506:36: error: generic parameter 'T' could not be inferred
504 | if let error = error {
505 | let result = Result<String>.failure(error)
506 | let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
507 | completionHandler(dataResponse)
508 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:560:32: error: generic parameter 'T' could not be inferred
558 | if let error = performSubstitutions(params: templateParams) {
559 | let result = Result<Void>.failure(error)
560 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
561 | completionHandler(dataResponse)
562 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:560:73: error: 'nil' requires a contextual type
558 | if let error = performSubstitutions(params: templateParams) {
559 | let result = Result<Void>.failure(error)
560 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
561 | completionHandler(dataResponse)
562 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:560:84: error: 'nil' requires a contextual type
558 | if let error = performSubstitutions(params: templateParams) {
559 | let result = Result<Void>.failure(error)
560 | let dataResponse = RestResponse(request: request, response: nil, data: nil, result: result)
| `- error: 'nil' requires a contextual type
561 | completionHandler(dataResponse)
562 | return
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:571:36: error: generic parameter 'T' could not be inferred
569 | if let error = error {
570 | let result = Result<Void>.failure(error)
571 | let dataResponse = RestResponse(request: self.request, response: response, data: data, result: result)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
572 | completionHandler(dataResponse)
573 | return
:
711 | /// Contains data associated with a finished network request.
712 | /// With `T` being the type of the response expected to be received
713 | public struct RestResponse<T> {
| `- note: 'T' declared as parameter to type 'RestResponse'
714 |
715 | /// The rest request
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:596:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
594 | /// - completionHandler: Callback used on completion of operation
595 | public func download(to destination: URL, completionHandler: @escaping (HTTPURLResponse?, Error?) -> Void) {
596 | let task = session.downloadTask(with: request) { (source, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
597 | do {
598 | guard let source = source else {
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:617:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
615 | /// - Parameter invocation: `Invocation` contains a command argument, Void return type, and a String fallback arguement
616 | private func handleInvocation(invocation: Invocation<(Data?, HTTPURLResponse?, Error?) -> Void, String>) {
617 | let task = session.dataTask(with: request) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
618 | if error != nil {
619 | invocation.notifyFailure(error: BreakerError(reason: error?.localizedDescription))
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:797:32: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
795 | /// URL session function to allow trusting certain URLs
796 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
797 | let method = challenge.protectionSpace.authenticationMethod
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
798 | let host = challenge.protectionSpace.host
799 |
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:798:30: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
796 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
797 | let method = challenge.protectionSpace.authenticationMethod
798 | let host = challenge.protectionSpace.host
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
799 |
800 | guard let url = URLComponents(string: self.url), let baseHost = url.host else {
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:801:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
799 |
800 | guard let url = URLComponents(string: self.url), let baseHost = url.host else {
801 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
802 | return
803 | }
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:801:56: error: 'nil' requires a contextual type
799 |
800 | guard let url = URLComponents(string: self.url), let baseHost = url.host else {
801 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
802 | return
803 | }
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:808:15: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
806 |
807 | switch (method, host) {
808 | case (NSURLAuthenticationMethodServerTrust, baseHost):
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
809 | #if !os(Linux)
810 | guard #available(iOS 3.0, macOS 10.6, *), let trust = challenge.protectionSpace.serverTrust else {
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:823:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
821 | #endif
822 | default:
823 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
824 | }
825 | }
/host/spi-builder-workspace/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/RestRequest.swift:823:56: error: 'nil' requires a contextual type
821 | #endif
822 | default:
823 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
824 | }
825 | }
BUILD FAILURE 6.0 linux