Build Information
Failed to build DecisionModels, reference main (355da4), with Swift 6.2 for Wasm on 28 Sep 2026 23:19:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vsekhar/DecisionModels.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/vsekhar/DecisionModels
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 355da43 Bump version to 0.3.0
Cloned https://github.com/vsekhar/DecisionModels.git
Revision (git rev-parse @):
355da4376c79d8c62f6a145e07da5e203e3a0d0d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vsekhar/DecisionModels.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/vsekhar/DecisionModels.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/swiftlang/swift-syntax.git
[1/80070] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.50s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (4.49s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.20s)
Building for debugging...
[0/17] Write sources
[13/17] Write swift-version-24593BA9C3E375BF.txt
[15/29] Compiling DecisionModelsMacros Diagnostics.swift
[16/29] Compiling DecisionModelsMacros EnumDiagnostics.swift
[17/30] Compiling DecisionModelsMacros Plugin.swift
[18/30] Compiling DecisionModelsMacros LevelsMacro.swift
[19/30] Compiling DecisionModelsMacros OptionsMacro.swift
[20/30] Compiling DecisionModelsMacros DecisionEnumMacro.swift
[21/30] Compiling DecisionModelsMacros DecisionMacro.swift
[22/30] Emitting module DecisionModelsMacros
[23/30] Compiling DecisionModelsMacros AnswerSpace.swift
[24/30] Compiling DecisionModelsMacros AskMacro.swift
[25/30] Compiling DecisionModelsMacros AskedProperty.swift
[26/30] Compiling DecisionModelsMacros CriterionMacro.swift
[27/30] Compiling DecisionModelsMacros Support.swift
[28/31] Wrapping AST for DecisionModelsMacros for debugging
[29/31] Write Objects.LinkFileList
[30/31] Linking DecisionModelsMacros-tool
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/109] Emitting module DecisionModels
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | public init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | public init(session: URLSession = .shared) {
[33/114] Compiling DecisionModels ProbabilityQuality.swift
[34/114] Compiling DecisionModels Question.swift
[35/114] Compiling DecisionModels QuestionSpec.swift
[36/114] Compiling DecisionModels Questionnaire.swift
[37/114] Compiling DecisionModels Rating.swift
[38/119] Compiling DecisionModels RetryPolicy.swift
[39/119] Compiling DecisionModels State.swift
[40/119] Compiling DecisionModels StateBuilder.swift
[41/119] Compiling DecisionModels Usage.swift
[42/119] Compiling DecisionModels Verdict.swift
[43/119] Compiling DecisionModels Choice.swift
[44/119] Compiling DecisionModels CompositeScore.swift
[45/119] Compiling DecisionModels CachedModel.swift
[46/119] Compiling DecisionModels CascadeModel.swift
[47/119] Compiling DecisionModels DecisionModel.swift
[48/119] Compiling DecisionModels DecisionModelAvailability.swift
[49/119] Compiling DecisionModels Distribution.swift
[50/119] Compiling DecisionModels Inquiry.swift
[51/119] Compiling DecisionModels Macros.swift
[52/119] Compiling DecisionModels ModelResponse.swift
[53/119] Compiling DecisionModels Options.swift
[54/119] Compiling DecisionModels Preflight.swift
[55/119] Compiling DecisionModels DecisionModelAvailability.swift
[56/119] Compiling DecisionModels DecisionOptions.swift
[57/119] Compiling DecisionModels DecisionRequest.swift
[58/119] Compiling DecisionModels DecisionResponse.swift
[59/119] Compiling DecisionModels DecisionSession.swift
[60/119] Emitting module DecisionModels
[61/119] Compiling DecisionModels Environment.swift
[62/119] Compiling DecisionModels FanOut.swift
[63/119] Compiling DecisionModels HTTPClient.swift
[64/119] Compiling DecisionModels HTTPTransport.swift
[65/119] Compiling DecisionModels Hierarchy.swift
[66/119] Compiling DecisionModels Answer.swift
[67/119] Compiling DecisionModels AnswerReader.swift
[68/119] Compiling DecisionModels AnswerRecord.swift
[69/119] Compiling DecisionModels Answers.swift
[70/119] Compiling DecisionModels Askable.swift
[71/119] Compiling DecisionModels Capabilities.swift
[72/119] Compiling DecisionModels ConfidenceMath.swift
[73/119] Compiling DecisionModels Criterion.swift
[74/119] Compiling DecisionModels Decision.swift
[75/119] Compiling DecisionModels DecisionError.swift
[76/119] Compiling DecisionModels DecisionModel.swift
[78/147] Emitting module DecisionModelsApple
[79/147] Compiling DecisionModelsApple SchemaBuilder.swift
[80/147] Compiling DecisionModelsApple ResponseMapping.swift
[81/147] Emitting module DecisionModelsTestSupport
[82/147] Compiling DecisionModelsTesting RecordingModel.swift
[83/147] Compiling DecisionModelsTesting ReplayModel.swift
[84/147] Compiling DecisionModelsTesting ScriptedModel.swift
[85/147] Emitting module DecisionModelsTypeSafe
[86/147] Emitting module DecisionModelsTesting
[87/147] Compiling DecisionModelsOpenRouter OpenRouterAlpha.swift
[88/147] Compiling DecisionModelsTestSupport FakeClock.swift
[89/147] Compiling DecisionModelsTestSupport ScriptedTransport.swift
[91/148] Compiling DecisionModelsTypeSafe Jev.swift
[92/148] Compiling DecisionModelsTesting Calibration.swift
[93/148] Compiling DecisionModelsTesting DecisionRecord.swift
[94/148] Compiling DecisionModelsTesting Evaluation.swift
[95/149] Compiling DecisionModelsApple ErrorMapping.swift
[96/149] Compiling DecisionModelsApple PromptBuilder.swift
[97/149] Compiling DecisionModelsApple GuidedGenerationModel.swift
[98/149] Compiling DecisionModelsApple Compatibility.swift
[101/150] Compiling DecisionModelsTypeSafe JevError.swift
[102/150] Compiling DecisionModelsTypeSafe JevMapping.swift
[103/150] Compiling DecisionModelsTypeSafe JevWire.swift
[115/151] Emitting module DecisionModelsOpenRouter
[116/151] Compiling DecisionModelsOpenRouter OpenRouterError.swift
[117/151] Compiling DecisionModelsOpenRouter OpenRouterMapping.swift
[118/151] Compiling DecisionModelsOpenRouter OpenRouterWire.swift
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | public init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | public init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | public init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | public init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:56:20: error: cannot find type 'URLRequest' in scope
54 | /// travels as `CancellationError`.
55 | package func send(
56 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:58:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | _ request: URLRequest,
57 | timeout: Duration? = nil
58 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | let deadline = timeout.map { now() + $0 }
60 | var retries = 0
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/DecisionModels/HTTPClient.swift:138:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | /// A date, a negative count, or anything else that is not a number
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
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/DecisionModels/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:139:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | /// reads as no header.
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
141 | seconds.isFinite, seconds >= 0
/host/spi-builder-workspace/Sources/DecisionModels/HTTPClient.swift:140:67: error: cannot infer contextual base in reference to member 'whitespaces'
138 | package static func retryAfter(_ response: HTTPURLResponse) -> Duration? {
139 | guard let header = response.value(forHTTPHeaderField: "Retry-After") else { return nil }
140 | guard let seconds = Double(header.trimmingCharacters(in: .whitespaces)),
| `- error: cannot infer contextual base in reference to member 'whitespaces'
141 | seconds.isFinite, seconds >= 0
142 | else { return nil }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:13:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol HTTPTransport: Sendable {
12 | /// Sends the request and gives back the body with the HTTP reply.
13 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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/DecisionModels/HTTPTransport.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | public init(session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | self.session = session
22 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: value of type '_' expected to be instance of class or class-constrained type
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:20:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | private let session: URLSession
19 |
20 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | self.session = session
22 | }
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:33: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:24:68: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await session.data(for: request)
26 | guard let http = response as? HTTPURLResponse else {
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/DecisionModels/HTTPTransport.swift:18:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
16 | /// The transport a provider uses against the live service.
17 | public struct URLSessionTransport: HTTPTransport {
18 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
19 |
20 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/DecisionModels/HTTPTransport.swift:25:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 |
24 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
25 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
26 | guard let http = response as? HTTPURLResponse else {
27 | throw DecisionError.malformedResponse("The reply is not an HTTP response.")
BUILD FAILURE 6.2 wasm