Build Information
Failed to build Alley, reference 4.0.1 (e11a9e
), with Swift 6.1 for Linux on 29 Apr 2025 18:10:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/radianttap/Alley.git
Reference: 4.0.1
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/radianttap/Alley
* tag 4.0.1 -> FETCH_HEAD
HEAD is now at e11a9ed Make version badge more readable
Cloned https://github.com/radianttap/Alley.git
Revision (git rev-parse @):
e11a9edb8e64ec1c3fc38cc44095d72f6f497410
SUCCESS checkout https://github.com/radianttap/Alley.git at 4.0.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/radianttap/Alley.git
https://github.com/radianttap/Alley.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Alley",
"name" : "Alley",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "Alley",
"targets" : [
"Alley"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"6"
],
"targets" : [
{
"c99name" : "Alley",
"module_type" : "SwiftTarget",
"name" : "Alley",
"path" : "Sources/Alley",
"product_memberships" : [
"Alley"
],
"sources" : [
"Alley.swift",
"NetworkError-Localized.swift",
"NetworkError-Retries.swift",
"NetworkError.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Emitting module Alley
/host/spi-builder-workspace/Sources/Alley/Alley.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 |
11 | @available(macOS 12, iOS 15, watchOS 10.0, tvOS 15, visionOS 1, *)
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | /// Executes given `URLRequest` instance, possibly retrying the said number of times. Returns `Data` from the response or throws some `NetworkError` instance.
14 | ///
/host/spi-builder-workspace/Sources/Alley/Alley.swift:34:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
32 |
33 | @available(macOS 12, iOS 15, watchOS 10.0, tvOS 15, visionOS 1, *)
34 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
35 |
36 | typealias RetriableRequest = (
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:108:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
106 | }
107 |
108 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
109 | var formattedHeaders: String {
110 | return allHeaderFields.map { "\( $0.key ) : \( $0.value )" }.joined(separator: "\n")
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:27:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// When `URLResponse` is not `HTTPURLResponse`.
27 | case invalidResponseType(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
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/Alley/NetworkError.swift:30:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
30 | case noResponseData(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:33:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
33 | case endpointError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | }
35 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:27:7: error: associated value 'invalidResponseType' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'URLResponse' (aka 'AnyObject')
25 |
26 | /// When `URLResponse` is not `HTTPURLResponse`.
27 | case invalidResponseType(URLResponse)
| `- error: associated value 'invalidResponseType' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'URLResponse' (aka 'AnyObject')
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:30:7: error: associated value 'noResponseData' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
30 | case noResponseData(HTTPURLResponse)
| `- error: associated value 'noResponseData' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:33:7: error: associated value 'endpointError' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
33 | case endpointError(HTTPURLResponse, Data?)
| `- error: associated value 'endpointError' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
34 | }
35 |
[4/7] Compiling Alley NetworkError.swift
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:27:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// When `URLResponse` is not `HTTPURLResponse`.
27 | case invalidResponseType(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
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/Alley/NetworkError.swift:30:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
30 | case noResponseData(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:33:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
33 | case endpointError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | }
35 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:27:7: error: associated value 'invalidResponseType' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'URLResponse' (aka 'AnyObject')
25 |
26 | /// When `URLResponse` is not `HTTPURLResponse`.
27 | case invalidResponseType(URLResponse)
| `- error: associated value 'invalidResponseType' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'URLResponse' (aka 'AnyObject')
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:30:7: error: associated value 'noResponseData' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
30 | case noResponseData(HTTPURLResponse)
| `- error: associated value 'noResponseData' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:33:7: error: associated value 'endpointError' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
33 | case endpointError(HTTPURLResponse, Data?)
| `- error: associated value 'endpointError' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
34 | }
35 |
[5/7] Compiling Alley NetworkError-Retries.swift
/host/spi-builder-workspace/Sources/Alley/NetworkError-Retries.swift:36:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |
35 | case .endpointError(let httpURLResponse, _):
36 | switch httpURLResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | case 408, // Request Timeout
38 | 444, // Connection Closed Without Response
[6/7] Compiling Alley NetworkError-Localized.swift
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:108:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
106 | }
107 |
108 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
109 | var formattedHeaders: String {
110 | return allHeaderFields.map { "\( $0.key ) : \( $0.value )" }.joined(separator: "\n")
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:27:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |
26 | case .endpointError(let httpURLResponse, _):
27 | let s = "Web service network error: \( httpURLResponse.statusCode ) \( HTTPURLResponse.localizedString(forStatusCode: httpURLResponse.statusCode) )"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
28 | return s
29 |
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:52:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'formattedHeaders'
50 |
51 | case .endpointError(let httpURLResponse, let data):
52 | return "\( httpURLResponse.formattedHeaders )\n\n\( data?.utf8StringRepresentation ?? "" )"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'formattedHeaders'
53 |
54 | case .inaccessible:
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:76:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | case .endpointError(let httpURLResponse, _):
76 | let s = "\( httpURLResponse.statusCode ) \( HTTPURLResponse.localizedString(forStatusCode: httpURLResponse.statusCode) )"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return s
78 |
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:93:18: error: missing argument label 'arguments:' in call
91 |
92 | case .invalidResponseType(let response):
93 | return String(format: NSLocalizedString("Response is not HTTP response.\n\n%@", comment: ""), response)
| `- error: missing argument label 'arguments:' in call
94 |
95 | case .inaccessible:
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:93:99: error: 'URLResponse' (aka 'AnyObject') is not convertible to '[any CVarArg]'
91 |
92 | case .invalidResponseType(let response):
93 | return String(format: NSLocalizedString("Response is not HTTP response.\n\n%@", comment: ""), response)
| |- error: 'URLResponse' (aka 'AnyObject') is not convertible to '[any CVarArg]'
| `- note: did you mean to use 'as!' to force downcast?
94 |
95 | case .inaccessible:
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:102:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'formattedHeaders'
100 |
101 | case .endpointError(let httpURLResponse, let data):
102 | let s = "\( httpURLResponse.formattedHeaders )\n\n\( data?.utf8StringRepresentation ?? "" )"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'formattedHeaders'
103 | return s
104 | }
[7/7] Compiling Alley Alley.swift
/host/spi-builder-workspace/Sources/Alley/Alley.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 |
11 | @available(macOS 12, iOS 15, watchOS 10.0, tvOS 15, visionOS 1, *)
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | /// Executes given `URLRequest` instance, possibly retrying the said number of times. Returns `Data` from the response or throws some `NetworkError` instance.
14 | ///
/host/spi-builder-workspace/Sources/Alley/Alley.swift:34:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
32 |
33 | @available(macOS 12, iOS 15, watchOS 10.0, tvOS 15, visionOS 1, *)
34 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
35 |
36 | typealias RetriableRequest = (
/host/spi-builder-workspace/Sources/Alley/Alley.swift:21:40: error: cannot find type 'URLRequest' in scope
19 | /// - maxRetries: Number of automatic retries (default is 10).
20 | /// - allowEmptyData: Should empty response `Data` be treated as failure (this is default) even if no other errors are returned by `URLSession`. Default is `false`.
21 | public func alleyData(for urlRequest: URLRequest, maxRetries: Int = 10, retryInterval: TimeInterval = 0.5, allowEmptyData: Bool = false) async throws(NetworkError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
22 | let networkRequest = RetriableRequest(
23 | urlRequest,
/host/spi-builder-workspace/Sources/Alley/Alley.swift:37:15: error: cannot find type 'URLRequest' in scope
35 |
36 | typealias RetriableRequest = (
37 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | currentRetries: Int,
39 | maxRetries: Int,
/host/spi-builder-workspace/Sources/Alley/Alley.swift:44:33: error: cannot find type 'RetriableRequest' in scope
42 |
43 | ///
44 | func execute(_ networkRequest: RetriableRequest, retryInterval: TimeInterval) async throws(NetworkError) -> Data {
| `- error: cannot find type 'RetriableRequest' in scope
45 | let urlRequest = networkRequest.urlRequest
46 |
/host/spi-builder-workspace/Sources/Alley/Alley.swift:64:76: error: cannot find type 'RetriableRequest' in scope
62 |
63 | ///
64 | func verify(_ data: Data, _ urlResponse: URLResponse, for networkRequest: RetriableRequest, retryInterval: TimeInterval) throws(NetworkError) {
| `- error: cannot find type 'RetriableRequest' in scope
65 |
66 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Alley/Alley.swift:80:31: error: cannot find type 'RetriableRequest' in scope
78 |
79 | ///
80 | func retry(_ networkRequest: RetriableRequest, ifPossibleFor err: NetworkError, retryInterval: TimeInterval) async throws(NetworkError) -> Data {
| `- error: cannot find type 'RetriableRequest' in scope
81 | guard err.shouldRetry else {
82 | throw err
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Alley NetworkError.swift
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:27:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// When `URLResponse` is not `HTTPURLResponse`.
27 | case invalidResponseType(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
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/Alley/NetworkError.swift:30:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
30 | case noResponseData(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:33:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
33 | case endpointError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | }
35 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:27:7: error: associated value 'invalidResponseType' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'URLResponse' (aka 'AnyObject')
25 |
26 | /// When `URLResponse` is not `HTTPURLResponse`.
27 | case invalidResponseType(URLResponse)
| `- error: associated value 'invalidResponseType' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'URLResponse' (aka 'AnyObject')
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:30:7: error: associated value 'noResponseData' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
30 | case noResponseData(HTTPURLResponse)
| `- error: associated value 'noResponseData' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:33:7: error: associated value 'endpointError' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
33 | case endpointError(HTTPURLResponse, Data?)
| `- error: associated value 'endpointError' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
34 | }
35 |
[3/6] Compiling Alley NetworkError-Retries.swift
/host/spi-builder-workspace/Sources/Alley/NetworkError-Retries.swift:36:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |
35 | case .endpointError(let httpURLResponse, _):
36 | switch httpURLResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | case 408, // Request Timeout
38 | 444, // Connection Closed Without Response
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Emitting module Alley
/host/spi-builder-workspace/Sources/Alley/Alley.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 |
11 | @available(macOS 12, iOS 15, watchOS 10.0, tvOS 15, visionOS 1, *)
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | /// Executes given `URLRequest` instance, possibly retrying the said number of times. Returns `Data` from the response or throws some `NetworkError` instance.
14 | ///
/host/spi-builder-workspace/Sources/Alley/Alley.swift:34:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
32 |
33 | @available(macOS 12, iOS 15, watchOS 10.0, tvOS 15, visionOS 1, *)
34 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
35 |
36 | typealias RetriableRequest = (
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:108:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
106 | }
107 |
108 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
109 | var formattedHeaders: String {
110 | return allHeaderFields.map { "\( $0.key ) : \( $0.value )" }.joined(separator: "\n")
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:27:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// When `URLResponse` is not `HTTPURLResponse`.
27 | case invalidResponseType(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
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/Alley/NetworkError.swift:30:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
30 | case noResponseData(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:33:21: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
33 | case endpointError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | }
35 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:27:7: error: associated value 'invalidResponseType' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'URLResponse' (aka 'AnyObject')
25 |
26 | /// When `URLResponse` is not `HTTPURLResponse`.
27 | case invalidResponseType(URLResponse)
| `- error: associated value 'invalidResponseType' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'URLResponse' (aka 'AnyObject')
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:30:7: error: associated value 'noResponseData' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
28 |
29 | /// Status code is in `200...299` range, but response body is empty. This can be both valid and invalid, depending on HTTP method and/or specific behavior of the service being called.
30 | case noResponseData(HTTPURLResponse)
| `- error: associated value 'noResponseData' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
/host/spi-builder-workspace/Sources/Alley/NetworkError.swift:33:7: error: associated value 'endpointError' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
31 |
32 | /// Status code is `400` or higher thus return the entire `HTTPURLResponse` and `Data` so caller can figure out what happened.
33 | case endpointError(HTTPURLResponse, Data?)
| `- error: associated value 'endpointError' of 'Sendable'-conforming enum 'NetworkError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
34 | }
35 |
[5/6] Compiling Alley Alley.swift
/host/spi-builder-workspace/Sources/Alley/Alley.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
10 |
11 | @available(macOS 12, iOS 15, watchOS 10.0, tvOS 15, visionOS 1, *)
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | /// Executes given `URLRequest` instance, possibly retrying the said number of times. Returns `Data` from the response or throws some `NetworkError` instance.
14 | ///
/host/spi-builder-workspace/Sources/Alley/Alley.swift:34:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
32 |
33 | @available(macOS 12, iOS 15, watchOS 10.0, tvOS 15, visionOS 1, *)
34 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
35 |
36 | typealias RetriableRequest = (
/host/spi-builder-workspace/Sources/Alley/Alley.swift:21:40: error: cannot find type 'URLRequest' in scope
19 | /// - maxRetries: Number of automatic retries (default is 10).
20 | /// - allowEmptyData: Should empty response `Data` be treated as failure (this is default) even if no other errors are returned by `URLSession`. Default is `false`.
21 | public func alleyData(for urlRequest: URLRequest, maxRetries: Int = 10, retryInterval: TimeInterval = 0.5, allowEmptyData: Bool = false) async throws(NetworkError) -> Data {
| `- error: cannot find type 'URLRequest' in scope
22 | let networkRequest = RetriableRequest(
23 | urlRequest,
/host/spi-builder-workspace/Sources/Alley/Alley.swift:37:15: error: cannot find type 'URLRequest' in scope
35 |
36 | typealias RetriableRequest = (
37 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | currentRetries: Int,
39 | maxRetries: Int,
/host/spi-builder-workspace/Sources/Alley/Alley.swift:44:33: error: cannot find type 'RetriableRequest' in scope
42 |
43 | ///
44 | func execute(_ networkRequest: RetriableRequest, retryInterval: TimeInterval) async throws(NetworkError) -> Data {
| `- error: cannot find type 'RetriableRequest' in scope
45 | let urlRequest = networkRequest.urlRequest
46 |
/host/spi-builder-workspace/Sources/Alley/Alley.swift:64:76: error: cannot find type 'RetriableRequest' in scope
62 |
63 | ///
64 | func verify(_ data: Data, _ urlResponse: URLResponse, for networkRequest: RetriableRequest, retryInterval: TimeInterval) throws(NetworkError) {
| `- error: cannot find type 'RetriableRequest' in scope
65 |
66 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Alley/Alley.swift:80:31: error: cannot find type 'RetriableRequest' in scope
78 |
79 | ///
80 | func retry(_ networkRequest: RetriableRequest, ifPossibleFor err: NetworkError, retryInterval: TimeInterval) async throws(NetworkError) -> Data {
| `- error: cannot find type 'RetriableRequest' in scope
81 | guard err.shouldRetry else {
82 | throw err
[6/6] Compiling Alley NetworkError-Localized.swift
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:108:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
106 | }
107 |
108 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
109 | var formattedHeaders: String {
110 | return allHeaderFields.map { "\( $0.key ) : \( $0.value )" }.joined(separator: "\n")
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:27:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |
26 | case .endpointError(let httpURLResponse, _):
27 | let s = "Web service network error: \( httpURLResponse.statusCode ) \( HTTPURLResponse.localizedString(forStatusCode: httpURLResponse.statusCode) )"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
28 | return s
29 |
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:52:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'formattedHeaders'
50 |
51 | case .endpointError(let httpURLResponse, let data):
52 | return "\( httpURLResponse.formattedHeaders )\n\n\( data?.utf8StringRepresentation ?? "" )"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'formattedHeaders'
53 |
54 | case .inaccessible:
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:76:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 |
75 | case .endpointError(let httpURLResponse, _):
76 | let s = "\( httpURLResponse.statusCode ) \( HTTPURLResponse.localizedString(forStatusCode: httpURLResponse.statusCode) )"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | return s
78 |
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:93:18: error: missing argument label 'arguments:' in call
91 |
92 | case .invalidResponseType(let response):
93 | return String(format: NSLocalizedString("Response is not HTTP response.\n\n%@", comment: ""), response)
| `- error: missing argument label 'arguments:' in call
94 |
95 | case .inaccessible:
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:93:99: error: 'URLResponse' (aka 'AnyObject') is not convertible to '[any CVarArg]'
91 |
92 | case .invalidResponseType(let response):
93 | return String(format: NSLocalizedString("Response is not HTTP response.\n\n%@", comment: ""), response)
| |- error: 'URLResponse' (aka 'AnyObject') is not convertible to '[any CVarArg]'
| `- note: did you mean to use 'as!' to force downcast?
94 |
95 | case .inaccessible:
/host/spi-builder-workspace/Sources/Alley/NetworkError-Localized.swift:102:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'formattedHeaders'
100 |
101 | case .endpointError(let httpURLResponse, let data):
102 | let s = "\( httpURLResponse.formattedHeaders )\n\n\( data?.utf8StringRepresentation ?? "" )"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'formattedHeaders'
103 | return s
104 | }
BUILD FAILURE 6.1 linux