Build Information
Failed to build NetworkRequest, reference master (b46f1e
), with Swift 6.0 for Linux on 1 Nov 2024 20:46:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/yonaskolb/NetworkRequest.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/yonaskolb/NetworkRequest
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at b46f1ea make DecodingError.decodingError public
Cloned https://github.com/yonaskolb/NetworkRequest.git
Revision (git rev-parse @):
b46f1ea66f6e11af2f199098061a38ffc343522c
SUCCESS checkout https://github.com/yonaskolb/NetworkRequest.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/yonaskolb/NetworkRequest.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling NetworkRequest EncodableRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/12] Emitting module NetworkRequest
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:9:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Will be prepended to all request baseURLs and paths
8 | var baseURL: String?
9 | var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | var completionQueue = DispatchQueue.main
11 | var headers: [String: String]
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:10:69: error: cannot find type 'URLRequest' in scope
8 |
9 | /// validates and modifies the request. complete must be called with either .success or .fail
10 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// called before request is sent
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:10:109: error: cannot find type 'URLRequest' in scope
8 |
9 | /// validates and modifies the request. complete must be called with either .success or .fail
10 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// called before request is sent
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:14:86: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | var requestHandlers: [RequestHandler]
13 |
14 | public init(baseURL: String? = nil, headers: [String: String] = [:], urlSession: URLSession = .shared, requestHandlers: [RequestHandler] = []) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.baseURL = baseURL
16 | self.headers = headers
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/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:14:100: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 | var requestHandlers: [RequestHandler]
13 |
14 | public init(baseURL: String? = nil, headers: [String: String] = [:], urlSession: URLSession = .shared, requestHandlers: [RequestHandler] = []) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | self.baseURL = baseURL
16 | self.headers = headers
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/NetworkService.swift:27:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension URLSessionDataTask: Cancellable {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
28 |
29 | public typealias RequestResult<T> = Result<T, RequestError>
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestError.swift:6:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public enum RequestError: Error {
5 | /// A general networking error
6 | case networkError(URLError, Data?, HTTPURLResponse?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// The request returned a non success response
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/Sources/NetworkRequest/NetworkService/RequestError.swift:9:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// The request returned a non success response
9 | case apiError(Data, HTTPURLResponse?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | /// The response body failed decoding
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/Sources/NetworkRequest/NetworkService/RequestError.swift:6:10: warning: associated value 'networkError' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
4 | public enum RequestError: Error {
5 | /// A general networking error
6 | case networkError(URLError, Data?, HTTPURLResponse?)
| `- warning: associated value 'networkError' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
7 |
8 | /// The request returned a non success response
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestError.swift:9:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
7 |
8 | /// The request returned a non success response
9 | case apiError(Data, HTTPURLResponse?)
| `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
10 |
11 | /// The response body failed decoding
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:16:86: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// called when the request gets a url response
16 | func requestResponded(id: String, request: AnyRequest, data: Data?, urlResponse: HTTPURLResponse?, error: Error?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// called when the request completes
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:25:69: error: cannot find type 'URLRequest' in scope
23 |
24 | func requestCreated(id: String, request: AnyRequest){}
25 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
26 | complete(.success(urlRequest))
27 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:25:109: error: cannot find type 'URLRequest' in scope
23 |
24 | func requestCreated(id: String, request: AnyRequest){}
25 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
26 | complete(.success(urlRequest))
27 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:29:86: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 | func requestSent(id: String, request: AnyRequest) {}
29 | func requestResponded(id: String, request: AnyRequest, data: Data?, urlResponse: HTTPURLResponse?, error: Error?) {}
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | func requestCompleted(id: String, request: AnyRequest, result: RequestResult<Any>) {}
31 | }
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:54:76: error: cannot find type 'URLRequest' in scope
52 | }
53 |
54 | public func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
55 | if handlers.isEmpty {
56 | complete(.success(urlRequest))
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:54:116: error: cannot find type 'URLRequest' in scope
52 | }
53 |
54 | public func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
55 | if handlers.isEmpty {
56 | complete(.success(urlRequest))
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:82:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | public func requestResponded(id: String, request: AnyRequest, data: Data?, urlResponse: HTTPURLResponse?, error: Error?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | handlers.forEach {
84 | $0.requestResponded(id: id, request: request, data: data, urlResponse: urlResponse, error: error)
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:116:45: error: cannot find type 'URLRequest' in scope
114 | }
115 |
116 | public func modifyRequest(_ urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
117 | handler.modifyRequest(id: id, request: request, urlRequest: urlRequest, complete: complete)
118 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:116:85: error: cannot find type 'URLRequest' in scope
114 | }
115 |
116 | public func modifyRequest(_ urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
117 | handler.modifyRequest(id: id, request: request, urlRequest: urlRequest, complete: complete)
118 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:120:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public func requestResponded(data: Data?, urlResponse: HTTPURLResponse?, error: Error?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | handler.requestResponded(id: id, request: request, data: data, urlResponse: urlResponse, error: error)
122 | }
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:141:44: error: cannot find type 'URLRequest' in scope
139 | public var decodeResponse: (Data, Int) throws -> ResponseType
140 | public var encodeBody: () throws -> Data?
141 | public var getURLRequest: () throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
142 | public var responseType: Any.Type
143 |
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:46:36: error: cannot find type 'URLRequest' in scope
44 |
45 | /// get a fully formed URLRequest. This is provided by default and uses all of the above properties to create a URLRequest
46 | func getURLRequest() throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:71:36: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | func getURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | let percentEncodedPath = path.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
73 | let urlString = "\(baseURL)\(percentEncodedPath)"
[5/12] Compiling NetworkRequest NetworkServiceGroup.swift
[6/12] Compiling NetworkRequest NetworkService.swift
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/NetworkService.swift:27:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
25 | }
26 |
27 | extension URLSessionDataTask: Cancellable {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
28 |
29 | public typealias RequestResult<T> = Result<T, RequestError>
[7/12] Compiling NetworkRequest RequestError.swift
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestError.swift:6:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public enum RequestError: Error {
5 | /// A general networking error
6 | case networkError(URLError, Data?, HTTPURLResponse?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// The request returned a non success response
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/Sources/NetworkRequest/NetworkService/RequestError.swift:9:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// The request returned a non success response
9 | case apiError(Data, HTTPURLResponse?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | /// The response body failed decoding
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/Sources/NetworkRequest/NetworkService/RequestError.swift:6:10: warning: associated value 'networkError' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
4 | public enum RequestError: Error {
5 | /// A general networking error
6 | case networkError(URLError, Data?, HTTPURLResponse?)
| `- warning: associated value 'networkError' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
7 |
8 | /// The request returned a non success response
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestError.swift:9:10: warning: associated value 'apiError' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
7 |
8 | /// The request returned a non success response
9 | case apiError(Data, HTTPURLResponse?)
| `- warning: associated value 'apiError' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
10 |
11 | /// The response body failed decoding
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestError.swift:42:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | case let .networkError(error, _, _): return "\(error.localizedDescription)"
41 | case let .apiError(data, response):
42 | var error = "API returned \(response?.statusCode ?? 0)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | if let string = String(data: data, encoding: .utf8), !string.isEmpty {
44 | error += ":\n\(string)"
[8/12] Compiling NetworkRequest HTTPNetworkService.swift
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:9:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Will be prepended to all request baseURLs and paths
8 | var baseURL: String?
9 | var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | var completionQueue = DispatchQueue.main
11 | var headers: [String: String]
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:10:69: error: cannot find type 'URLRequest' in scope
8 |
9 | /// validates and modifies the request. complete must be called with either .success or .fail
10 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// called before request is sent
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:10:109: error: cannot find type 'URLRequest' in scope
8 |
9 | /// validates and modifies the request. complete must be called with either .success or .fail
10 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// called before request is sent
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:14:86: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | var requestHandlers: [RequestHandler]
13 |
14 | public init(baseURL: String? = nil, headers: [String: String] = [:], urlSession: URLSession = .shared, requestHandlers: [RequestHandler] = []) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.baseURL = baseURL
16 | self.headers = headers
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/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:14:100: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 | var requestHandlers: [RequestHandler]
13 |
14 | public init(baseURL: String? = nil, headers: [String: String] = [:], urlSession: URLSession = .shared, requestHandlers: [RequestHandler] = []) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | self.baseURL = baseURL
16 | self.headers = headers
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:39:25: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | do {
41 | urlRequest = try request.getURLRequest()
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:46:36: error: cannot find type 'URLRequest' in scope
44 |
45 | /// get a fully formed URLRequest. This is provided by default and uses all of the above properties to create a URLRequest
46 | func getURLRequest() throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:71:36: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | func getURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | let percentEncodedPath = path.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
73 | let urlString = "\(baseURL)\(percentEncodedPath)"
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:57:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | let cancelBlock = CancelBlock {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:61:26: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
59 | let cancelBlock = CancelBlock {
60 | if let dataTask = dataTask {
61 | dataTask.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
62 | }
63 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:116:45: error: cannot find type 'URLRequest' in scope
114 | }
115 |
116 | public func modifyRequest(_ urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
117 | handler.modifyRequest(id: id, request: request, urlRequest: urlRequest, complete: complete)
118 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:116:85: error: cannot find type 'URLRequest' in scope
114 | }
115 |
116 | public func modifyRequest(_ urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
117 | handler.modifyRequest(id: id, request: request, urlRequest: urlRequest, complete: complete)
118 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:34:17: warning: capture of 'requestHandler' with non-sendable type 'AnyRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | func complete(_ result: RequestResult<R.ResponseType>) {
33 | completionQueue.async {
34 | requestHandler.requestCompleted(result: result.map { $0 })
| `- warning: capture of 'requestHandler' with non-sendable type 'AnyRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | completion(result)
36 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:96:15: note: consider making struct 'AnyRequestHandler' conform to the 'Sendable' protocol
94 |
95 | /// Wraps a RequestHandler in an easy to use struct that can be initialized with any request
96 | public struct AnyRequestHandler {
| `- note: consider making struct 'AnyRequestHandler' conform to the 'Sendable' protocol
97 |
98 | let id: String
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:34:57: warning: capture of 'result' with non-sendable type 'RequestResult<R.ResponseType>' (aka 'Result<R.ResponseType, RequestError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | func complete(_ result: RequestResult<R.ResponseType>) {
33 | completionQueue.async {
34 | requestHandler.requestCompleted(result: result.map { $0 })
| `- warning: capture of 'result' with non-sendable type 'RequestResult<R.ResponseType>' (aka 'Result<R.ResponseType, RequestError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | completion(result)
36 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:35:17: warning: capture of 'completion' with non-sendable type '(RequestResult<R.ResponseType>) -> Void' (aka '(Result<R.ResponseType, RequestError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | completionQueue.async {
34 | requestHandler.requestCompleted(result: result.map { $0 })
35 | completion(result)
| |- warning: capture of 'completion' with non-sendable type '(RequestResult<R.ResponseType>) -> Void' (aka '(Result<R.ResponseType, RequestError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | }
37 | }
[9/12] Compiling NetworkRequest MockNetworkService.swift
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:9:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Will be prepended to all request baseURLs and paths
8 | var baseURL: String?
9 | var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | var completionQueue = DispatchQueue.main
11 | var headers: [String: String]
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:10:69: error: cannot find type 'URLRequest' in scope
8 |
9 | /// validates and modifies the request. complete must be called with either .success or .fail
10 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// called before request is sent
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:10:109: error: cannot find type 'URLRequest' in scope
8 |
9 | /// validates and modifies the request. complete must be called with either .success or .fail
10 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// called before request is sent
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:14:86: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | var requestHandlers: [RequestHandler]
13 |
14 | public init(baseURL: String? = nil, headers: [String: String] = [:], urlSession: URLSession = .shared, requestHandlers: [RequestHandler] = []) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.baseURL = baseURL
16 | self.headers = headers
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/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:14:100: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 | var requestHandlers: [RequestHandler]
13 |
14 | public init(baseURL: String? = nil, headers: [String: String] = [:], urlSession: URLSession = .shared, requestHandlers: [RequestHandler] = []) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | self.baseURL = baseURL
16 | self.headers = headers
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:39:25: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | var urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
40 | do {
41 | urlRequest = try request.getURLRequest()
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:46:36: error: cannot find type 'URLRequest' in scope
44 |
45 | /// get a fully formed URLRequest. This is provided by default and uses all of the above properties to create a URLRequest
46 | func getURLRequest() throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:71:36: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | func getURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | let percentEncodedPath = path.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
73 | let urlString = "\(baseURL)\(percentEncodedPath)"
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:57:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | }
56 |
57 | var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | let cancelBlock = CancelBlock {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:61:26: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
59 | let cancelBlock = CancelBlock {
60 | if let dataTask = dataTask {
61 | dataTask.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
62 | }
63 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:116:45: error: cannot find type 'URLRequest' in scope
114 | }
115 |
116 | public func modifyRequest(_ urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
117 | handler.modifyRequest(id: id, request: request, urlRequest: urlRequest, complete: complete)
118 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:116:85: error: cannot find type 'URLRequest' in scope
114 | }
115 |
116 | public func modifyRequest(_ urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
117 | handler.modifyRequest(id: id, request: request, urlRequest: urlRequest, complete: complete)
118 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:34:17: warning: capture of 'requestHandler' with non-sendable type 'AnyRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | func complete(_ result: RequestResult<R.ResponseType>) {
33 | completionQueue.async {
34 | requestHandler.requestCompleted(result: result.map { $0 })
| `- warning: capture of 'requestHandler' with non-sendable type 'AnyRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | completion(result)
36 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:96:15: note: consider making struct 'AnyRequestHandler' conform to the 'Sendable' protocol
94 |
95 | /// Wraps a RequestHandler in an easy to use struct that can be initialized with any request
96 | public struct AnyRequestHandler {
| `- note: consider making struct 'AnyRequestHandler' conform to the 'Sendable' protocol
97 |
98 | let id: String
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:34:57: warning: capture of 'result' with non-sendable type 'RequestResult<R.ResponseType>' (aka 'Result<R.ResponseType, RequestError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | func complete(_ result: RequestResult<R.ResponseType>) {
33 | completionQueue.async {
34 | requestHandler.requestCompleted(result: result.map { $0 })
| `- warning: capture of 'result' with non-sendable type 'RequestResult<R.ResponseType>' (aka 'Result<R.ResponseType, RequestError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | completion(result)
36 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/HTTPNetworkService.swift:35:17: warning: capture of 'completion' with non-sendable type '(RequestResult<R.ResponseType>) -> Void' (aka '(Result<R.ResponseType, RequestError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | completionQueue.async {
34 | requestHandler.requestCompleted(result: result.map { $0 })
35 | completion(result)
| |- warning: capture of 'completion' with non-sendable type '(RequestResult<R.ResponseType>) -> Void' (aka '(Result<R.ResponseType, RequestError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | }
37 | }
[10/12] Compiling NetworkRequest DecodableRequest.swift
[11/12] Compiling NetworkRequest RequestHandler.swift
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:10:69: error: cannot find type 'URLRequest' in scope
8 |
9 | /// validates and modifies the request. complete must be called with either .success or .fail
10 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// called before request is sent
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:10:109: error: cannot find type 'URLRequest' in scope
8 |
9 | /// validates and modifies the request. complete must be called with either .success or .fail
10 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// called before request is sent
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:16:86: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// called when the request gets a url response
16 | func requestResponded(id: String, request: AnyRequest, data: Data?, urlResponse: HTTPURLResponse?, error: Error?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// called when the request completes
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:25:69: error: cannot find type 'URLRequest' in scope
23 |
24 | func requestCreated(id: String, request: AnyRequest){}
25 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
26 | complete(.success(urlRequest))
27 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:25:109: error: cannot find type 'URLRequest' in scope
23 |
24 | func requestCreated(id: String, request: AnyRequest){}
25 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
26 | complete(.success(urlRequest))
27 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:29:86: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 | func requestSent(id: String, request: AnyRequest) {}
29 | func requestResponded(id: String, request: AnyRequest, data: Data?, urlResponse: HTTPURLResponse?, error: Error?) {}
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | func requestCompleted(id: String, request: AnyRequest, result: RequestResult<Any>) {}
31 | }
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:54:76: error: cannot find type 'URLRequest' in scope
52 | }
53 |
54 | public func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
55 | if handlers.isEmpty {
56 | complete(.success(urlRequest))
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:54:116: error: cannot find type 'URLRequest' in scope
52 | }
53 |
54 | public func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
55 | if handlers.isEmpty {
56 | complete(.success(urlRequest))
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:82:93: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | public func requestResponded(id: String, request: AnyRequest, data: Data?, urlResponse: HTTPURLResponse?, error: Error?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | handlers.forEach {
84 | $0.requestResponded(id: id, request: request, data: data, urlResponse: urlResponse, error: error)
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:116:45: error: cannot find type 'URLRequest' in scope
114 | }
115 |
116 | public func modifyRequest(_ urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
117 | handler.modifyRequest(id: id, request: request, urlRequest: urlRequest, complete: complete)
118 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:116:85: error: cannot find type 'URLRequest' in scope
114 | }
115 |
116 | public func modifyRequest(_ urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
117 | handler.modifyRequest(id: id, request: request, urlRequest: urlRequest, complete: complete)
118 | }
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:120:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public func requestResponded(data: Data?, urlResponse: HTTPURLResponse?, error: Error?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | handler.requestResponded(id: id, request: request, data: data, urlResponse: urlResponse, error: error)
122 | }
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/Sources/NetworkRequest/NetworkService/RequestHandler.swift:141:44: error: cannot find type 'URLRequest' in scope
139 | public var decodeResponse: (Data, Int) throws -> ResponseType
140 | public var encodeBody: () throws -> Data?
141 | public var getURLRequest: () throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
142 | public var responseType: Any.Type
143 |
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:46:36: error: cannot find type 'URLRequest' in scope
44 |
45 | /// get a fully formed URLRequest. This is provided by default and uses all of the above properties to create a URLRequest
46 | func getURLRequest() throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:26:19: error: cannot infer contextual base in reference to member 'success'
24 | func requestCreated(id: String, request: AnyRequest){}
25 | func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
26 | complete(.success(urlRequest))
| `- error: cannot infer contextual base in reference to member 'success'
27 | }
28 | func requestSent(id: String, request: AnyRequest) {}
/host/spi-builder-workspace/Sources/NetworkRequest/NetworkService/RequestHandler.swift:56:23: error: cannot infer contextual base in reference to member 'success'
54 | public func modifyRequest(id: String, request: AnyRequest, urlRequest: URLRequest, complete: @escaping (Result<URLRequest, Error>) -> Void) {
55 | if handlers.isEmpty {
56 | complete(.success(urlRequest))
| `- error: cannot infer contextual base in reference to member 'success'
57 | return
58 | }
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:71:36: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | func getURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | let percentEncodedPath = path.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
73 | let urlString = "\(baseURL)\(percentEncodedPath)"
[12/12] Compiling NetworkRequest Request.swift
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:46:36: error: cannot find type 'URLRequest' in scope
44 |
45 | /// get a fully formed URLRequest. This is provided by default and uses all of the above properties to create a URLRequest
46 | func getURLRequest() throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
47 | }
48 |
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:71:36: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | func getURLRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | let percentEncodedPath = path.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
73 | let urlString = "\(baseURL)\(percentEncodedPath)"
/host/spi-builder-workspace/Sources/NetworkRequest/Request/Request.swift:89:26: error: cannot find 'URLRequest' in scope
87 | fatalError("Invalid url \(urlComponents)")
88 | }
89 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
90 | urlRequest.httpMethod = method.rawValue
91 | if let body = try encodeBody() {
BUILD FAILURE 6.0 linux