Build Information
Failed to build BreezeLambdaAPIClient with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-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: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/swift-serverless/BreezeLambdaAPIClient
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 272786a Replace swift-sprinter with swift-serverless
Cloned https://github.com/swift-serverless/BreezeLambdaAPIClient.git
Revision (git rev-parse @):
272786ae883fb1141c453e549811da318dadfd75
SUCCESS checkout https://github.com/swift-serverless/BreezeLambdaAPIClient.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
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.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
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
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
^~~~~~~~~~~~
[4/10] Compiling BreezeLambdaAPIClient APIClientError.swift
[5/10] 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
^~~~~~~~~~~~
[6/10] 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
^
[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.
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
^
[8/10] 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)
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Emitting module BreezeLambdaAPIClient
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:19:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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 {
^~~~~~~~~~
[10/10] Compiling BreezeLambdaAPIClient APIClientEnv.swift
/host/spi-builder-workspace/Sources/BreezeLambdaAPIClient/APIClientEnv.swift:19:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/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)
^
[3/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
^
[4/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
^~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/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 {
^~~~~~~~~~
[6/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
^
[7/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
^
[8/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
^~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux