Build Information
Failed to build BreezeLambdaAPIClient with Swift 5.8 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.34.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: 5.8
Building package at path: $workDir
https://github.com/swift-serverless/BreezeLambdaAPIClient.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
[1/8] Compiling BreezeLambdaAPIClient APIRequestBuilder.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:31:48: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:44:56: error: cannot find type 'URLRequest' in scope
headers: RequestHeaders) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:50:59: error: cannot find type 'URLRequest' in scope
headers: RequestHeaders) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:57:45: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:64:44: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:32:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: try endpoint.url())
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:38:34: error: extra argument 'request' in call
env.logger?.log(request: request)
~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:38:24: error: missing arguments for parameters 'data', 'for' in call
env.logger?.log(request: request)
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:19:10: note: 'log(data:for:)' declared here
func log(data: Data, for response: URLResponse)
^
[2/8] Compiling BreezeLambdaAPIClient BreezeRequest.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:36:55: error: cannot find type 'URLRequest' in scope
func create(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:43:54: error: cannot find type 'URLRequest' in scope
func read(token: String?, key: String) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:50:55: error: cannot find type 'URLRequest' in scope
func update(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:57:85: error: cannot find type 'URLRequest' in scope
func delete(token: String?, key: String, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:64:70: error: cannot find type 'URLRequest' in scope
func list(token: String?, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
[3/8] Compiling BreezeLambdaAPIClient APIEndpoint.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
[4/8] 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.
private func validateResponse(data: Data, response: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:46:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse else {
^
/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.
guard let httpResponse = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:50:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard (200 ..< 300).contains(httpResponse.statusCode) else {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:52:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
throw APIClientError.httpError(code: httpResponse.statusCode, data: data)
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:36:55: error: cannot find type 'URLRequest' in scope
func create(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:59:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:43:54: error: cannot find type 'URLRequest' in scope
func read(token: String?, key: String) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:66:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:50:55: error: cannot find type 'URLRequest' in scope
func update(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:73:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:57:85: error: cannot find type 'URLRequest' in scope
func delete(token: String?, key: String, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:84:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:64:70: error: cannot find type 'URLRequest' in scope
func list(token: String?, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:97:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:99:16: warning: no calls to throwing functions occur within 'try' expression
return try env.decoder.decode(Items<Item>.self, from: data).items
^
[5/8] Compiling BreezeLambdaAPIClient APIClientLogging.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/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.
func log(data: Data, for response: URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Compiling BreezeLambdaAPIClient APIClientError.swift
[7/8] 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.
public let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/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.
public init(session: URLSession, baseURL: String) throws {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func log(data: Data, for response: URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:31:48: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:44:56: error: cannot find type 'URLRequest' in scope
headers: RequestHeaders) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:50:59: error: cannot find type 'URLRequest' in scope
headers: RequestHeaders) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:57:45: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:64:44: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/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.
private func validateResponse(data: Data, response: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:36:55: error: cannot find type 'URLRequest' in scope
func create(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:43:54: error: cannot find type 'URLRequest' in scope
func read(token: String?, key: String) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:50:55: error: cannot find type 'URLRequest' in scope
func update(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:57:85: error: cannot find type 'URLRequest' in scope
func delete(token: String?, key: String, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:64:70: error: cannot find type 'URLRequest' in scope
func list(token: String?, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
[8/8] 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.
public let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/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.
public init(session: URLSession, baseURL: String) throws {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/7] Compiling BreezeLambdaAPIClient APIClientLogging.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/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.
func log(data: Data, for response: URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[2/7] 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.
public let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/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.
public init(session: URLSession, baseURL: String) throws {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
func log(data: Data, for response: URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:31:48: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:44:56: error: cannot find type 'URLRequest' in scope
headers: RequestHeaders) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:50:59: error: cannot find type 'URLRequest' in scope
headers: RequestHeaders) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:57:45: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:64:44: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/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.
private func validateResponse(data: Data, response: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:36:55: error: cannot find type 'URLRequest' in scope
func create(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:43:54: error: cannot find type 'URLRequest' in scope
func read(token: String?, key: String) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:50:55: error: cannot find type 'URLRequest' in scope
func update(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:57:85: error: cannot find type 'URLRequest' in scope
func delete(token: String?, key: String, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:64:70: error: cannot find type 'URLRequest' in scope
func list(token: String?, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
[3/7] 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.
public let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/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.
public init(session: URLSession, baseURL: String) throws {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[4/7] Compiling BreezeLambdaAPIClient BreezeRequest.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:36:55: error: cannot find type 'URLRequest' in scope
func create(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:43:54: error: cannot find type 'URLRequest' in scope
func read(token: String?, key: String) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:50:55: error: cannot find type 'URLRequest' in scope
func update(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:57:85: error: cannot find type 'URLRequest' in scope
func delete(token: String?, key: String, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:64:70: error: cannot find type 'URLRequest' in scope
func list(token: String?, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
[5/7] Compiling BreezeLambdaAPIClient APIRequestBuilder.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:31:48: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:44:56: error: cannot find type 'URLRequest' in scope
headers: RequestHeaders) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:50:59: error: cannot find type 'URLRequest' in scope
headers: RequestHeaders) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:57:45: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:64:44: error: cannot find type 'URLRequest' in scope
body: Data?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:32:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: try endpoint.url())
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:38:34: error: extra argument 'request' in call
env.logger?.log(request: request)
~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIRequestBuilder.swift:38:24: error: missing arguments for parameters 'data', 'for' in call
env.logger?.log(request: request)
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:19:10: note: 'log(data:for:)' declared here
func log(data: Data, for response: URLResponse)
^
[6/7] 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.
private func validateResponse(data: Data, response: URLResponse) throws {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:46:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse else {
^
/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.
guard let httpResponse = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientLogging.swift:18:23: error: cannot find type 'URLRequest' in scope
func log(request: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:50:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard (200 ..< 300).contains(httpResponse.statusCode) else {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:52:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
throw APIClientError.httpError(code: httpResponse.statusCode, data: data)
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:36:55: error: cannot find type 'URLRequest' in scope
func create(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:59:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:43:54: error: cannot find type 'URLRequest' in scope
func read(token: String?, key: String) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:66:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:50:55: error: cannot find type 'URLRequest' in scope
func update(token: String?, item: Item) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:73:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:57:85: error: cannot find type 'URLRequest' in scope
func delete(token: String?, key: String, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:84:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeRequest.swift:64:70: error: cannot find type 'URLRequest' in scope
func list(token: String?, queryItems: [URLQueryItem]?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:97:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await env.session.data(for: request)
~~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/BreezeLambdaAPIClient.swift:99:16: warning: no calls to throwing functions occur within 'try' expression
return try env.decoder.decode(Items<Item>.self, from: data).items
^
[7/7] Compiling BreezeLambdaAPIClient APIEndpoint.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:23:29: error: cannot find type 'NSURLRequest' in scope
public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~~~
BUILD FAILURE 5.8 linux