Build Information
Failed to build async-http-client, reference main (014cac
), with Swift 6.1 for Wasm on 30 May 2025 00:15:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftuiux/async-http-client.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/swiftuiux/async-http-client
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 014cac2 Update LICENSE
Cloned https://github.com/swiftuiux/async-http-client.git
Revision (git rev-parse @):
014cac2c84b1c4a0e73f08d1dc469a2300beaeb1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftuiux/async-http-client.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/swiftuiux/async-http-client.git
https://github.com/swiftuiux/async-http-client.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "retry-policy-service",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftuiux/retry-policy-service.git"
}
],
"manifest_display_name" : "async-http-client",
"name" : "async-http-client",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "tvos",
"version" : "15.0"
}
],
"products" : [
{
"name" : "async-http-client",
"targets" : [
"async-http-client"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "async_http_clientTests",
"module_type" : "SwiftTarget",
"name" : "async-http-clientTests",
"path" : "Tests/async-http-clientTests",
"sources" : [
"async_http_clientTests.swift",
"helper/UrlHelper.swift"
],
"target_dependencies" : [
"async-http-client"
],
"type" : "test"
},
{
"c99name" : "async_http_client",
"module_type" : "SwiftTarget",
"name" : "async-http-client",
"path" : "Sources/async-http-client",
"product_dependencies" : [
"retry-policy-service"
],
"product_memberships" : [
"async-http-client"
],
"sources" : [
"protocol/IConfiguration.swift",
"protocol/IProxy.swift",
"protocol/IResponse.swift",
"protocol/code/IReader.swift",
"protocol/code/IWriter.swift",
"protocol/validate/IValidate.swift",
"proxy/helper/RequestHelper.swift",
"proxy/helper/SendHelper.swift",
"proxy/helper/UrlHelper.swift",
"proxy/http/Configuration.swift",
"proxy/http/Direct.swift",
"proxy/http/Http.swift",
"proxy/http/Proxy+.swift",
"proxy/http/Proxy.swift",
"proxy/http/Response.swift",
"proxy/http/enum/HttpMethod.swift",
"proxy/http/error/Errors.swift",
"proxy/http/protocol/ITaskDelegate.swift",
"reader/JsonReader.swift",
"validate/Validate.swift",
"validate/type/Status.swift",
"writer/JsonWriter.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/swiftuiux/retry-policy-service.git
[1/101] Fetching retry-policy-service
Fetched https://github.com/swiftuiux/retry-policy-service.git from cache (0.31s)
Computing version for https://github.com/swiftuiux/retry-policy-service.git
Computed https://github.com/swiftuiux/retry-policy-service.git at 1.0.1 (1.03s)
Creating working copy for https://github.com/swiftuiux/retry-policy-service.git
Working copy of https://github.com/swiftuiux/retry-policy-service.git resolved at 1.0.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Compiling retry_policy_service Strategy.swift
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:19:23: error: cannot find type 'DispatchTimeInterval' in scope
17 | case constant(
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
21 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:20:22: error: cannot find type 'DispatchTimeInterval' in scope
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
21 | )
22 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:27:23: error: cannot find type 'DispatchTimeInterval' in scope
25 | retry: UInt = 3,
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
29 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:28:22: error: cannot find type 'DispatchTimeInterval' in scope
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
29 | )
30 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:40:23: error: cannot find type 'DispatchTimeInterval' in scope
38 |
39 | /// Duration between retries
40 | var duration: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
41 | switch self {
42 | case .constant(_, let duration, _): return duration
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:48:22: error: cannot find type 'DispatchTimeInterval' in scope
46 |
47 | /// Max time before stop iterating
48 | var timeout: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
49 | switch self {
50 | case .constant(_, _, let timeout): return timeout
[5/7] Compiling retry_policy_service RetryService.swift
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:27:23: error: cannot find type 'DispatchTimeInterval' in scope
25 | retry: UInt = 3,
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
29 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:28:22: error: cannot find type 'DispatchTimeInterval' in scope
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
29 | )
30 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/RetryService.swift:42:30: error: cannot find type 'DispatchTime' in scope
40 |
41 | /// A time after which stop producing sequence
42 | public let deadline: DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
43 |
44 | /// - Parameter service: Retry service ``RetryService``
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:19:23: error: cannot find type 'DispatchTimeInterval' in scope
17 | case constant(
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
21 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:20:22: error: cannot find type 'DispatchTimeInterval' in scope
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
21 | )
22 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:48:22: error: cannot find type 'DispatchTimeInterval' in scope
46 |
47 | /// Max time before stop iterating
48 | var timeout: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
49 | switch self {
50 | case .constant(_, _, let timeout): return timeout
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/RetryService.swift:56:28: error: '_' can only appear in a pattern or on the left side of an assignment
54 |
55 | switch strategy {
56 | case .constant(_, let duration, _):
| `- error: '_' can only appear in a pattern or on the left side of an assignment
57 | if let value = duration.toDouble() {
58 | let delay = value * 1e+9
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/RetryService.swift:73:32: error: reference to member 'now' cannot be resolved without a contextual type
71 | /// Validate current iteration
72 | var isValid: Bool {
73 | guard deadline >= .now() else { return false }
| `- error: reference to member 'now' cannot be resolved without a contextual type
74 | let max = strategy.maximumRetries
75 | guard max > retries && max != 0 else { return false }
[6/7] Emitting module retry_policy_service
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:27:23: error: cannot find type 'DispatchTimeInterval' in scope
25 | retry: UInt = 3,
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
29 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:28:22: error: cannot find type 'DispatchTimeInterval' in scope
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
29 | )
30 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/RetryService.swift:42:30: error: cannot find type 'DispatchTime' in scope
40 |
41 | /// A time after which stop producing sequence
42 | public let deadline: DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
43 |
44 | /// - Parameter service: Retry service ``RetryService``
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:19:23: error: cannot find type 'DispatchTimeInterval' in scope
17 | case constant(
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
21 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:20:22: error: cannot find type 'DispatchTimeInterval' in scope
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
21 | )
22 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:40:23: error: cannot find type 'DispatchTimeInterval' in scope
38 |
39 | /// Duration between retries
40 | var duration: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
41 | switch self {
42 | case .constant(_, let duration, _): return duration
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:48:22: error: cannot find type 'DispatchTimeInterval' in scope
46 |
47 | /// Max time before stop iterating
48 | var timeout: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
49 | switch self {
50 | case .constant(_, _, let timeout): return timeout
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:13:11: error: cannot find type 'DispatchTimeInterval' in scope
11 |
12 | // DispatchTimeInterval Extension for toDouble method
13 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
14 |
15 | /// Convert to Double
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:35:11: error: cannot find type 'DispatchTimeInterval' in scope
33 | }
34 |
35 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
36 | func toDispatchTimeInterval() -> DispatchTimeInterval {
37 | switch self {
[7/7] Compiling retry_policy_service DispatchTimeInterval.swift
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:13:11: error: cannot find type 'DispatchTimeInterval' in scope
11 |
12 | // DispatchTimeInterval Extension for toDouble method
13 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
14 |
15 | /// Convert to Double
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:35:11: error: cannot find type 'DispatchTimeInterval' in scope
33 | }
34 |
35 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
36 | func toDispatchTimeInterval() -> DispatchTimeInterval {
37 | switch self {
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:36:38: error: cannot find type 'DispatchTimeInterval' in scope
34 |
35 | extension DispatchTimeInterval {
36 | func toDispatchTimeInterval() -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
37 | switch self {
38 | case .seconds(let value):
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling retry_policy_service DispatchTimeInterval.swift
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:13:11: error: cannot find type 'DispatchTimeInterval' in scope
11 |
12 | // DispatchTimeInterval Extension for toDouble method
13 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
14 |
15 | /// Convert to Double
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:35:11: error: cannot find type 'DispatchTimeInterval' in scope
33 | }
34 |
35 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
36 | func toDispatchTimeInterval() -> DispatchTimeInterval {
37 | switch self {
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:36:38: error: cannot find type 'DispatchTimeInterval' in scope
34 |
35 | extension DispatchTimeInterval {
36 | func toDispatchTimeInterval() -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
37 | switch self {
38 | case .seconds(let value):
[3/5] Compiling retry_policy_service Strategy.swift
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:19:23: error: cannot find type 'DispatchTimeInterval' in scope
17 | case constant(
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
21 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:20:22: error: cannot find type 'DispatchTimeInterval' in scope
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
21 | )
22 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:27:23: error: cannot find type 'DispatchTimeInterval' in scope
25 | retry: UInt = 3,
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
29 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:28:22: error: cannot find type 'DispatchTimeInterval' in scope
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
29 | )
30 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:40:23: error: cannot find type 'DispatchTimeInterval' in scope
38 |
39 | /// Duration between retries
40 | var duration: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
41 | switch self {
42 | case .constant(_, let duration, _): return duration
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:48:22: error: cannot find type 'DispatchTimeInterval' in scope
46 |
47 | /// Max time before stop iterating
48 | var timeout: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
49 | switch self {
50 | case .constant(_, _, let timeout): return timeout
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module retry_policy_service
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:27:23: error: cannot find type 'DispatchTimeInterval' in scope
25 | retry: UInt = 3,
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
29 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:28:22: error: cannot find type 'DispatchTimeInterval' in scope
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
29 | )
30 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/RetryService.swift:42:30: error: cannot find type 'DispatchTime' in scope
40 |
41 | /// A time after which stop producing sequence
42 | public let deadline: DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
43 |
44 | /// - Parameter service: Retry service ``RetryService``
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:19:23: error: cannot find type 'DispatchTimeInterval' in scope
17 | case constant(
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
21 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:20:22: error: cannot find type 'DispatchTimeInterval' in scope
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
21 | )
22 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:40:23: error: cannot find type 'DispatchTimeInterval' in scope
38 |
39 | /// Duration between retries
40 | var duration: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
41 | switch self {
42 | case .constant(_, let duration, _): return duration
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:48:22: error: cannot find type 'DispatchTimeInterval' in scope
46 |
47 | /// Max time before stop iterating
48 | var timeout: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
49 | switch self {
50 | case .constant(_, _, let timeout): return timeout
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:13:11: error: cannot find type 'DispatchTimeInterval' in scope
11 |
12 | // DispatchTimeInterval Extension for toDouble method
13 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
14 |
15 | /// Convert to Double
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/ext/DispatchTimeInterval.swift:35:11: error: cannot find type 'DispatchTimeInterval' in scope
33 | }
34 |
35 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
36 | func toDispatchTimeInterval() -> DispatchTimeInterval {
37 | switch self {
[5/5] Compiling retry_policy_service RetryService.swift
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:27:23: error: cannot find type 'DispatchTimeInterval' in scope
25 | retry: UInt = 3,
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
29 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:28:22: error: cannot find type 'DispatchTimeInterval' in scope
26 | multiplier: Double = 2.0,
27 | duration: DispatchTimeInterval = .seconds(2),
28 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
29 | )
30 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/RetryService.swift:42:30: error: cannot find type 'DispatchTime' in scope
40 |
41 | /// A time after which stop producing sequence
42 | public let deadline: DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
43 |
44 | /// - Parameter service: Retry service ``RetryService``
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:19:23: error: cannot find type 'DispatchTimeInterval' in scope
17 | case constant(
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
| `- error: cannot find type 'DispatchTimeInterval' in scope
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
21 | )
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:20:22: error: cannot find type 'DispatchTimeInterval' in scope
18 | retry: UInt = 5,
19 | duration: DispatchTimeInterval = .seconds(2),
20 | timeout: DispatchTimeInterval = .seconds(Int.max)
| `- error: cannot find type 'DispatchTimeInterval' in scope
21 | )
22 |
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/Strategy.swift:48:22: error: cannot find type 'DispatchTimeInterval' in scope
46 |
47 | /// Max time before stop iterating
48 | var timeout: DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
49 | switch self {
50 | case .constant(_, _, let timeout): return timeout
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/RetryService.swift:56:28: error: '_' can only appear in a pattern or on the left side of an assignment
54 |
55 | switch strategy {
56 | case .constant(_, let duration, _):
| `- error: '_' can only appear in a pattern or on the left side of an assignment
57 | if let value = duration.toDouble() {
58 | let delay = value * 1e+9
/host/spi-builder-workspace/.build/checkouts/retry-policy-service/Sources/retry-policy-service/RetryService.swift:73:32: error: reference to member 'now' cannot be resolved without a contextual type
71 | /// Validate current iteration
72 | var isValid: Bool {
73 | guard deadline >= .now() else { return false }
| `- error: reference to member 'now' cannot be resolved without a contextual type
74 | let max = strategy.maximumRetries
75 | guard max > retries && max != 0 else { return false }
BUILD FAILURE 6.1 wasm