The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build BreezeLambdaAPIClient, reference main (272786), with Swift 6.0 for Linux on 4 Nov 2024 14:57:18 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/swift-serverless/BreezeLambdaAPIClient.git
Reference: main
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/swift-serverless/BreezeLambdaAPIClient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 272786a Replace swift-sprinter with swift-serverless
Cloned https://github.com/swift-serverless/BreezeLambdaAPIClient.git
Revision (git rev-parse @):
272786ae883fb1141c453e549811da318dadfd75
SUCCESS checkout https://github.com/swift-serverless/BreezeLambdaAPIClient.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/swift-serverless/BreezeLambdaAPIClient.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/10] Compiling BreezeLambdaAPIClient APIClientLogging.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
16 |
17 | public protocol APIClientLogging {
18 |     func log(request: URLRequest)
   |                       `- error: cannot find type 'URLRequest' in scope
19 |     func log(data: Data, for response: URLResponse)
20 | }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:19:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public protocol APIClientLogging {
18 |     func log(request: URLRequest)
19 |     func log(data: Data, for response: URLResponse)
   |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | }
21 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[4/10] Compiling BreezeLambdaAPIClient APIEndpoint.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
21 |     public let baseURL: URL
22 |
23 |     public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
   |                             `- error: cannot find type 'NSURLRequest' in scope
24 |     public var logger: APIClientLogging?
25 |     public var decoder: JSONDecoder = JSONDecoder()
[5/10] Compiling BreezeLambdaAPIClient BreezeRequest.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:36:55: error: cannot find type 'URLRequest' in scope
34 |     }
35 |
36 |     func create(token: String?, item: Item) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
37 |         let body = try env.encoder.encode(item)
38 |         let endpoint = APIEndpoint(env: env, path: path, queryItems: nil)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:43:54: error: cannot find type 'URLRequest' in scope
41 |     }
42 |
43 |     func read(token: String?, key: String) throws -> URLRequest {
   |                                                      `- error: cannot find type 'URLRequest' in scope
44 |         let keyedPath = "\(path)/\(key)"
45 |         let endpoint = APIEndpoint(env: env, path: keyedPath, queryItems: nil)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:50:55: error: cannot find type 'URLRequest' in scope
48 |     }
49 |
50 |     func update(token: String?, item: Item) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
51 |         let body = try env.encoder.encode(item)
52 |         let endpoint = APIEndpoint(env: env, path: path, queryItems: nil)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:57:85: error: cannot find type 'URLRequest' in scope
55 |     }
56 |
57 |     func delete(token: String?, key: String, queryItems: [URLQueryItem]?) throws -> URLRequest {
   |                                                                                     `- error: cannot find type 'URLRequest' in scope
58 |         let keyedPath = "\(path)/\(key)"
59 |         let endpoint = APIEndpoint(env: env, path: keyedPath, queryItems: queryItems)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:64:70: error: cannot find type 'URLRequest' in scope
62 |     }
63 |
64 |     func list(token: String?, queryItems: [URLQueryItem]?) throws -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
65 |         let endpoint = APIEndpoint(env: env, path: path, queryItems: queryItems)
66 |         let authorizedHeaders = authorizedHeaders(token: token)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
21 |     public let baseURL: URL
22 |
23 |     public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
   |                             `- error: cannot find type 'NSURLRequest' in scope
24 |     public var logger: APIClientLogging?
25 |     public var decoder: JSONDecoder = JSONDecoder()
[6/10] Compiling BreezeLambdaAPIClient APIRequestBuilder.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:31:48: error: cannot find type 'URLRequest' in scope
29 |                         endpoint: APIEndpoint,
30 |                         headers: RequestHeaders,
31 |                         body: Data?) throws -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
32 |         var request = URLRequest(url: try endpoint.url())
33 |
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:44:56: error: cannot find type 'URLRequest' in scope
42 |     static func get(env: APIClientEnv,
43 |                     endpoint: APIEndpoint,
44 |                     headers: RequestHeaders) throws -> URLRequest {
   |                                                        `- error: cannot find type 'URLRequest' in scope
45 |         try request(env: env, method: .get, endpoint: endpoint, headers: headers, body: nil)
46 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:50:59: error: cannot find type 'URLRequest' in scope
48 |     static func delete(env: APIClientEnv,
49 |                        endpoint: APIEndpoint,
50 |                        headers: RequestHeaders) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
51 |         try request(env: env, method: .delete, endpoint: endpoint, headers: headers, body: nil)
52 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:57:45: error: cannot find type 'URLRequest' in scope
55 |                      endpoint: APIEndpoint,
56 |                      headers: RequestHeaders,
57 |                      body: Data?) throws -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
58 |         try request(env: env, method: .post, endpoint: endpoint, headers: headers, body: body)
59 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:64:44: error: cannot find type 'URLRequest' in scope
62 |                     endpoint: APIEndpoint,
63 |                     headers: RequestHeaders,
64 |                     body: Data?) throws -> URLRequest {
   |                                            `- error: cannot find type 'URLRequest' in scope
65 |         try request(env: env, method: .put, endpoint: endpoint, headers: headers, body: body)
66 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:32:23: error: cannot find 'URLRequest' in scope
30 |                         headers: RequestHeaders,
31 |                         body: Data?) throws -> URLRequest {
32 |         var request = URLRequest(url: try endpoint.url())
   |                       `- error: cannot find 'URLRequest' in scope
33 |
34 |         request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
21 |     public let baseURL: URL
22 |
23 |     public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
   |                             `- error: cannot find type 'NSURLRequest' in scope
24 |     public var logger: APIClientLogging?
25 |     public var decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
16 |
17 | public protocol APIClientLogging {
18 |     func log(request: URLRequest)
   |                       `- error: cannot find type 'URLRequest' in scope
19 |     func log(data: Data, for response: URLResponse)
20 | }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:38:34: error: extra argument 'request' in call
36 |         request.httpBody = body
37 |         request.cachePolicy = env.cachePolicy
38 |         env.logger?.log(request: request)
   |                                  `- error: extra argument 'request' in call
39 |         return request
40 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:38:24: error: missing arguments for parameters 'data', 'for' in call
36 |         request.httpBody = body
37 |         request.cachePolicy = env.cachePolicy
38 |         env.logger?.log(request: request)
   |                        `- error: missing arguments for parameters 'data', 'for' in call
39 |         return request
40 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:19:10: note: 'log(data:for:)' declared here
17 | public protocol APIClientLogging {
18 |     func log(request: URLRequest)
19 |     func log(data: Data, for response: URLResponse)
   |          `- note: 'log(data:for:)' declared here
20 | }
21 |
[7/10] Compiling BreezeLambdaAPIClient BreezeLambdaAPIClient.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:45:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     }
 44 |
 45 |     private func validateResponse(data: Data, response: URLResponse) throws {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         guard let httpResponse = response as? HTTPURLResponse else {
 47 |             env.logger?.log(data: data, for: response)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
21 |     public let baseURL: URL
22 |
23 |     public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
   |                             `- error: cannot find type 'NSURLRequest' in scope
24 |     public var logger: APIClientLogging?
25 |     public var decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:46:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 44 |
 45 |     private func validateResponse(data: Data, response: URLResponse) throws {
 46 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 47 |             env.logger?.log(data: data, for: response)
 48 |             throw APIClientError.invalidResponse
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:46:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |
 45 |     private func validateResponse(data: Data, response: URLResponse) throws {
 46 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |             env.logger?.log(data: data, for: response)
 48 |             throw APIClientError.invalidResponse
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/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
16 |
17 | public protocol APIClientLogging {
18 |     func log(request: URLRequest)
   |                       `- error: cannot find type 'URLRequest' in scope
19 |     func log(data: Data, for response: URLResponse)
20 | }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:50:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 48 |             throw APIClientError.invalidResponse
 49 |         }
 50 |         guard (200 ..< 300).contains(httpResponse.statusCode) else {
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 51 |             env.logger?.log(data: data, for: response)
 52 |             throw APIClientError.httpError(code: httpResponse.statusCode, data: data)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:52:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 50 |         guard (200 ..< 300).contains(httpResponse.statusCode) else {
 51 |             env.logger?.log(data: data, for: response)
 52 |             throw APIClientError.httpError(code: httpResponse.statusCode, data: data)
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 53 |         }
 54 |         env.logger?.log(data: data, for: response)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:36:55: error: cannot find type 'URLRequest' in scope
34 |     }
35 |
36 |     func create(token: String?, item: Item) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
37 |         let body = try env.encoder.encode(item)
38 |         let endpoint = APIEndpoint(env: env, path: path, queryItems: nil)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:59:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 57 |     public func create(token: String?, item: Item) async throws -> Item {
 58 |         let request = try requestBuilder.create(token: token, item: item)
 59 |         let (data, response) = try await env.session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 60 |         try validateResponse(data: data, response: response)
 61 |         return try env.decoder.decode(Item.self, from: data)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:43:54: error: cannot find type 'URLRequest' in scope
41 |     }
42 |
43 |     func read(token: String?, key: String) throws -> URLRequest {
   |                                                      `- error: cannot find type 'URLRequest' in scope
44 |         let keyedPath = "\(path)/\(key)"
45 |         let endpoint = APIEndpoint(env: env, path: keyedPath, queryItems: nil)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:66:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 64 |     public func read(token: String?, key: String) async throws -> Item {
 65 |         let request = try requestBuilder.read(token: token, key: key)
 66 |         let (data, response) = try await env.session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 67 |         try validateResponse(data: data, response: response)
 68 |         return try env.decoder.decode(Item.self, from: data)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:50:55: error: cannot find type 'URLRequest' in scope
48 |     }
49 |
50 |     func update(token: String?, item: Item) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
51 |         let body = try env.encoder.encode(item)
52 |         let endpoint = APIEndpoint(env: env, path: path, queryItems: nil)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:73:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 71 |     public func update(token: String?, item: Item) async throws -> Item {
 72 |         let request = try requestBuilder.update(token: token, item: item)
 73 |         let (data, response) = try await env.session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 74 |         try validateResponse(data: data, response: response)
 75 |         return try env.decoder.decode(Item.self, from: data)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:57:85: error: cannot find type 'URLRequest' in scope
55 |     }
56 |
57 |     func delete(token: String?, key: String, queryItems: [URLQueryItem]?) throws -> URLRequest {
   |                                                                                     `- error: cannot find type 'URLRequest' in scope
58 |         let keyedPath = "\(path)/\(key)"
59 |         let endpoint = APIEndpoint(env: env, path: keyedPath, queryItems: queryItems)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:84:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 82 |         ]
 83 |         let request = try requestBuilder.delete(token: token, key: key, queryItems: queryItems)
 84 |         let (data, response) = try await env.session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 85 |         try validateResponse(data: data, response: response)
 86 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:64:70: error: cannot find type 'URLRequest' in scope
62 |     }
63 |
64 |     func list(token: String?, queryItems: [URLQueryItem]?) throws -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
65 |         let endpoint = APIEndpoint(env: env, path: path, queryItems: queryItems)
66 |         let authorizedHeaders = authorizedHeaders(token: token)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:97:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 95 |         }
 96 |         let request = try requestBuilder.list(token: token, queryItems: queryItems)
 97 |         let (data, response) = try await env.session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 98 |         try validateResponse(data: data, response: response)
 99 |         return try env.decoder.decode(Items<Item>.self, from: data).items
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:99:16: warning: no calls to throwing functions occur within 'try' expression
 97 |         let (data, response) = try await env.session.data(for: request)
 98 |         try validateResponse(data: data, response: response)
 99 |         return try env.decoder.decode(Items<Item>.self, from: data).items
    |                `- warning: no calls to throwing functions occur within 'try' expression
100 |     }
101 | }
[8/10] Compiling BreezeLambdaAPIClient APIClientError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Emitting module BreezeLambdaAPIClient
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:19:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public struct APIClientEnv {
18 |
19 |     public let session: URLSession
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 |     public let baseURL: URL
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/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
21 |     public let baseURL: URL
22 |
23 |     public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
   |                             `- error: cannot find type 'NSURLRequest' in scope
24 |     public var logger: APIClientLogging?
25 |     public var decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
16 |
17 | public protocol APIClientLogging {
18 |     func log(request: URLRequest)
   |                       `- error: cannot find type 'URLRequest' in scope
19 |     func log(data: Data, for response: URLResponse)
20 | }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public var encoder: JSONEncoder = JSONEncoder()
27 |
28 |     public init(session: URLSession, baseURL: String) throws {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         self.session = session
30 |         guard let url = URL(string: baseURL) else {
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/BreezeLambdaAPIClient/APIClientLogging.swift:19:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public protocol APIClientLogging {
18 |     func log(request: URLRequest)
19 |     func log(data: Data, for response: URLResponse)
   |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | }
21 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:31:48: error: cannot find type 'URLRequest' in scope
29 |                         endpoint: APIEndpoint,
30 |                         headers: RequestHeaders,
31 |                         body: Data?) throws -> URLRequest {
   |                                                `- error: cannot find type 'URLRequest' in scope
32 |         var request = URLRequest(url: try endpoint.url())
33 |
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:44:56: error: cannot find type 'URLRequest' in scope
42 |     static func get(env: APIClientEnv,
43 |                     endpoint: APIEndpoint,
44 |                     headers: RequestHeaders) throws -> URLRequest {
   |                                                        `- error: cannot find type 'URLRequest' in scope
45 |         try request(env: env, method: .get, endpoint: endpoint, headers: headers, body: nil)
46 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:50:59: error: cannot find type 'URLRequest' in scope
48 |     static func delete(env: APIClientEnv,
49 |                        endpoint: APIEndpoint,
50 |                        headers: RequestHeaders) throws -> URLRequest {
   |                                                           `- error: cannot find type 'URLRequest' in scope
51 |         try request(env: env, method: .delete, endpoint: endpoint, headers: headers, body: nil)
52 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:57:45: error: cannot find type 'URLRequest' in scope
55 |                      endpoint: APIEndpoint,
56 |                      headers: RequestHeaders,
57 |                      body: Data?) throws -> URLRequest {
   |                                             `- error: cannot find type 'URLRequest' in scope
58 |         try request(env: env, method: .post, endpoint: endpoint, headers: headers, body: body)
59 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:64:44: error: cannot find type 'URLRequest' in scope
62 |                     endpoint: APIEndpoint,
63 |                     headers: RequestHeaders,
64 |                     body: Data?) throws -> URLRequest {
   |                                            `- error: cannot find type 'URLRequest' in scope
65 |         try request(env: env, method: .put, endpoint: endpoint, headers: headers, body: body)
66 |     }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:45:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     }
 44 |
 45 |     private func validateResponse(data: Data, response: URLResponse) throws {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         guard let httpResponse = response as? HTTPURLResponse else {
 47 |             env.logger?.log(data: data, for: response)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:36:55: error: cannot find type 'URLRequest' in scope
34 |     }
35 |
36 |     func create(token: String?, item: Item) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
37 |         let body = try env.encoder.encode(item)
38 |         let endpoint = APIEndpoint(env: env, path: path, queryItems: nil)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:43:54: error: cannot find type 'URLRequest' in scope
41 |     }
42 |
43 |     func read(token: String?, key: String) throws -> URLRequest {
   |                                                      `- error: cannot find type 'URLRequest' in scope
44 |         let keyedPath = "\(path)/\(key)"
45 |         let endpoint = APIEndpoint(env: env, path: keyedPath, queryItems: nil)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:50:55: error: cannot find type 'URLRequest' in scope
48 |     }
49 |
50 |     func update(token: String?, item: Item) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
51 |         let body = try env.encoder.encode(item)
52 |         let endpoint = APIEndpoint(env: env, path: path, queryItems: nil)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:57:85: error: cannot find type 'URLRequest' in scope
55 |     }
56 |
57 |     func delete(token: String?, key: String, queryItems: [URLQueryItem]?) throws -> URLRequest {
   |                                                                                     `- error: cannot find type 'URLRequest' in scope
58 |         let keyedPath = "\(path)/\(key)"
59 |         let endpoint = APIEndpoint(env: env, path: keyedPath, queryItems: queryItems)
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:64:70: error: cannot find type 'URLRequest' in scope
62 |     }
63 |
64 |     func list(token: String?, queryItems: [URLQueryItem]?) throws -> URLRequest {
   |                                                                      `- error: cannot find type 'URLRequest' in scope
65 |         let endpoint = APIEndpoint(env: env, path: path, queryItems: queryItems)
66 |         let authorizedHeaders = authorizedHeaders(token: token)
[10/10] Compiling BreezeLambdaAPIClient APIClientEnv.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:19:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public struct APIClientEnv {
18 |
19 |     public let session: URLSession
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 |     public let baseURL: URL
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/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
21 |     public let baseURL: URL
22 |
23 |     public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
   |                             `- error: cannot find type 'NSURLRequest' in scope
24 |     public var logger: APIClientLogging?
25 |     public var decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
16 |
17 | public protocol APIClientLogging {
18 |     func log(request: URLRequest)
   |                       `- error: cannot find type 'URLRequest' in scope
19 |     func log(data: Data, for response: URLResponse)
20 | }
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:28:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |     public var encoder: JSONEncoder = JSONEncoder()
27 |
28 |     public init(session: URLSession, baseURL: String) throws {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         self.session = session
30 |         guard let url = URL(string: baseURL) else {
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
BUILD FAILURE 6.0 linux