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 0.2.0 (c35db3), with Swift 6.1 for Linux on 28 Apr 2025 13:27:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-serverless/BreezeLambdaAPIClient.git
Reference: 0.2.0
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
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at c35db37 Fix Coverage report
Cloned https://github.com/swift-serverless/BreezeLambdaAPIClient.git
Revision (git rev-parse @):
c35db37e5ba23046b0ca0afb9fa4d5be056ce6ab
SUCCESS checkout https://github.com/swift-serverless/BreezeLambdaAPIClient.git at 0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swift-serverless/BreezeLambdaAPIClient.git
https://github.com/swift-serverless/BreezeLambdaAPIClient.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BreezeLambdaAPIClient",
  "name" : "BreezeLambdaAPIClient",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "BreezeLambdaAPIClient",
      "targets" : [
        "BreezeLambdaAPIClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BreezeLambdaAPIClientTests",
      "module_type" : "SwiftTarget",
      "name" : "BreezeLambdaAPIClientTests",
      "path" : "Tests/BreezeLambdaAPIClientTests",
      "sources" : [
        "APIEndpointTests.swift",
        "BreezeLambdaAPIClientTests.swift",
        "BreezeRequestTests.swift",
        "TestItem.swift",
        "URLProtocolMock.swift"
      ],
      "target_dependencies" : [
        "BreezeLambdaAPIClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BreezeLambdaAPIClient",
      "module_type" : "SwiftTarget",
      "name" : "BreezeLambdaAPIClient",
      "path" : "Sources/BreezeLambdaAPIClient",
      "product_memberships" : [
        "BreezeLambdaAPIClient"
      ],
      "sources" : [
        "APIClientEnv.swift",
        "APIClientError.swift",
        "APIClientLogging.swift",
        "APIEndpoint.swift",
        "APIRequestBuilder.swift",
        "BreezeLambdaAPIClient.swift",
        "BreezeRequest.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Compiling BreezeLambdaAPIClient APIClientError.swift
[5/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)
[6/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
[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 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
[9/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 |
[10/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()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/9] Compiling BreezeLambdaAPIClient APIClientError.swift
[3/9] 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)
[4/9] 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 | }
[5/9] 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()
[6/9] 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
[7/9] 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 |
[8/9] 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
[9/9] 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()
BUILD FAILURE 6.1 linux