The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DBNetworkStack, reference develop (18b85d), with Swift 6.4 for Linux on 22 Sep 2026 15:08:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dbsystel/DBNetworkStack.git
Reference: develop
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/dbsystel/DBNetworkStack
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 18b85dd Merge pull request #116 CaseIterable to HTTPMethod
Cloned https://github.com/dbsystel/DBNetworkStack.git
Revision (git rev-parse @):
18b85dd015600e3881d194a16183cf52c1ef7f75
SUCCESS checkout https://github.com/dbsystel/DBNetworkStack.git at develop
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/dbsystel/DBNetworkStack.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line:     cd /host

[27 / 36] DBNetworkStack
/host/spi-builder-workspace/Source/NetworkAccess.swift:35:24: error: cannot find type 'URLRequest' in scope
33 |     ///   - callback: Callback which gets called when the request finishes.
34 |     /// - Returns: the running network task
35 |     func load(request: URLRequest) async throws -> (Data, URLResponse)
   |                        `- error: cannot find type 'URLRequest' in scope
36 |
37 | }
/host/spi-builder-workspace/Source/NetworkAccess.swift:35:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     ///   - callback: Callback which gets called when the request finishes.
34 |     /// - Returns: the running network task
35 |     func load(request: URLRequest) async throws -> (Data, URLResponse)
   |                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | }
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/Source/NetworkError.swift:33:33: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     case cancelled
 32 |     /// Missing authorization for the request (HTTP Error 401)
 33 |     case unauthorized(response: HTTPURLResponse, data: Data?)
    |                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     /// Invalid payload was send to the server (HTTP Error 400...451)
 35 |     case clientError(response: HTTPURLResponse?, data: Data?)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkError.swift:35:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     case unauthorized(response: HTTPURLResponse, data: Data?)
 34 |     /// Invalid payload was send to the server (HTTP Error 400...451)
 35 |     case clientError(response: HTTPURLResponse?, data: Data?)
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |     /// Error on the server (HTTP Error 500...511)
 37 |     case serverError(response: HTTPURLResponse?, data: Data?)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkError.swift:37:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |     case clientError(response: HTTPURLResponse?, data: Data?)
 36 |     /// Error on the server (HTTP Error 500...511)
 37 |     case serverError(response: HTTPURLResponse?, data: Data?)
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     /// Parsing the body into expected type failed.
 39 |     case serializationError(error: Error, response: HTTPURLResponse, data: Data?)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkError.swift:39:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     case serverError(response: HTTPURLResponse?, data: Data?)
 38 |     /// Parsing the body into expected type failed.
 39 |     case serializationError(error: Error, response: HTTPURLResponse, data: Data?)
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     /// Complete request failed.
 41 |     case requestError(error: Error)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkError.swift:43:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     case requestError(error: Error)
 42 |
 43 |     public init?(response: HTTPURLResponse, data: Data) {
    |                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         switch response.statusCode {
 45 |         case 200..<300: return nil
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkError.swift:33:10: warning: associated value 'unauthorized(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 31 |     case cancelled
 32 |     /// Missing authorization for the request (HTTP Error 401)
 33 |     case unauthorized(response: HTTPURLResponse, data: Data?)
    |          `- warning: associated value 'unauthorized(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 34 |     /// Invalid payload was send to the server (HTTP Error 400...451)
 35 |     case clientError(response: HTTPURLResponse?, data: Data?)
/host/spi-builder-workspace/Source/NetworkError.swift:35:10: warning: associated value 'clientError(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 33 |     case unauthorized(response: HTTPURLResponse, data: Data?)
 34 |     /// Invalid payload was send to the server (HTTP Error 400...451)
 35 |     case clientError(response: HTTPURLResponse?, data: Data?)
    |          `- warning: associated value 'clientError(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 36 |     /// Error on the server (HTTP Error 500...511)
 37 |     case serverError(response: HTTPURLResponse?, data: Data?)
/host/spi-builder-workspace/Source/NetworkError.swift:37:10: warning: associated value 'serverError(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 35 |     case clientError(response: HTTPURLResponse?, data: Data?)
 36 |     /// Error on the server (HTTP Error 500...511)
 37 |     case serverError(response: HTTPURLResponse?, data: Data?)
    |          `- warning: associated value 'serverError(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 38 |     /// Parsing the body into expected type failed.
 39 |     case serializationError(error: Error, response: HTTPURLResponse, data: Data?)
/host/spi-builder-workspace/Source/NetworkError.swift:39:10: warning: associated value 'serializationError(error:response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 37 |     case serverError(response: HTTPURLResponse?, data: Data?)
 38 |     /// Parsing the body into expected type failed.
 39 |     case serializationError(error: Error, response: HTTPURLResponse, data: Data?)
    |          `- warning: associated value 'serializationError(error:response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
 40 |     /// Complete request failed.
 41 |     case requestError(error: Error)
/host/spi-builder-workspace/Source/NetworkService+ResourceWithError.swift:56:33: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     public func requestResultWithResponse<Success, E: Error>(
 55 |         for resource: Resource<Success, E>
 56 |     ) async -> Result<(Success, HTTPURLResponse), E> {
    |                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         let resourceWithoutError = Resource<Success, NetworkError>(request: resource.request, parse: resource.parse)
 58 |         return await self.requestResultWithResponse(for: resourceWithoutError)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkService+ResourceWithError.swift:133:114: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |
132 |     @discardableResult
133 |     func requestWithResponse<Success, E: Error>(for resource: Resource<Success, E>) async throws(E) -> (Success, HTTPURLResponse) {
    |                                                                                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |         return try await requestResultWithResponse(for: resource).get()
135 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkService.swift:53:118: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |      */
 52 |     @discardableResult
 53 |     func requestResultWithResponse<Success>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, HTTPURLResponse), NetworkError>
    |                                                                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 | }
 55 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkService.swift:105:126: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 |     @discardableResult
105 |     func requestWithResponse<Success>(for resource: Resource<Success, NetworkError>) async throws(NetworkError) -> (Success, HTTPURLResponse) {
    |                                                                                                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         return try await requestResultWithResponse(for: resource).get()
107 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/BasicNetworkService.swift:76:125: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |      */
 75 |     @discardableResult
 76 |     public func requestResultWithResponse<Success>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, HTTPURLResponse), NetworkError> {
    |                                                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         do {
 78 |             let (data, response) = try await networkAccess.load(request: resource.request)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift:44:51: error: cannot find type 'URLRequest' in scope
42 | public final class ModifyRequestNetworkService: NetworkService {
43 |
44 |     private let requestModifications: [@Sendable (URLRequest) -> URLRequest]
   |                                                   `- error: cannot find type 'URLRequest' in scope
45 |     private let networkService: NetworkService
46 |
/host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift:44:66: error: cannot find type 'URLRequest' in scope
42 | public final class ModifyRequestNetworkService: NetworkService {
43 |
44 |     private let requestModifications: [@Sendable (URLRequest) -> URLRequest]
   |                                                                  `- error: cannot find type 'URLRequest' in scope
45 |     private let networkService: NetworkService
46 |
/host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift:52:83: error: cannot find type 'URLRequest' in scope
50 |     ///   - networkService: a networkservice.
51 |     ///   - requestModifications: array of modifications to modify requests.
52 |     public init(networkService: NetworkService, requestModifications: [@Sendable (URLRequest) -> URLRequest]) {
   |                                                                                   `- error: cannot find type 'URLRequest' in scope
53 |         self.networkService = networkService
54 |         self.requestModifications = requestModifications
/host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift:52:98: error: cannot find type 'URLRequest' in scope
50 |     ///   - networkService: a networkservice.
51 |     ///   - requestModifications: array of modifications to modify requests.
52 |     public init(networkService: NetworkService, requestModifications: [@Sendable (URLRequest) -> URLRequest]) {
   |                                                                                                  `- error: cannot find type 'URLRequest' in scope
53 |         self.networkService = networkService
54 |         self.requestModifications = requestModifications
/host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift:83:125: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 |      */
82 |     @discardableResult
83 |     public func requestResultWithResponse<Success>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, HTTPURLResponse), NetworkError> {
   |                                                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 |         let request = requestModifications.reduce(resource.request, { request, modify in
85 |             return modify(request)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:71:29: error: cannot find type 'URLRequest' in scope
 69 |
 70 |     /// Last executed request
 71 |     public var lastRequest: URLRequest? {
    |                             `- error: cannot find type 'URLRequest' in scope
 72 |         return lastRequests.last
 73 |     }
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:76:44: error: cannot find type 'URLRequest' in scope
 74 |
 75 |     /// All executed requests.
 76 |     public private(set) var lastRequests: [URLRequest] = []
    |                                            `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     private var responses: [(String, Result<(Data, HTTPURLResponse), NetworkError>)]
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:78:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |     public private(set) var lastRequests: [URLRequest] = []
 77 |
 78 |     private var responses: [(String, Result<(Data, HTTPURLResponse), NetworkError>)]
    |                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     private let encoder: JSONEncoder
 80 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:83:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |     /// Creates an instace of `NetworkServiceMock`
 82 |     public init(
 83 |         responses: [Result<(Data, HTTPURLResponse), NetworkError>] = [],
    |                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         encoder: JSONEncoder = JSONEncoder()
 85 |     ) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:92:45: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 90 |     /// Creates an instace of `NetworkServiceMock`
 91 |     public init<each T: Encodable>(
 92 |         _ responses: repeat Result<(each T, HTTPURLResponse), NetworkError>,
    |                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |         encoder: JSONEncoder = JSONEncoder()
 94 |     ) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:114:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     /// Creates an instace of `NetworkServiceMock`
113 |     public init(
114 |         mappings responses: [(String, Result<(Data, HTTPURLResponse), NetworkError>)],
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |         encoder: JSONEncoder = JSONEncoder()
116 |     ) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:123:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |     /// Creates an instace of `NetworkServiceMock`
122 |     public init<each T: Encodable>(
123 |         mappings responses: repeat (String, Result<(each T, HTTPURLResponse), NetworkError>),
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         encoder: JSONEncoder = JSONEncoder()
125 |     ) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:172:135: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |      */
171 |     @MainActor
172 |     public func requestResultWithResponse<Success: Sendable>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, HTTPURLResponse), NetworkError> {
    |                                                                                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         lastRequests.append(resource.request)
174 |         if !responses.isEmpty {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:198:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |     }
197 |
198 |     public func schedule<T: Encodable>(result: Result<(T, HTTPURLResponse), NetworkError>) {
    |                                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |         let scheduled: Result<(Data, HTTPURLResponse), NetworkError>
200 |         switch result {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:216:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     }
215 |
216 |     public func schedule(success: (Void, HTTPURLResponse)) {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         schedule(result: .success(("", success.1)))
218 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:224:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |     }
223 |
224 |     public func schedule<T: Encodable>(success: (T, HTTPURLResponse)) {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |         schedule(result: .success(success))
226 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:172:17: warning: non-Sendable type 'Result<(Success, HTTPURLResponse), NetworkError>' (aka 'Result<(Success, AnyObject), NetworkError>') cannot be returned from main actor-isolated implementation to caller of protocol requirement 'requestResultWithResponse(for:)'; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/non-sendable-values-in-async-conformances-and-overrides\NonSendableInAsyncConformanceOrOverride]8;;\]
170 |      */
171 |     @MainActor
172 |     public func requestResultWithResponse<Success: Sendable>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, HTTPURLResponse), NetworkError> {
    |                 `- warning: non-Sendable type 'Result<(Success, HTTPURLResponse), NetworkError>' (aka 'Result<(Success, AnyObject), NetworkError>') cannot be returned from main actor-isolated implementation to caller of protocol requirement 'requestResultWithResponse(for:)'; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/non-sendable-values-in-async-conformances-and-overrides\NonSendableInAsyncConformanceOrOverride]8;;\]
173 |         lastRequests.append(resource.request)
174 |         if !responses.isEmpty {
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:237:77: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |     func encode<T: Encodable>(
236 |         encoder: JSONEncoder
237 |     ) -> Result<(Data, HTTPURLResponse), NetworkError> where Success == (T, HTTPURLResponse), Failure == NetworkError {
    |                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 |         return self.map({ ((try? encoder.encode($0.0)) ?? Data(), $0.1) })
239 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:237:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 |     func encode<T: Encodable>(
236 |         encoder: JSONEncoder
237 |     ) -> Result<(Data, HTTPURLResponse), NetworkError> where Success == (T, HTTPURLResponse), Failure == NetworkError {
    |                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 |         return self.map({ ((try? encoder.encode($0.0)) ?? Data(), $0.1) })
239 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:247:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 |     func encode(
246 |         encoder: JSONEncoder
247 |     ) -> Result<(Data, HTTPURLResponse), NetworkError> {
    |                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 |         let defaultResponse: HTTPURLResponse! = HTTPURLResponse(
249 |             url: URL(staticString: "bahn.de"),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/RetryNetworkService.swift:84:125: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |      - returns: a running network task
 83 |      */
 84 |     public func requestResultWithResponse<Success>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, HTTPURLResponse), NetworkError> {
    |                                                                                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         let result = await networkService.requestResultWithResponse(for: resource)
 86 |         switch result {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/NetworkServices/RetryNetworkService.swift:98:33: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |         numberOfRetriesLeft: Int,
 97 |         resource: Resource<Success, NetworkError>
 98 |     ) async -> Result<(Success, HTTPURLResponse), NetworkError> {
    |                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |         if self.shouldRetry(error), numberOfRetriesLeft > 0 {
100 |             let duration = UInt64(idleTimeInterval * 1_000_000_000)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Resource+Decodable.swift:35:26: error: cannot find type 'URLRequest' in scope
33 |     ///   - decoder: a decoder which can decode the payload into the model type
34 |     ///   - mapError: a closure which maps to Error
35 |     public init(request: URLRequest, decoder: JSONDecoder, mapError: @escaping @Sendable  (_ networkError: NetworkError) -> E) {
   |                          `- error: cannot find type 'URLRequest' in scope
36 |         self.init(request: request, parse: {
37 |                 try decoder.decode(Model.self, from: $0)
/host/spi-builder-workspace/Source/Resource+Decodable.swift:53:26: error: cannot find type 'URLRequest' in scope
51 |     ///   - decoder: a decoder which can decode the payload into the model type
52 |     ///   - mapError: a closure which maps to Error
53 |     public init(request: URLRequest, decoder: JSONDecoder) {
   |                          `- error: cannot find type 'URLRequest' in scope
54 |         self.init(request: request, parse: {
55 |                 try decoder.decode(Model.self, from: $0)
/host/spi-builder-workspace/Source/Resource+Void.swift:17:19: error: cannot find type 'URLRequest' in scope
15 |     ///   - request: The request to get the remote data payload
16 |     ///   - mapError: a closure which maps to Error
17 |     init(request: URLRequest, mapError: @escaping @Sendable  (_ networkError: NetworkError) -> E) {
   |                   `- error: cannot find type 'URLRequest' in scope
18 |         self.init(request: request, parse: { _ in }, mapError: mapError)
19 |     }
/host/spi-builder-workspace/Source/Resource+Void.swift:28:19: error: cannot find type 'URLRequest' in scope
26 |     /// - Parameters:
27 |     ///   - request: The request to get the remote data payload
28 |     init(request: URLRequest) {
   |                   `- error: cannot find type 'URLRequest' in scope
29 |         self.init(request: request, parse: { _ in }, mapError: { E(networkError: $0) })
30 |     }
/host/spi-builder-workspace/Source/Resource.swift:40:25: error: cannot find type 'URLRequest' in scope
38 | public struct Resource<Model, E: Error>: Sendable {
39 |     /// The request to fetch the resource remote payload
40 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
41 |
42 |     /// Parses data into given model.
/host/spi-builder-workspace/Source/Resource.swift:52:26: error: cannot find type 'URLRequest' in scope
50 |     /// - parse: Parses data fetched with the request into given Model
51 |
52 |     public init(request: URLRequest, parse: @escaping @Sendable  (Data) throws -> Model, mapError: @escaping @Sendable  (_ networkError: NetworkError) -> E) {
   |                          `- error: cannot find type 'URLRequest' in scope
53 |         self.request = request
54 |         self.parse = parse
/host/spi-builder-workspace/Source/ResourceWithError+NetworkErrorConvertible.swift:12:19: error: cannot find type 'URLRequest' in scope
10 | public extension Resource where E: NetworkErrorConvertible {
11 |
12 |     init(request: URLRequest, parse: @escaping @Sendable (Data) throws -> Model) {
   |                   `- error: cannot find type 'URLRequest' in scope
13 |         self.request = request
14 |         self.parse = parse
/host/spi-builder-workspace/Source/URLRequest+Init.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |
 28 |     /// Convience initializer for easy request creation.
/host/spi-builder-workspace/Source/URLRequest+Modifications.swift:26:18: error: cannot find type 'URLRequest' in scope
24 | import Foundation
25 |
26 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
27 |
28 |     /// Creates a new `URLRequest` with HTTPHeaderFields added into the new request.
/host/spi-builder-workspace/Source/URLSession+NetworkAccess.swift:27:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
25 |
26 | /// Adds conformens to `NetworkAccess`. `URLSession` can be used as a network access.
27 | extension URLSession: NetworkAccess {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
28 |     public func load(request: URLRequest) async throws -> (Data, URLResponse) {
29 |         return try await data(for: request)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[#NonSendableInAsyncConformanceOrOverride]: <https://docs.swift.org/compiler/documentation/diagnostics/non-sendable-values-in-async-conformances-and-overrides>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Source/HTTPMethod.swift /host/spi-builder-workspace/Source/NetworkAccess.swift /host/spi-builder-workspace/Source/NetworkError.swift /host/spi-builder-workspace/Source/NetworkErrorConvertible.swift /host/spi-builder-workspace/Source/NetworkService+ResourceWithError.swift /host/spi-builder-workspace/Source/NetworkService.swift /host/spi-builder-workspace/Source/NetworkServices/BasicNetworkService.swift /host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift /host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift /host/spi-builder-workspace/Source/NetworkServices/RetryNetworkService.swift /host/spi-builder-workspace/Source/Resource+Decodable.swift /host/spi-builder-workspace/Source/Resource+Inspect.swift /host/spi-builder-workspace/Source/Resource+Map.swift /host/spi-builder-workspace/Source/Resource+Void.swift /host/spi-builder-workspace/Source/Resource.swift /host/spi-builder-workspace/Source/ResourceWithError+NetworkErrorConvertible.swift /host/spi-builder-workspace/Source/URL+StaticStringInit.swift /host/spi-builder-workspace/Source/URLRequest+Init.swift /host/spi-builder-workspace/Source/URLRequest+Modifications.swift /host/spi-builder-workspace/Source/URLSession+NetworkAccess.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature StrictConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name DBNetworkStack -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/DBNetworkStack_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/Modules/DBNetworkStack.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/Modules/DBNetworkStack.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/DBNetworkStack-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/DBNetworkStack-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/DBNetworkStack-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/Modules/DBNetworkStack.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux