Build Information
Failed to build swift-networking, reference 1.6.0 (621c8e), with Swift 6.1 for Linux on 1 Dec 2026 01:11:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e GIT_HTTP_LOW_SPEED_LIMIT="100000" -e GIT_HTTP_LOW_SPEED_TIME="60" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.2.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/telemtobi/swift-networking.git
Reference: 1.6.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/telemtobi/swift-networking
* tag 1.6.0 -> FETCH_HEAD
HEAD is now at 621c8ed Refresh authentication on 401 (#20)
Cloned https://github.com/telemtobi/swift-networking.git
Revision (git rev-parse @):
621c8ed09a2f4ada9996f8bccf50a3dcb8db572f
SUCCESS checkout https://github.com/telemtobi/swift-networking.git at 1.6.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/telemtobi/swift-networking.git
https://github.com/telemtobi/swift-networking.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e GIT_HTTP_LOW_SPEED_LIMIT="100000" -e GIT_HTTP_LOW_SPEED_TIME="60" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-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
linux-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:d12954ac055941347f9100a3aeff1738f7854968d8d13d3f77b3a80b607c719e
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/21] Emitting module Networking
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: cannot find type 'URLRequest' in scope
5 | guard endpoint.shouldPrintLogs else { return }
6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | guard endpoint.shouldPrintLogs else { return }
6 |
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/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
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/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
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/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | /// Initializes a `URLRequest` from an `Endpoint` instance.
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | var status: HttpStatus {
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
[4/23] Compiling Networking URLResponse+Networking.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | var status: HttpStatus {
[5/23] Compiling Networking HttpMethod.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | var status: HttpStatus {
[6/23] Compiling Networking HttpStatus.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | var status: HttpStatus {
[7/23] Compiling Networking String+Extension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/23] Compiling Networking Task+Extension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/23] Compiling Networking AnyEncodable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/23] Compiling Networking Error+Extension.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/23] Compiling Networking HttpTask.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
[12/23] Compiling Networking Interceptor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
[13/23] Compiling Networking Data+Networking.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | /// Initializes a `URLRequest` from an `Endpoint` instance.
[14/23] Compiling Networking URL+Networking.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | /// Initializes a `URLRequest` from an `Endpoint` instance.
[15/23] Compiling Networking URLRequest+Networking.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | /// Initializes a `URLRequest` from an `Endpoint` instance.
[16/23] Compiling Networking JsonMapper.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/23] Compiling Networking Networking.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/23] Compiling Networking NetworkingController.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
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/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
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/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
[19/23] Compiling Networking DecodableError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
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/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
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/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
[20/23] Compiling Networking Endpoint.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
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/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
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/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
[21/23] Compiling Networking AuthenticationCoordinator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:9:34: error: cannot find 'URLRequest' in scope
7 |
8 | do {
9 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
10 |
11 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:13:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
11 | interceptor?.intercept(&urlRequest)
12 |
13 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
14 | status = response.status
15 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: cannot find type 'URLRequest' in scope
5 | guard endpoint.shouldPrintLogs else { return }
6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:20:45: error: cannot infer contextual base in reference to member 'success'
18 | interceptor?.intercept(&data)
19 |
20 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
21 | throw(decodedError(endpoint, data))
22 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:79:34: error: cannot find 'URLRequest' in scope
77 | internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
78 | do {
79 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
80 | interceptor?.intercept(&urlRequest)
81 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:90:46: error: 'nil' requires a contextual type
88 | interceptor?.intercept(&sampleData)
89 |
90 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
91 |
92 | let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:114:34: error: cannot find 'URLRequest' in scope
112 |
113 | do {
114 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
115 |
116 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:118:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 | interceptor?.intercept(&urlRequest)
117 |
118 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 | status = response.status
120 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:45: error: cannot infer contextual base in reference to member 'success'
123 | interceptor?.intercept(&data)
124 |
125 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
126 | throw(decodedError(endpoint, data))
127 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:160:34: error: cannot find 'URLRequest' in scope
158 | internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
159 | do {
160 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
161 | interceptor?.intercept(&urlRequest)
162 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:169:46: error: 'nil' requires a contextual type
167 | let sampleData = endpoint.sampleData ?? Data()
168 |
169 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
170 |
171 | let model = try T
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | guard endpoint.shouldPrintLogs else { return }
6 |
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/Networking/Controller/NetworkingController+Logging.swift:17:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
15 | }
16 |
17 | let statusCode = response?.status ?? .ok
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
18 |
19 | print()
[22/23] Compiling Networking NetworkingController+Internal.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:9:34: error: cannot find 'URLRequest' in scope
7 |
8 | do {
9 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
10 |
11 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:13:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
11 | interceptor?.intercept(&urlRequest)
12 |
13 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
14 | status = response.status
15 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: cannot find type 'URLRequest' in scope
5 | guard endpoint.shouldPrintLogs else { return }
6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:20:45: error: cannot infer contextual base in reference to member 'success'
18 | interceptor?.intercept(&data)
19 |
20 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
21 | throw(decodedError(endpoint, data))
22 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:79:34: error: cannot find 'URLRequest' in scope
77 | internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
78 | do {
79 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
80 | interceptor?.intercept(&urlRequest)
81 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:90:46: error: 'nil' requires a contextual type
88 | interceptor?.intercept(&sampleData)
89 |
90 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
91 |
92 | let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:114:34: error: cannot find 'URLRequest' in scope
112 |
113 | do {
114 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
115 |
116 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:118:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 | interceptor?.intercept(&urlRequest)
117 |
118 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 | status = response.status
120 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:45: error: cannot infer contextual base in reference to member 'success'
123 | interceptor?.intercept(&data)
124 |
125 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
126 | throw(decodedError(endpoint, data))
127 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:160:34: error: cannot find 'URLRequest' in scope
158 | internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
159 | do {
160 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
161 | interceptor?.intercept(&urlRequest)
162 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:169:46: error: 'nil' requires a contextual type
167 | let sampleData = endpoint.sampleData ?? Data()
168 |
169 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
170 |
171 | let model = try T
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | guard endpoint.shouldPrintLogs else { return }
6 |
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/Networking/Controller/NetworkingController+Logging.swift:17:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
15 | }
16 |
17 | let statusCode = response?.status ?? .ok
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
18 |
19 | print()
[23/23] Compiling Networking NetworkingController+Logging.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:9:34: error: cannot find 'URLRequest' in scope
7 |
8 | do {
9 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
10 |
11 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:13:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
11 | interceptor?.intercept(&urlRequest)
12 |
13 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
14 | status = response.status
15 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: cannot find type 'URLRequest' in scope
5 | guard endpoint.shouldPrintLogs else { return }
6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:20:45: error: cannot infer contextual base in reference to member 'success'
18 | interceptor?.intercept(&data)
19 |
20 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
21 | throw(decodedError(endpoint, data))
22 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:79:34: error: cannot find 'URLRequest' in scope
77 | internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
78 | do {
79 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
80 | interceptor?.intercept(&urlRequest)
81 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:90:46: error: 'nil' requires a contextual type
88 | interceptor?.intercept(&sampleData)
89 |
90 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
91 |
92 | let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:114:34: error: cannot find 'URLRequest' in scope
112 |
113 | do {
114 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
115 |
116 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:118:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 | interceptor?.intercept(&urlRequest)
117 |
118 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 | status = response.status
120 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:45: error: cannot infer contextual base in reference to member 'success'
123 | interceptor?.intercept(&data)
124 |
125 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
126 | throw(decodedError(endpoint, data))
127 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:160:34: error: cannot find 'URLRequest' in scope
158 | internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
159 | do {
160 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
161 | interceptor?.intercept(&urlRequest)
162 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:169:46: error: 'nil' requires a contextual type
167 | let sampleData = endpoint.sampleData ?? Data()
168 |
169 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
170 |
171 | let model = try T
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | guard endpoint.shouldPrintLogs else { return }
6 |
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/Networking/Controller/NetworkingController+Logging.swift:17:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
15 | }
16 |
17 | let statusCode = response?.status ?? .ok
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
18 |
19 | print()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e GIT_HTTP_LOW_SPEED_LIMIT="100000" -e GIT_HTTP_LOW_SPEED_TIME="60" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:d12954ac055941347f9100a3aeff1738f7854968d8d13d3f77b3a80b607c719e
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/20] Compiling Networking Data+Networking.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | /// Initializes a `URLRequest` from an `Endpoint` instance.
[3/20] Compiling Networking URL+Networking.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | /// Initializes a `URLRequest` from an `Endpoint` instance.
[4/20] Compiling Networking URLRequest+Networking.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | /// Initializes a `URLRequest` from an `Endpoint` instance.
[5/22] Compiling Networking URLResponse+Networking.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | var status: HttpStatus {
[6/22] Compiling Networking HttpMethod.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | var status: HttpStatus {
[7/22] Compiling Networking HttpStatus.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | var status: HttpStatus {
[8/22] Compiling Networking String+Extension.swift
[9/22] Compiling Networking Task+Extension.swift
[10/22] Compiling Networking NetworkingController.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
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/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
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/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
[11/22] Compiling Networking DecodableError.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
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/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
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/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
[12/22] Compiling Networking Endpoint.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
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/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
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/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/22] Emitting module Networking
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: cannot find type 'URLRequest' in scope
5 | guard endpoint.shouldPrintLogs else { return }
6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | guard endpoint.shouldPrintLogs else { return }
6 |
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/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
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/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
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/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | /// * Handle errors
47 | public init(
48 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
49 | environment: Networking.Environment = .live,
50 | interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
16 | public let interceptor: Interceptor?
17 |
18 | internal let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | internal let authenticationCoordinator: AuthenticationCoordinator
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
1 | import Foundation
2 |
3 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
4 |
5 | /// Initializes a `URLRequest` from an `Endpoint` instance.
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | public extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 |
5 | var status: HttpStatus {
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
[14/22] Compiling Networking AnyEncodable.swift
[15/22] Compiling Networking Error+Extension.swift
[16/22] Compiling Networking HttpTask.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
[17/22] Compiling Networking Interceptor.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
[18/22] Compiling Networking AuthenticationCoordinator.swift
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:9:34: error: cannot find 'URLRequest' in scope
7 |
8 | do {
9 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
10 |
11 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:13:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
11 | interceptor?.intercept(&urlRequest)
12 |
13 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
14 | status = response.status
15 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: cannot find type 'URLRequest' in scope
5 | guard endpoint.shouldPrintLogs else { return }
6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:20:45: error: cannot infer contextual base in reference to member 'success'
18 | interceptor?.intercept(&data)
19 |
20 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
21 | throw(decodedError(endpoint, data))
22 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:79:34: error: cannot find 'URLRequest' in scope
77 | internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
78 | do {
79 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
80 | interceptor?.intercept(&urlRequest)
81 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:90:46: error: 'nil' requires a contextual type
88 | interceptor?.intercept(&sampleData)
89 |
90 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
91 |
92 | let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:114:34: error: cannot find 'URLRequest' in scope
112 |
113 | do {
114 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
115 |
116 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:118:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 | interceptor?.intercept(&urlRequest)
117 |
118 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 | status = response.status
120 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:45: error: cannot infer contextual base in reference to member 'success'
123 | interceptor?.intercept(&data)
124 |
125 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
126 | throw(decodedError(endpoint, data))
127 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:160:34: error: cannot find 'URLRequest' in scope
158 | internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
159 | do {
160 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
161 | interceptor?.intercept(&urlRequest)
162 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:169:46: error: 'nil' requires a contextual type
167 | let sampleData = endpoint.sampleData ?? Data()
168 |
169 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
170 |
171 | let model = try T
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | guard endpoint.shouldPrintLogs else { return }
6 |
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/Networking/Controller/NetworkingController+Logging.swift:17:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
15 | }
16 |
17 | let statusCode = response?.status ?? .ok
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
18 |
19 | print()
[19/22] Compiling Networking NetworkingController+Internal.swift
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:9:34: error: cannot find 'URLRequest' in scope
7 |
8 | do {
9 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
10 |
11 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:13:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
11 | interceptor?.intercept(&urlRequest)
12 |
13 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
14 | status = response.status
15 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: cannot find type 'URLRequest' in scope
5 | guard endpoint.shouldPrintLogs else { return }
6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:20:45: error: cannot infer contextual base in reference to member 'success'
18 | interceptor?.intercept(&data)
19 |
20 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
21 | throw(decodedError(endpoint, data))
22 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:79:34: error: cannot find 'URLRequest' in scope
77 | internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
78 | do {
79 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
80 | interceptor?.intercept(&urlRequest)
81 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:90:46: error: 'nil' requires a contextual type
88 | interceptor?.intercept(&sampleData)
89 |
90 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
91 |
92 | let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:114:34: error: cannot find 'URLRequest' in scope
112 |
113 | do {
114 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
115 |
116 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:118:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 | interceptor?.intercept(&urlRequest)
117 |
118 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 | status = response.status
120 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:45: error: cannot infer contextual base in reference to member 'success'
123 | interceptor?.intercept(&data)
124 |
125 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
126 | throw(decodedError(endpoint, data))
127 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:160:34: error: cannot find 'URLRequest' in scope
158 | internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
159 | do {
160 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
161 | interceptor?.intercept(&urlRequest)
162 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:169:46: error: 'nil' requires a contextual type
167 | let sampleData = endpoint.sampleData ?? Data()
168 |
169 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
170 |
171 | let model = try T
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | guard endpoint.shouldPrintLogs else { return }
6 |
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/Networking/Controller/NetworkingController+Logging.swift:17:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
15 | }
16 |
17 | let statusCode = response?.status ?? .ok
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
18 |
19 | print()
[20/22] Compiling Networking NetworkingController+Logging.swift
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:9:34: error: cannot find 'URLRequest' in scope
7 |
8 | do {
9 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
10 |
11 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 | ///
30 | /// - Parameter request: The URLRequest that will be modified.
31 | func intercept(_ request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 | func authenticate() async throws -> Bool { true }
59 | func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 | func intercept(_ request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
61 | func intercept(_ data: inout Data) {}
62 | func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:13:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
11 | interceptor?.intercept(&urlRequest)
12 |
13 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
14 | status = response.status
15 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: cannot find type 'URLRequest' in scope
5 | guard endpoint.shouldPrintLogs else { return }
6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:20:45: error: cannot infer contextual base in reference to member 'success'
18 | interceptor?.intercept(&data)
19 |
20 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
21 | throw(decodedError(endpoint, data))
22 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:79:34: error: cannot find 'URLRequest' in scope
77 | internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
78 | do {
79 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
80 | interceptor?.intercept(&urlRequest)
81 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:90:46: error: 'nil' requires a contextual type
88 | interceptor?.intercept(&sampleData)
89 |
90 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
91 |
92 | let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:114:34: error: cannot find 'URLRequest' in scope
112 |
113 | do {
114 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
115 |
116 | interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:118:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 | interceptor?.intercept(&urlRequest)
117 |
118 | var (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 | status = response.status
120 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:45: error: cannot infer contextual base in reference to member 'success'
123 | interceptor?.intercept(&data)
124 |
125 | guard response.status.group == .success else {
| `- error: cannot infer contextual base in reference to member 'success'
126 | throw(decodedError(endpoint, data))
127 | }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:160:34: error: cannot find 'URLRequest' in scope
158 | internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
159 | do {
160 | var urlRequest = try URLRequest(endpoint)
| `- error: cannot find 'URLRequest' in scope
161 | interceptor?.intercept(&urlRequest)
162 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:169:46: error: 'nil' requires a contextual type
167 | let sampleData = endpoint.sampleData ?? Data()
168 |
169 | logRequest(endpoint, urlRequest, nil, sampleData)
| `- error: 'nil' requires a contextual type
170 |
171 | let model = try T
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public extension NetworkingController {
4 | func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | guard endpoint.shouldPrintLogs else { return }
6 |
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/Networking/Controller/NetworkingController+Logging.swift:17:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
15 | }
16 |
17 | let statusCode = response?.status ?? .ok
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
18 |
19 | print()
[21/22] Compiling Networking JsonMapper.swift
[22/22] Compiling Networking Networking.swift
BUILD FAILURE 6.1 linux