Build Information
Failed to build Hyperspace, reference 5.1.0 (f3bed2
), with Swift 6.1 for Linux on 28 Apr 2025 02:22:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
35 |
36 | /// Represents the value portion of a HTTP header field key-value pair.
37 | public struct HeaderValue: RawRepresentable, Equatable, ExpressibleByStringLiteral {
| `- note: consider making struct 'HeaderValue' conform to the 'Sendable' protocol
38 | public var rawValue: String
39 |
:
266 | static let encodingGzip = HTTP.HeaderValue(rawValue: "gzip")
267 | static let encodingIdentity = HTTP.HeaderValue(rawValue: "identity")
268 | static let encodingPack200Gzip = HTTP.HeaderValue(rawValue: "pack200-gzip")
| |- warning: static property 'encodingPack200Gzip' is not concurrency-safe because non-'Sendable' type 'HTTP.HeaderValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'encodingPack200Gzip' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
269 | static let encodingBr = HTTP.HeaderValue(rawValue: "br")
270 | static let passKit = HTTP.HeaderValue(rawValue: "application/vnd.apple.pkpass")
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:269:16: warning: static property 'encodingBr' is not concurrency-safe because non-'Sendable' type 'HTTP.HeaderValue' may have shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | /// Represents the value portion of a HTTP header field key-value pair.
37 | public struct HeaderValue: RawRepresentable, Equatable, ExpressibleByStringLiteral {
| `- note: consider making struct 'HeaderValue' conform to the 'Sendable' protocol
38 | public var rawValue: String
39 |
:
267 | static let encodingIdentity = HTTP.HeaderValue(rawValue: "identity")
268 | static let encodingPack200Gzip = HTTP.HeaderValue(rawValue: "pack200-gzip")
269 | static let encodingBr = HTTP.HeaderValue(rawValue: "br")
| |- warning: static property 'encodingBr' is not concurrency-safe because non-'Sendable' type 'HTTP.HeaderValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'encodingBr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
270 | static let passKit = HTTP.HeaderValue(rawValue: "application/vnd.apple.pkpass")
271 | static let jsonAPI = HTTP.HeaderValue(rawValue: "application/vnd.api+json")
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:270:16: warning: static property 'passKit' is not concurrency-safe because non-'Sendable' type 'HTTP.HeaderValue' may have shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | /// Represents the value portion of a HTTP header field key-value pair.
37 | public struct HeaderValue: RawRepresentable, Equatable, ExpressibleByStringLiteral {
| `- note: consider making struct 'HeaderValue' conform to the 'Sendable' protocol
38 | public var rawValue: String
39 |
:
268 | static let encodingPack200Gzip = HTTP.HeaderValue(rawValue: "pack200-gzip")
269 | static let encodingBr = HTTP.HeaderValue(rawValue: "br")
270 | static let passKit = HTTP.HeaderValue(rawValue: "application/vnd.apple.pkpass")
| |- warning: static property 'passKit' is not concurrency-safe because non-'Sendable' type 'HTTP.HeaderValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'passKit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | static let jsonAPI = HTTP.HeaderValue(rawValue: "application/vnd.api+json")
272 |
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:271:16: warning: static property 'jsonAPI' is not concurrency-safe because non-'Sendable' type 'HTTP.HeaderValue' may have shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | /// Represents the value portion of a HTTP header field key-value pair.
37 | public struct HeaderValue: RawRepresentable, Equatable, ExpressibleByStringLiteral {
| `- note: consider making struct 'HeaderValue' conform to the 'Sendable' protocol
38 | public var rawValue: String
39 |
:
269 | static let encodingBr = HTTP.HeaderValue(rawValue: "br")
270 | static let passKit = HTTP.HeaderValue(rawValue: "application/vnd.apple.pkpass")
271 | static let jsonAPI = HTTP.HeaderValue(rawValue: "application/vnd.api+json")
| |- warning: static property 'jsonAPI' is not concurrency-safe because non-'Sendable' type 'HTTP.HeaderValue' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'jsonAPI' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |
273 | static func authorizationBasic(username: String, password: String) -> Self? {
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:285:16: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
283 | // MARK: - Common HTTP Status Codes
284 | public extension HTTP.Status.Success {
285 | static let ok = HTTP.Status.Success(rawValue: 200)
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ok' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
286 | static let created = HTTP.Status.Success(rawValue: 201)
287 | static let accepted = HTTP.Status.Success(rawValue: 202)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:286:16: warning: static property 'created' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
284 | public extension HTTP.Status.Success {
285 | static let ok = HTTP.Status.Success(rawValue: 200)
286 | static let created = HTTP.Status.Success(rawValue: 201)
| |- warning: static property 'created' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'created' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | static let accepted = HTTP.Status.Success(rawValue: 202)
288 | static let nonAuthoritativeInformation = HTTP.Status.Success(rawValue: 203)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:287:16: warning: static property 'accepted' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
285 | static let ok = HTTP.Status.Success(rawValue: 200)
286 | static let created = HTTP.Status.Success(rawValue: 201)
287 | static let accepted = HTTP.Status.Success(rawValue: 202)
| |- warning: static property 'accepted' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'accepted' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | static let nonAuthoritativeInformation = HTTP.Status.Success(rawValue: 203)
289 | static let noContent = HTTP.Status.Success(rawValue: 204)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:288:16: warning: static property 'nonAuthoritativeInformation' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
286 | static let created = HTTP.Status.Success(rawValue: 201)
287 | static let accepted = HTTP.Status.Success(rawValue: 202)
288 | static let nonAuthoritativeInformation = HTTP.Status.Success(rawValue: 203)
| |- warning: static property 'nonAuthoritativeInformation' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nonAuthoritativeInformation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 | static let noContent = HTTP.Status.Success(rawValue: 204)
290 | static let resetContent = HTTP.Status.Success(rawValue: 205)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:289:16: warning: static property 'noContent' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
287 | static let accepted = HTTP.Status.Success(rawValue: 202)
288 | static let nonAuthoritativeInformation = HTTP.Status.Success(rawValue: 203)
289 | static let noContent = HTTP.Status.Success(rawValue: 204)
| |- warning: static property 'noContent' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 | static let resetContent = HTTP.Status.Success(rawValue: 205)
291 | static let partialContent = HTTP.Status.Success(rawValue: 206)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:290:16: warning: static property 'resetContent' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
288 | static let nonAuthoritativeInformation = HTTP.Status.Success(rawValue: 203)
289 | static let noContent = HTTP.Status.Success(rawValue: 204)
290 | static let resetContent = HTTP.Status.Success(rawValue: 205)
| |- warning: static property 'resetContent' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resetContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
291 | static let partialContent = HTTP.Status.Success(rawValue: 206)
292 | static let multiStatus = HTTP.Status.Success(rawValue: 207)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:291:16: warning: static property 'partialContent' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
289 | static let noContent = HTTP.Status.Success(rawValue: 204)
290 | static let resetContent = HTTP.Status.Success(rawValue: 205)
291 | static let partialContent = HTTP.Status.Success(rawValue: 206)
| |- warning: static property 'partialContent' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
292 | static let multiStatus = HTTP.Status.Success(rawValue: 207)
293 | static let alreadyReported = HTTP.Status.Success(rawValue: 208)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:292:16: warning: static property 'multiStatus' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
290 | static let resetContent = HTTP.Status.Success(rawValue: 205)
291 | static let partialContent = HTTP.Status.Success(rawValue: 206)
292 | static let multiStatus = HTTP.Status.Success(rawValue: 207)
| |- warning: static property 'multiStatus' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'multiStatus' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
293 | static let alreadyReported = HTTP.Status.Success(rawValue: 208)
294 | static let imUsed = HTTP.Status.Success(rawValue: 226)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:293:16: warning: static property 'alreadyReported' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
291 | static let partialContent = HTTP.Status.Success(rawValue: 206)
292 | static let multiStatus = HTTP.Status.Success(rawValue: 207)
293 | static let alreadyReported = HTTP.Status.Success(rawValue: 208)
| |- warning: static property 'alreadyReported' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'alreadyReported' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
294 | static let imUsed = HTTP.Status.Success(rawValue: 226)
295 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:294:16: warning: static property 'imUsed' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Represents a HTTP status code.
50 | public enum Status: Equatable {
51 | public struct Success: RawRepresentable, Equatable {
| `- note: consider making struct 'Success' conform to the 'Sendable' protocol
52 | public var rawValue: Int
53 |
:
292 | static let multiStatus = HTTP.Status.Success(rawValue: 207)
293 | static let alreadyReported = HTTP.Status.Success(rawValue: 208)
294 | static let imUsed = HTTP.Status.Success(rawValue: 226)
| |- warning: static property 'imUsed' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Success' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'imUsed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
295 | }
296 |
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:298:16: warning: static property 'multipleChoices' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public struct Redirection: RawRepresentable, Equatable {
| `- note: consider making struct 'Redirection' conform to the 'Sendable' protocol
62 | public var rawValue: Int
63 |
:
296 |
297 | public extension HTTP.Status.Redirection {
298 | static let multipleChoices = HTTP.Status.Redirection(rawValue: 300)
| |- warning: static property 'multipleChoices' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'multipleChoices' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
299 | static let movedPermanently = HTTP.Status.Redirection(rawValue: 301)
300 | static let found = HTTP.Status.Redirection(rawValue: 302)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:299:16: warning: static property 'movedPermanently' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public struct Redirection: RawRepresentable, Equatable {
| `- note: consider making struct 'Redirection' conform to the 'Sendable' protocol
62 | public var rawValue: Int
63 |
:
297 | public extension HTTP.Status.Redirection {
298 | static let multipleChoices = HTTP.Status.Redirection(rawValue: 300)
299 | static let movedPermanently = HTTP.Status.Redirection(rawValue: 301)
| |- warning: static property 'movedPermanently' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'movedPermanently' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
300 | static let found = HTTP.Status.Redirection(rawValue: 302)
301 | static let seeOther = HTTP.Status.Redirection(rawValue: 303)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:300:16: warning: static property 'found' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public struct Redirection: RawRepresentable, Equatable {
| `- note: consider making struct 'Redirection' conform to the 'Sendable' protocol
62 | public var rawValue: Int
63 |
:
298 | static let multipleChoices = HTTP.Status.Redirection(rawValue: 300)
299 | static let movedPermanently = HTTP.Status.Redirection(rawValue: 301)
300 | static let found = HTTP.Status.Redirection(rawValue: 302)
| |- warning: static property 'found' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'found' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
301 | static let seeOther = HTTP.Status.Redirection(rawValue: 303)
302 | static let notModified = HTTP.Status.Redirection(rawValue: 304)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:301:16: warning: static property 'seeOther' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public struct Redirection: RawRepresentable, Equatable {
| `- note: consider making struct 'Redirection' conform to the 'Sendable' protocol
62 | public var rawValue: Int
63 |
:
299 | static let movedPermanently = HTTP.Status.Redirection(rawValue: 301)
300 | static let found = HTTP.Status.Redirection(rawValue: 302)
301 | static let seeOther = HTTP.Status.Redirection(rawValue: 303)
| |- warning: static property 'seeOther' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seeOther' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
302 | static let notModified = HTTP.Status.Redirection(rawValue: 304)
303 | static let useProxy = HTTP.Status.Redirection(rawValue: 305)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:302:16: warning: static property 'notModified' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public struct Redirection: RawRepresentable, Equatable {
| `- note: consider making struct 'Redirection' conform to the 'Sendable' protocol
62 | public var rawValue: Int
63 |
:
300 | static let found = HTTP.Status.Redirection(rawValue: 302)
301 | static let seeOther = HTTP.Status.Redirection(rawValue: 303)
302 | static let notModified = HTTP.Status.Redirection(rawValue: 304)
| |- warning: static property 'notModified' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notModified' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
303 | static let useProxy = HTTP.Status.Redirection(rawValue: 305)
304 | static let switchProxy = HTTP.Status.Redirection(rawValue: 306)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:303:16: warning: static property 'useProxy' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public struct Redirection: RawRepresentable, Equatable {
| `- note: consider making struct 'Redirection' conform to the 'Sendable' protocol
62 | public var rawValue: Int
63 |
:
301 | static let seeOther = HTTP.Status.Redirection(rawValue: 303)
302 | static let notModified = HTTP.Status.Redirection(rawValue: 304)
303 | static let useProxy = HTTP.Status.Redirection(rawValue: 305)
| |- warning: static property 'useProxy' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'useProxy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
304 | static let switchProxy = HTTP.Status.Redirection(rawValue: 306)
305 | static let temporaryRedirect = HTTP.Status.Redirection(rawValue: 307)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:304:16: warning: static property 'switchProxy' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public struct Redirection: RawRepresentable, Equatable {
| `- note: consider making struct 'Redirection' conform to the 'Sendable' protocol
62 | public var rawValue: Int
63 |
:
302 | static let notModified = HTTP.Status.Redirection(rawValue: 304)
303 | static let useProxy = HTTP.Status.Redirection(rawValue: 305)
304 | static let switchProxy = HTTP.Status.Redirection(rawValue: 306)
| |- warning: static property 'switchProxy' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'switchProxy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
305 | static let temporaryRedirect = HTTP.Status.Redirection(rawValue: 307)
306 | static let permanentRedirect = HTTP.Status.Redirection(rawValue: 308)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:305:16: warning: static property 'temporaryRedirect' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public struct Redirection: RawRepresentable, Equatable {
| `- note: consider making struct 'Redirection' conform to the 'Sendable' protocol
62 | public var rawValue: Int
63 |
:
303 | static let useProxy = HTTP.Status.Redirection(rawValue: 305)
304 | static let switchProxy = HTTP.Status.Redirection(rawValue: 306)
305 | static let temporaryRedirect = HTTP.Status.Redirection(rawValue: 307)
| |- warning: static property 'temporaryRedirect' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'temporaryRedirect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
306 | static let permanentRedirect = HTTP.Status.Redirection(rawValue: 308)
307 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:306:16: warning: static property 'permanentRedirect' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public struct Redirection: RawRepresentable, Equatable {
| `- note: consider making struct 'Redirection' conform to the 'Sendable' protocol
62 | public var rawValue: Int
63 |
:
304 | static let switchProxy = HTTP.Status.Redirection(rawValue: 306)
305 | static let temporaryRedirect = HTTP.Status.Redirection(rawValue: 307)
306 | static let permanentRedirect = HTTP.Status.Redirection(rawValue: 308)
| |- warning: static property 'permanentRedirect' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.Redirection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'permanentRedirect' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
307 | }
308 |
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:310:16: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
308 |
309 | public extension HTTP.Status.ClientError {
310 | static let badRequest = HTTP.Status.ClientError(rawValue: 400)
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'badRequest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
311 | static let unauthorized = HTTP.Status.ClientError(rawValue: 401)
312 | static let paymentRequired = HTTP.Status.ClientError(rawValue: 402)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:311:16: warning: static property 'unauthorized' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
309 | public extension HTTP.Status.ClientError {
310 | static let badRequest = HTTP.Status.ClientError(rawValue: 400)
311 | static let unauthorized = HTTP.Status.ClientError(rawValue: 401)
| |- warning: static property 'unauthorized' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unauthorized' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
312 | static let paymentRequired = HTTP.Status.ClientError(rawValue: 402)
313 | static let forbidden = HTTP.Status.ClientError(rawValue: 403)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:312:16: warning: static property 'paymentRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
310 | static let badRequest = HTTP.Status.ClientError(rawValue: 400)
311 | static let unauthorized = HTTP.Status.ClientError(rawValue: 401)
312 | static let paymentRequired = HTTP.Status.ClientError(rawValue: 402)
| |- warning: static property 'paymentRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'paymentRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
313 | static let forbidden = HTTP.Status.ClientError(rawValue: 403)
314 | static let notFound = HTTP.Status.ClientError(rawValue: 404)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:313:16: warning: static property 'forbidden' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
311 | static let unauthorized = HTTP.Status.ClientError(rawValue: 401)
312 | static let paymentRequired = HTTP.Status.ClientError(rawValue: 402)
313 | static let forbidden = HTTP.Status.ClientError(rawValue: 403)
| |- warning: static property 'forbidden' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'forbidden' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
314 | static let notFound = HTTP.Status.ClientError(rawValue: 404)
315 | static let methodNotAllowed = HTTP.Status.ClientError(rawValue: 405)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:314:16: warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
312 | static let paymentRequired = HTTP.Status.ClientError(rawValue: 402)
313 | static let forbidden = HTTP.Status.ClientError(rawValue: 403)
314 | static let notFound = HTTP.Status.ClientError(rawValue: 404)
| |- warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notFound' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
315 | static let methodNotAllowed = HTTP.Status.ClientError(rawValue: 405)
316 | static let notAcceptable = HTTP.Status.ClientError(rawValue: 406)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:315:16: warning: static property 'methodNotAllowed' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
313 | static let forbidden = HTTP.Status.ClientError(rawValue: 403)
314 | static let notFound = HTTP.Status.ClientError(rawValue: 404)
315 | static let methodNotAllowed = HTTP.Status.ClientError(rawValue: 405)
| |- warning: static property 'methodNotAllowed' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'methodNotAllowed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
316 | static let notAcceptable = HTTP.Status.ClientError(rawValue: 406)
317 | static let proxyAuthenticationRequired = HTTP.Status.ClientError(rawValue: 407)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:316:16: warning: static property 'notAcceptable' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
314 | static let notFound = HTTP.Status.ClientError(rawValue: 404)
315 | static let methodNotAllowed = HTTP.Status.ClientError(rawValue: 405)
316 | static let notAcceptable = HTTP.Status.ClientError(rawValue: 406)
| |- warning: static property 'notAcceptable' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notAcceptable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
317 | static let proxyAuthenticationRequired = HTTP.Status.ClientError(rawValue: 407)
318 | static let requestTimeout = HTTP.Status.ClientError(rawValue: 408)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:317:16: warning: static property 'proxyAuthenticationRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
315 | static let methodNotAllowed = HTTP.Status.ClientError(rawValue: 405)
316 | static let notAcceptable = HTTP.Status.ClientError(rawValue: 406)
317 | static let proxyAuthenticationRequired = HTTP.Status.ClientError(rawValue: 407)
| |- warning: static property 'proxyAuthenticationRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'proxyAuthenticationRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
318 | static let requestTimeout = HTTP.Status.ClientError(rawValue: 408)
319 | static let conflict = HTTP.Status.ClientError(rawValue: 409)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:318:16: warning: static property 'requestTimeout' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
316 | static let notAcceptable = HTTP.Status.ClientError(rawValue: 406)
317 | static let proxyAuthenticationRequired = HTTP.Status.ClientError(rawValue: 407)
318 | static let requestTimeout = HTTP.Status.ClientError(rawValue: 408)
| |- warning: static property 'requestTimeout' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'requestTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
319 | static let conflict = HTTP.Status.ClientError(rawValue: 409)
320 | static let gone = HTTP.Status.ClientError(rawValue: 410)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:319:16: warning: static property 'conflict' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
317 | static let proxyAuthenticationRequired = HTTP.Status.ClientError(rawValue: 407)
318 | static let requestTimeout = HTTP.Status.ClientError(rawValue: 408)
319 | static let conflict = HTTP.Status.ClientError(rawValue: 409)
| |- warning: static property 'conflict' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'conflict' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
320 | static let gone = HTTP.Status.ClientError(rawValue: 410)
321 | static let lengthRequried = HTTP.Status.ClientError(rawValue: 411)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:320:16: warning: static property 'gone' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
318 | static let requestTimeout = HTTP.Status.ClientError(rawValue: 408)
319 | static let conflict = HTTP.Status.ClientError(rawValue: 409)
320 | static let gone = HTTP.Status.ClientError(rawValue: 410)
| |- warning: static property 'gone' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gone' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
321 | static let lengthRequried = HTTP.Status.ClientError(rawValue: 411)
322 | static let preconditionFailed = HTTP.Status.ClientError(rawValue: 412)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:321:16: warning: static property 'lengthRequried' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
319 | static let conflict = HTTP.Status.ClientError(rawValue: 409)
320 | static let gone = HTTP.Status.ClientError(rawValue: 410)
321 | static let lengthRequried = HTTP.Status.ClientError(rawValue: 411)
| |- warning: static property 'lengthRequried' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'lengthRequried' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 | static let preconditionFailed = HTTP.Status.ClientError(rawValue: 412)
323 | static let payloadTooLarge = HTTP.Status.ClientError(rawValue: 413)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:322:16: warning: static property 'preconditionFailed' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
320 | static let gone = HTTP.Status.ClientError(rawValue: 410)
321 | static let lengthRequried = HTTP.Status.ClientError(rawValue: 411)
322 | static let preconditionFailed = HTTP.Status.ClientError(rawValue: 412)
| |- warning: static property 'preconditionFailed' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'preconditionFailed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
323 | static let payloadTooLarge = HTTP.Status.ClientError(rawValue: 413)
324 | static let uriTooLong = HTTP.Status.ClientError(rawValue: 414)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:323:16: warning: static property 'payloadTooLarge' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
321 | static let lengthRequried = HTTP.Status.ClientError(rawValue: 411)
322 | static let preconditionFailed = HTTP.Status.ClientError(rawValue: 412)
323 | static let payloadTooLarge = HTTP.Status.ClientError(rawValue: 413)
| |- warning: static property 'payloadTooLarge' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'payloadTooLarge' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
324 | static let uriTooLong = HTTP.Status.ClientError(rawValue: 414)
325 | static let unsupportedMediaType = HTTP.Status.ClientError(rawValue: 415)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:324:16: warning: static property 'uriTooLong' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
322 | static let preconditionFailed = HTTP.Status.ClientError(rawValue: 412)
323 | static let payloadTooLarge = HTTP.Status.ClientError(rawValue: 413)
324 | static let uriTooLong = HTTP.Status.ClientError(rawValue: 414)
| |- warning: static property 'uriTooLong' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'uriTooLong' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
325 | static let unsupportedMediaType = HTTP.Status.ClientError(rawValue: 415)
326 | static let rangeNotSatisfiable = HTTP.Status.ClientError(rawValue: 416)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:325:16: warning: static property 'unsupportedMediaType' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
323 | static let payloadTooLarge = HTTP.Status.ClientError(rawValue: 413)
324 | static let uriTooLong = HTTP.Status.ClientError(rawValue: 414)
325 | static let unsupportedMediaType = HTTP.Status.ClientError(rawValue: 415)
| |- warning: static property 'unsupportedMediaType' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unsupportedMediaType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
326 | static let rangeNotSatisfiable = HTTP.Status.ClientError(rawValue: 416)
327 | static let expectationFailed = HTTP.Status.ClientError(rawValue: 417)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:326:16: warning: static property 'rangeNotSatisfiable' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
324 | static let uriTooLong = HTTP.Status.ClientError(rawValue: 414)
325 | static let unsupportedMediaType = HTTP.Status.ClientError(rawValue: 415)
326 | static let rangeNotSatisfiable = HTTP.Status.ClientError(rawValue: 416)
| |- warning: static property 'rangeNotSatisfiable' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'rangeNotSatisfiable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
327 | static let expectationFailed = HTTP.Status.ClientError(rawValue: 417)
328 | static let imATeapot = HTTP.Status.ClientError(rawValue: 418)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:327:16: warning: static property 'expectationFailed' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
325 | static let unsupportedMediaType = HTTP.Status.ClientError(rawValue: 415)
326 | static let rangeNotSatisfiable = HTTP.Status.ClientError(rawValue: 416)
327 | static let expectationFailed = HTTP.Status.ClientError(rawValue: 417)
| |- warning: static property 'expectationFailed' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'expectationFailed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
328 | static let imATeapot = HTTP.Status.ClientError(rawValue: 418)
329 | static let misdirectedRequest = HTTP.Status.ClientError(rawValue: 421)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:328:16: warning: static property 'imATeapot' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
326 | static let rangeNotSatisfiable = HTTP.Status.ClientError(rawValue: 416)
327 | static let expectationFailed = HTTP.Status.ClientError(rawValue: 417)
328 | static let imATeapot = HTTP.Status.ClientError(rawValue: 418)
| |- warning: static property 'imATeapot' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'imATeapot' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 | static let misdirectedRequest = HTTP.Status.ClientError(rawValue: 421)
330 | static let unproccessableEntity = HTTP.Status.ClientError(rawValue: 422)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:329:16: warning: static property 'misdirectedRequest' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
327 | static let expectationFailed = HTTP.Status.ClientError(rawValue: 417)
328 | static let imATeapot = HTTP.Status.ClientError(rawValue: 418)
329 | static let misdirectedRequest = HTTP.Status.ClientError(rawValue: 421)
| |- warning: static property 'misdirectedRequest' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'misdirectedRequest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 | static let unproccessableEntity = HTTP.Status.ClientError(rawValue: 422)
331 | static let locked = HTTP.Status.ClientError(rawValue: 423)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:330:16: warning: static property 'unproccessableEntity' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
328 | static let imATeapot = HTTP.Status.ClientError(rawValue: 418)
329 | static let misdirectedRequest = HTTP.Status.ClientError(rawValue: 421)
330 | static let unproccessableEntity = HTTP.Status.ClientError(rawValue: 422)
| |- warning: static property 'unproccessableEntity' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unproccessableEntity' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
331 | static let locked = HTTP.Status.ClientError(rawValue: 423)
332 | static let failedDependency = HTTP.Status.ClientError(rawValue: 424)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:331:16: warning: static property 'locked' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
329 | static let misdirectedRequest = HTTP.Status.ClientError(rawValue: 421)
330 | static let unproccessableEntity = HTTP.Status.ClientError(rawValue: 422)
331 | static let locked = HTTP.Status.ClientError(rawValue: 423)
| |- warning: static property 'locked' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'locked' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
332 | static let failedDependency = HTTP.Status.ClientError(rawValue: 424)
333 | static let upgradeRequired = HTTP.Status.ClientError(rawValue: 426)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:332:16: warning: static property 'failedDependency' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
330 | static let unproccessableEntity = HTTP.Status.ClientError(rawValue: 422)
331 | static let locked = HTTP.Status.ClientError(rawValue: 423)
332 | static let failedDependency = HTTP.Status.ClientError(rawValue: 424)
| |- warning: static property 'failedDependency' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'failedDependency' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | static let upgradeRequired = HTTP.Status.ClientError(rawValue: 426)
334 | static let preconditionRequired = HTTP.Status.ClientError(rawValue: 428)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:333:16: warning: static property 'upgradeRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
331 | static let locked = HTTP.Status.ClientError(rawValue: 423)
332 | static let failedDependency = HTTP.Status.ClientError(rawValue: 424)
333 | static let upgradeRequired = HTTP.Status.ClientError(rawValue: 426)
| |- warning: static property 'upgradeRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'upgradeRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | static let preconditionRequired = HTTP.Status.ClientError(rawValue: 428)
335 | static let tooManyRequests = HTTP.Status.ClientError(rawValue: 429)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:334:16: warning: static property 'preconditionRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
332 | static let failedDependency = HTTP.Status.ClientError(rawValue: 424)
333 | static let upgradeRequired = HTTP.Status.ClientError(rawValue: 426)
334 | static let preconditionRequired = HTTP.Status.ClientError(rawValue: 428)
| |- warning: static property 'preconditionRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'preconditionRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
335 | static let tooManyRequests = HTTP.Status.ClientError(rawValue: 429)
336 | static let requestHeaderFieldsTooLarge = HTTP.Status.ClientError(rawValue: 431)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:335:16: warning: static property 'tooManyRequests' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
333 | static let upgradeRequired = HTTP.Status.ClientError(rawValue: 426)
334 | static let preconditionRequired = HTTP.Status.ClientError(rawValue: 428)
335 | static let tooManyRequests = HTTP.Status.ClientError(rawValue: 429)
| |- warning: static property 'tooManyRequests' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tooManyRequests' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
336 | static let requestHeaderFieldsTooLarge = HTTP.Status.ClientError(rawValue: 431)
337 | static let unavailableForLegalReasons = HTTP.Status.ClientError(rawValue: 451)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:336:16: warning: static property 'requestHeaderFieldsTooLarge' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
334 | static let preconditionRequired = HTTP.Status.ClientError(rawValue: 428)
335 | static let tooManyRequests = HTTP.Status.ClientError(rawValue: 429)
336 | static let requestHeaderFieldsTooLarge = HTTP.Status.ClientError(rawValue: 431)
| |- warning: static property 'requestHeaderFieldsTooLarge' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'requestHeaderFieldsTooLarge' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
337 | static let unavailableForLegalReasons = HTTP.Status.ClientError(rawValue: 451)
338 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:337:16: warning: static property 'unavailableForLegalReasons' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public struct ClientError: RawRepresentable, Equatable {
| `- note: consider making struct 'ClientError' conform to the 'Sendable' protocol
72 | public var rawValue: Int
73 |
:
335 | static let tooManyRequests = HTTP.Status.ClientError(rawValue: 429)
336 | static let requestHeaderFieldsTooLarge = HTTP.Status.ClientError(rawValue: 431)
337 | static let unavailableForLegalReasons = HTTP.Status.ClientError(rawValue: 451)
| |- warning: static property 'unavailableForLegalReasons' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ClientError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unavailableForLegalReasons' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
338 | }
339 |
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:341:16: warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
339 |
340 | public extension HTTP.Status.ServerError {
341 | static let internalServerError = HTTP.Status.ServerError(rawValue: 500)
| |- warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'internalServerError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
342 | static let notImplemented = HTTP.Status.ServerError(rawValue: 501)
343 | static let badGateway = HTTP.Status.ServerError(rawValue: 502)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:342:16: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
340 | public extension HTTP.Status.ServerError {
341 | static let internalServerError = HTTP.Status.ServerError(rawValue: 500)
342 | static let notImplemented = HTTP.Status.ServerError(rawValue: 501)
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notImplemented' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | static let badGateway = HTTP.Status.ServerError(rawValue: 502)
344 | static let serviceUnavailable = HTTP.Status.ServerError(rawValue: 503)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:343:16: warning: static property 'badGateway' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
341 | static let internalServerError = HTTP.Status.ServerError(rawValue: 500)
342 | static let notImplemented = HTTP.Status.ServerError(rawValue: 501)
343 | static let badGateway = HTTP.Status.ServerError(rawValue: 502)
| |- warning: static property 'badGateway' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'badGateway' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 | static let serviceUnavailable = HTTP.Status.ServerError(rawValue: 503)
345 | static let gatewayTimeout = HTTP.Status.ServerError(rawValue: 504)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:344:16: warning: static property 'serviceUnavailable' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
342 | static let notImplemented = HTTP.Status.ServerError(rawValue: 501)
343 | static let badGateway = HTTP.Status.ServerError(rawValue: 502)
344 | static let serviceUnavailable = HTTP.Status.ServerError(rawValue: 503)
| |- warning: static property 'serviceUnavailable' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'serviceUnavailable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
345 | static let gatewayTimeout = HTTP.Status.ServerError(rawValue: 504)
346 | static let httpVersionNotSupported = HTTP.Status.ServerError(rawValue: 505)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:345:16: warning: static property 'gatewayTimeout' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
343 | static let badGateway = HTTP.Status.ServerError(rawValue: 502)
344 | static let serviceUnavailable = HTTP.Status.ServerError(rawValue: 503)
345 | static let gatewayTimeout = HTTP.Status.ServerError(rawValue: 504)
| |- warning: static property 'gatewayTimeout' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gatewayTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
346 | static let httpVersionNotSupported = HTTP.Status.ServerError(rawValue: 505)
347 | static let variantAlsoNegotiates = HTTP.Status.ServerError(rawValue: 506)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:346:16: warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
344 | static let serviceUnavailable = HTTP.Status.ServerError(rawValue: 503)
345 | static let gatewayTimeout = HTTP.Status.ServerError(rawValue: 504)
346 | static let httpVersionNotSupported = HTTP.Status.ServerError(rawValue: 505)
| |- warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'httpVersionNotSupported' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
347 | static let variantAlsoNegotiates = HTTP.Status.ServerError(rawValue: 506)
348 | static let insufficientStorage = HTTP.Status.ServerError(rawValue: 507)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:347:16: warning: static property 'variantAlsoNegotiates' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
345 | static let gatewayTimeout = HTTP.Status.ServerError(rawValue: 504)
346 | static let httpVersionNotSupported = HTTP.Status.ServerError(rawValue: 505)
347 | static let variantAlsoNegotiates = HTTP.Status.ServerError(rawValue: 506)
| |- warning: static property 'variantAlsoNegotiates' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'variantAlsoNegotiates' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
348 | static let insufficientStorage = HTTP.Status.ServerError(rawValue: 507)
349 | static let loopDetected = HTTP.Status.ServerError(rawValue: 508)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:348:16: warning: static property 'insufficientStorage' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
346 | static let httpVersionNotSupported = HTTP.Status.ServerError(rawValue: 505)
347 | static let variantAlsoNegotiates = HTTP.Status.ServerError(rawValue: 506)
348 | static let insufficientStorage = HTTP.Status.ServerError(rawValue: 507)
| |- warning: static property 'insufficientStorage' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'insufficientStorage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
349 | static let loopDetected = HTTP.Status.ServerError(rawValue: 508)
350 | static let notExtended = HTTP.Status.ServerError(rawValue: 510)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:349:16: warning: static property 'loopDetected' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
347 | static let variantAlsoNegotiates = HTTP.Status.ServerError(rawValue: 506)
348 | static let insufficientStorage = HTTP.Status.ServerError(rawValue: 507)
349 | static let loopDetected = HTTP.Status.ServerError(rawValue: 508)
| |- warning: static property 'loopDetected' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'loopDetected' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
350 | static let notExtended = HTTP.Status.ServerError(rawValue: 510)
351 | static let networkAuthenticationRequired = HTTP.Status.ServerError(rawValue: 511)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:350:16: warning: static property 'notExtended' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
348 | static let insufficientStorage = HTTP.Status.ServerError(rawValue: 507)
349 | static let loopDetected = HTTP.Status.ServerError(rawValue: 508)
350 | static let notExtended = HTTP.Status.ServerError(rawValue: 510)
| |- warning: static property 'notExtended' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notExtended' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
351 | static let networkAuthenticationRequired = HTTP.Status.ServerError(rawValue: 511)
352 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:351:16: warning: static property 'networkAuthenticationRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public struct ServerError: RawRepresentable, Equatable {
| `- note: consider making struct 'ServerError' conform to the 'Sendable' protocol
82 | public var rawValue: Int
83 |
:
349 | static let loopDetected = HTTP.Status.ServerError(rawValue: 508)
350 | static let notExtended = HTTP.Status.ServerError(rawValue: 510)
351 | static let networkAuthenticationRequired = HTTP.Status.ServerError(rawValue: 511)
| |- warning: static property 'networkAuthenticationRequired' is not concurrency-safe because non-'Sendable' type 'HTTP.Status.ServerError' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'networkAuthenticationRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
352 | }
353 |
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:82: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:107: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:200:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:82: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:107: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:214:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
212 |
213 | public var statusMessage: String {
214 | return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
215 | }
216 |
[17/20] Compiling Hyperspace Request.URLRequestCreationStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
19 | func urlRequest(using request: Request) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | return creationBlock(request)
21 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: cannot find type 'URLRequest' in scope
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:52: error: @escaping attribute only applies to function types
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: @escaping attribute only applies to function types
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
| `- error: cannot find 'URLRequest' in scope
31 | urlRequest.httpMethod = request.method.rawValue
32 | urlRequest.httpBody = request.body?.data
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
27 |
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
| `- error: cannot find type 'URLRequest' in scope
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
31 | urlRequest.httpMethod = request.method.rawValue
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Request/Request.swift:166:23: warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| |- warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCachePolicy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCachePolicy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Request/Request.swift:167:23: warning: static property 'defaultDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
| |- warning: static property 'defaultDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
169 | public static var defaultTimeout: TimeInterval = 60
/host/spi-builder-workspace/Sources/Request/Request.swift:168:23: warning: static property 'defaultMaxRecoveryAttempts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
| |- warning: static property 'defaultMaxRecoveryAttempts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultMaxRecoveryAttempts' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultMaxRecoveryAttempts' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | public static var defaultTimeout: TimeInterval = 60
170 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:169:23: warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
169 | public static var defaultTimeout: TimeInterval = 60
| |- warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultTimeout' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 | }
171 |
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
[18/20] Compiling Hyperspace Request.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
19 | func urlRequest(using request: Request) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | return creationBlock(request)
21 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: cannot find type 'URLRequest' in scope
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:52: error: @escaping attribute only applies to function types
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: @escaping attribute only applies to function types
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
| `- error: cannot find 'URLRequest' in scope
31 | urlRequest.httpMethod = request.method.rawValue
32 | urlRequest.httpBody = request.body?.data
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
27 |
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
| `- error: cannot find type 'URLRequest' in scope
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
31 | urlRequest.httpMethod = request.method.rawValue
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Request/Request.swift:166:23: warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| |- warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCachePolicy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCachePolicy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Request/Request.swift:167:23: warning: static property 'defaultDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
| |- warning: static property 'defaultDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
169 | public static var defaultTimeout: TimeInterval = 60
/host/spi-builder-workspace/Sources/Request/Request.swift:168:23: warning: static property 'defaultMaxRecoveryAttempts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
| |- warning: static property 'defaultMaxRecoveryAttempts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultMaxRecoveryAttempts' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultMaxRecoveryAttempts' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | public static var defaultTimeout: TimeInterval = 60
170 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:169:23: warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
169 | public static var defaultTimeout: TimeInterval = 60
| |- warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultTimeout' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
170 | }
171 |
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
[19/20] Compiling Hyperspace RecoveryStrategy.swift
/host/spi-builder-workspace/Sources/Service/Transport/TransportResult.swift:37:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'TransportFailure.Kind'; this is an error in the Swift 6 language mode
27 |
28 | // MARK: - Kind Subtype
29 | public enum Kind: Equatable {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
30 | case redirection
31 | case clientError(HTTP.Status.ClientError)
:
35 |
36 | // MARK: - Properties
37 | public let kind: Kind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'TransportFailure.Kind'; this is an error in the Swift 6 language mode
38 | public let request: HTTP.Request
39 | public let response: HTTP.Response?
/host/spi-builder-workspace/Sources/Service/Transport/TransportResult.swift:38:16: warning: stored property 'request' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'HTTP.Request'; this is an error in the Swift 6 language mode
36 | // MARK: - Properties
37 | public let kind: Kind
38 | public let request: HTTP.Request
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'HTTP.Request'; this is an error in the Swift 6 language mode
39 | public let response: HTTP.Response?
40 |
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:124:19: note: consider making struct 'Request' conform to the 'Sendable' protocol
122 |
123 | /// Represents an HTTP request
124 | public struct Request: Equatable {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
125 |
126 | /// The `URL` to which the `Request` originated.
/host/spi-builder-workspace/Sources/Service/Transport/TransportResult.swift:39:16: warning: stored property 'response' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'HTTP.Response?'; this is an error in the Swift 6 language mode
37 | public let kind: Kind
38 | public let request: HTTP.Request
39 | public let response: HTTP.Response?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'HTTP.Response?'; this is an error in the Swift 6 language mode
40 |
41 | // MARK: - Initializers
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:162:19: note: consider making struct 'Response' conform to the 'Sendable' protocol
160 |
161 | /// Represents a HTTP response.
162 | public struct Response: Equatable {
| `- note: consider making struct 'Response' conform to the 'Sendable' protocol
163 |
164 | /// The `HTTP.Request` object used to receive this response
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
[20/20] Compiling Hyperspace TransportResult.swift
/host/spi-builder-workspace/Sources/Service/Transport/TransportResult.swift:37:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'TransportFailure.Kind'; this is an error in the Swift 6 language mode
27 |
28 | // MARK: - Kind Subtype
29 | public enum Kind: Equatable {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
30 | case redirection
31 | case clientError(HTTP.Status.ClientError)
:
35 |
36 | // MARK: - Properties
37 | public let kind: Kind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'TransportFailure.Kind'; this is an error in the Swift 6 language mode
38 | public let request: HTTP.Request
39 | public let response: HTTP.Response?
/host/spi-builder-workspace/Sources/Service/Transport/TransportResult.swift:38:16: warning: stored property 'request' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'HTTP.Request'; this is an error in the Swift 6 language mode
36 | // MARK: - Properties
37 | public let kind: Kind
38 | public let request: HTTP.Request
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'HTTP.Request'; this is an error in the Swift 6 language mode
39 | public let response: HTTP.Response?
40 |
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:124:19: note: consider making struct 'Request' conform to the 'Sendable' protocol
122 |
123 | /// Represents an HTTP request
124 | public struct Request: Equatable {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
125 |
126 | /// The `URL` to which the `Request` originated.
/host/spi-builder-workspace/Sources/Service/Transport/TransportResult.swift:39:16: warning: stored property 'response' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'HTTP.Response?'; this is an error in the Swift 6 language mode
37 | public let kind: Kind
38 | public let request: HTTP.Request
39 | public let response: HTTP.Response?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'TransportFailure' has non-sendable type 'HTTP.Response?'; this is an error in the Swift 6 language mode
40 |
41 | // MARK: - Initializers
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:162:19: note: consider making struct 'Response' conform to the 'Sendable' protocol
160 |
161 | /// Represents a HTTP response.
162 | public struct Response: Equatable {
| `- note: consider making struct 'Response' conform to the 'Sendable' protocol
163 |
164 | /// The `HTTP.Request` object used to receive this response
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
warning: 'spi-builder-workspace': found 7 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/Helper/JSON/MixedTypeObject.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyArray.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyObjectPlus.json
/host/spi-builder-workspace/Tests/Helper/JSON/Object.json
/host/spi-builder-workspace/Tests/Helper/JSON/DateObject.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyIncorrectType.json
/host/spi-builder-workspace/Tests/Helper/JSON/RootKeyObject.json
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/17] Emitting module Hyperspace
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | /// - httpURLResponse: The `HTTPURLResponse` returned by the backend.
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
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/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
15 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
16 | body: HTTP.Body? = nil,
17 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
18 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
19 | emptyDecodingStrategy: EmptyDecodingStrategy = .default) -> Request {
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
19 | func urlRequest(using request: Request) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | return creationBlock(request)
21 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: cannot find type 'URLRequest' in scope
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:52: error: @escaping attribute only applies to function types
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: @escaping attribute only applies to function types
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | import Foundation
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
12 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | // MARK: - URLSession Conformance to TransportSession
28 | extension URLSession: TransportSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
49 |
50 | // MARK: - TransportSessionConfiguration Convenience
51 | public extension TransportSessionConfiguration {
| `- error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
52 |
53 | func set(additionalHTTPHeaders: [HTTP.HeaderKey: HTTP.HeaderValue]?) {
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
58 | @available(macOS, deprecated: 12.0)
59 | @available(watchOS, deprecated: 8.0)
60 | public func execute(request: URLRequest) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
61 | startTransportTask()
62 | let (data, urlResponse) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
71 |
72 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
73 | public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
74 | startTransportTask()
75 | let (data, urlResponse) = try await session.data(for: request, delegate: delegate)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | public init(sessionConfiguration: TransportSessionConfiguration, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
49 | self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | }
51 | }
[3/19] Compiling Hyperspace NetworkActivityController.swift
[4/19] Compiling Hyperspace PreparationStrategy.swift
[5/19] Compiling Hyperspace HTTP.Body.swift
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | /// - httpURLResponse: The `HTTPURLResponse` returned by the backend.
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
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/HTTP/HTTP.swift:156:82: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:107: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:200:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:82: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:107: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:214:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
212 |
213 | public var statusMessage: String {
214 | return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
215 | }
216 |
[6/19] Compiling Hyperspace HTTP.swift
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | /// - httpURLResponse: The `HTTPURLResponse` returned by the backend.
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
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/HTTP/HTTP.swift:156:82: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:107: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:200:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:82: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:107: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:214:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
212 |
213 | public var statusMessage: String {
214 | return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
215 | }
216 |
[7/19] Compiling Hyperspace Request+Decodable.swift
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
15 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
16 | body: HTTP.Body? = nil,
17 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
18 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
19 | emptyDecodingStrategy: EmptyDecodingStrategy = .default) -> Request {
[8/19] Compiling Hyperspace Request+EmptyDecodingStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
15 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
16 | body: HTTP.Body? = nil,
17 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
18 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
19 | emptyDecodingStrategy: EmptyDecodingStrategy = .default) -> Request {
[9/19] Compiling Hyperspace BackendService.swift
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:75:113: error: extra argument 'delegate' in call
73 | } catch let transportFailure as TransportFailure {
74 | guard let quickRecovered = preparedRequest.recoveryTransformer(transportFailure) else {
75 | return try await attemptToRecover(from: transportFailure, executing: preparedRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
76 | }
77 |
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:80:98: error: extra argument 'delegate' in call
78 | return try await preparedRequest.transform(success: quickRecovered)
79 | } catch {
80 | return try await attemptToRecover(from: error, executing: preparedRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
81 | }
82 | }
/host/spi-builder-workspace/Sources/Service/Backend/BackendServicing.swift:91:110: error: extra argument 'delegate' in call
89 | case .notAttempted: continue
90 | case .failure(let error): throw error
91 | case .retry(let recoveredRequest): return try await execute(request: recoveredRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
92 | }
93 | }
[10/19] Compiling Hyperspace BackendServicing.swift
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:75:113: error: extra argument 'delegate' in call
73 | } catch let transportFailure as TransportFailure {
74 | guard let quickRecovered = preparedRequest.recoveryTransformer(transportFailure) else {
75 | return try await attemptToRecover(from: transportFailure, executing: preparedRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
76 | }
77 |
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:80:98: error: extra argument 'delegate' in call
78 | return try await preparedRequest.transform(success: quickRecovered)
79 | } catch {
80 | return try await attemptToRecover(from: error, executing: preparedRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
81 | }
82 | }
/host/spi-builder-workspace/Sources/Service/Backend/BackendServicing.swift:91:110: error: extra argument 'delegate' in call
89 | case .notAttempted: continue
90 | case .failure(let error): throw error
91 | case .retry(let recoveredRequest): return try await execute(request: recoveredRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
92 | }
93 | }
[11/19] Compiling Hyperspace Request.URLRequestCreationStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
19 | func urlRequest(using request: Request) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | return creationBlock(request)
21 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: cannot find type 'URLRequest' in scope
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:52: error: @escaping attribute only applies to function types
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: @escaping attribute only applies to function types
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
| `- error: cannot find 'URLRequest' in scope
31 | urlRequest.httpMethod = request.method.rawValue
32 | urlRequest.httpBody = request.body?.data
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
27 |
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
| `- error: cannot find type 'URLRequest' in scope
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
31 | urlRequest.httpMethod = request.method.rawValue
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
[12/19] Compiling Hyperspace Request.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
19 | func urlRequest(using request: Request) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | return creationBlock(request)
21 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: cannot find type 'URLRequest' in scope
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:52: error: @escaping attribute only applies to function types
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: @escaping attribute only applies to function types
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
| `- error: cannot find 'URLRequest' in scope
31 | urlRequest.httpMethod = request.method.rawValue
32 | urlRequest.httpBody = request.body?.data
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
27 |
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
| `- error: cannot find type 'URLRequest' in scope
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
31 | urlRequest.httpMethod = request.method.rawValue
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
[13/19] Compiling Hyperspace RecoveryStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
[14/19] Compiling Hyperspace TransportResult.swift
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
[15/19] Compiling Hyperspace JSONCoder+Container.swift
[16/19] Compiling Hyperspace URL+Additions.swift
[17/19] Compiling Hyperspace HTTP.Body+URLForm.swift
[18/19] Compiling Hyperspace TransportSession.swift
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | import Foundation
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
12 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | // MARK: - URLSession Conformance to TransportSession
28 | extension URLSession: TransportSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
49 |
50 | // MARK: - TransportSessionConfiguration Convenience
51 | public extension TransportSessionConfiguration {
| `- error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
52 |
53 | func set(additionalHTTPHeaders: [HTTP.HeaderKey: HTTP.HeaderValue]?) {
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
58 | @available(macOS, deprecated: 12.0)
59 | @available(watchOS, deprecated: 8.0)
60 | public func execute(request: URLRequest) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
61 | startTransportTask()
62 | let (data, urlResponse) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
71 |
72 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
73 | public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
74 | startTransportTask()
75 | let (data, urlResponse) = try await session.data(for: request, delegate: delegate)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | public init(sessionConfiguration: TransportSessionConfiguration, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
49 | self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | }
51 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:68:65: error: extra argument 'urlRequest' in call
66 |
67 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else { throw URLError(.badServerResponse) }
68 | let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
| `- error: extra argument 'urlRequest' in call
69 | return try response.transportResult.get()
70 | }
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:81:65: error: extra argument 'urlRequest' in call
79 |
80 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else { throw URLError(.badServerResponse) }
81 | let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
| `- error: extra argument 'urlRequest' in call
82 | return try response.transportResult.get()
83 | }
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:30:35: error: cannot find type 'URLRequest' in scope
28 | extension URLSession: TransportSession {
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
31 | if #available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *) {
32 | return try await data(for: request, delegate: nil)
[19/19] Compiling Hyperspace Transporting.swift
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | import Foundation
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
12 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | // MARK: - URLSession Conformance to TransportSession
28 | extension URLSession: TransportSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
49 |
50 | // MARK: - TransportSessionConfiguration Convenience
51 | public extension TransportSessionConfiguration {
| `- error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended
52 |
53 | func set(additionalHTTPHeaders: [HTTP.HeaderKey: HTTP.HeaderValue]?) {
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
58 | @available(macOS, deprecated: 12.0)
59 | @available(watchOS, deprecated: 8.0)
60 | public func execute(request: URLRequest) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
61 | startTransportTask()
62 | let (data, urlResponse) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
71 |
72 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
73 | public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
74 | startTransportTask()
75 | let (data, urlResponse) = try await session.data(for: request, delegate: delegate)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | public init(sessionConfiguration: TransportSessionConfiguration, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
49 | self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | }
51 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:68:65: error: extra argument 'urlRequest' in call
66 |
67 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else { throw URLError(.badServerResponse) }
68 | let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
| `- error: extra argument 'urlRequest' in call
69 | return try response.transportResult.get()
70 | }
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:81:65: error: extra argument 'urlRequest' in call
79 |
80 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else { throw URLError(.badServerResponse) }
81 | let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
| `- error: extra argument 'urlRequest' in call
82 | return try response.transportResult.get()
83 | }
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:30:35: error: cannot find type 'URLRequest' in scope
28 | extension URLSession: TransportSession {
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
31 | if #available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *) {
32 | return try await data(for: request, delegate: nil)
BUILD FAILURE 6.1 linux