The Swift Package Index logo.Swift Package Index

Build Information

Failed to build flare-client-swift, reference 1.0.0 (06b7e2), with Swift 6.1 for Wasm on 8 Sep 2026 18:07:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/spatie/flare-client-swift.git
Reference: 1.0.0
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/spatie/flare-client-swift
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 06b7e20 Prepare the 1.0.0 release
Cloned https://github.com/spatie/flare-client-swift.git
Revision (git rev-parse @):
06b7e20c420f39084a1ba251b458f7ba52d69f97
SUCCESS checkout https://github.com/spatie/flare-client-swift.git at 1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/spatie/flare-client-swift.git
https://github.com/spatie/flare-client-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/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.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 saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/microsoft/plcrashreporter.git
[1/17012] Fetching plcrashreporter
Fetched https://github.com/microsoft/plcrashreporter.git from cache (1.33s)
Computing version for https://github.com/microsoft/plcrashreporter.git
Computed https://github.com/microsoft/plcrashreporter.git at 1.12.2 (2.27s)
Creating working copy for https://github.com/microsoft/plcrashreporter.git
Working copy of https://github.com/microsoft/plcrashreporter.git resolved at 1.12.2
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/14] Compiling Flare FlareGrouping.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[5/14] Compiling Flare FlarePayload.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/15] Compiling Flare FlareConfiguration.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/15] Compiling Flare FlareDiagnostics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/15] Emitting module Flare
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 |
12 | protocol HTTPTransport: Sendable {
13 |     func send(_ request: URLRequest) async throws -> HTTPResult
   |                          `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | struct URLSessionTransport: HTTPTransport {
17 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     init(timeout: TimeInterval) {
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/Flare/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     func send(_ request: URLRequest) async throws -> HTTPResult {
   |                          `- error: cannot find type 'URLRequest' in scope
30 |         let (_, response) = try await session.data(for: request)
31 |         guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
15 |
16 | struct URLSessionTransport: HTTPTransport {
17 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
18 |
19 |     init(timeout: TimeInterval) {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:39:49: error: cannot find type 'URLSessionTaskDelegate' in scope
37 | }
38 |
39 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionTaskDelegate' in scope
40 |     // A redirect must not forward the project key to another endpoint.
41 |     func urlSession(
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:45:29: error: cannot find type 'URLRequest' in scope
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
   |                             `- error: cannot find type 'URLRequest' in scope
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
47 |     ) {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:46:49: error: cannot find type 'URLRequest' in scope
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
   |                                                 `- error: cannot find type 'URLRequest' in scope
47 |     ) {
48 |         completionHandler(nil)
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:42:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |     // A redirect must not forward the project key to another endpoint.
41 |     func urlSession(
42 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/Flare/HTTPTransport.swift:43:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     func urlSession(
42 |         _ session: URLSession,
43 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:44:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |         _ session: URLSession,
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
   |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         newRequest request: URLRequest,
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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
[9/15] Compiling Flare HTTPTransport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 |
12 | protocol HTTPTransport: Sendable {
13 |     func send(_ request: URLRequest) async throws -> HTTPResult
   |                          `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | struct URLSessionTransport: HTTPTransport {
17 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     init(timeout: TimeInterval) {
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/Flare/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     func send(_ request: URLRequest) async throws -> HTTPResult {
   |                          `- error: cannot find type 'URLRequest' in scope
30 |         let (_, response) = try await session.data(for: request)
31 |         guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
15 |
16 | struct URLSessionTransport: HTTPTransport {
17 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
18 |
19 |     init(timeout: TimeInterval) {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:39:49: error: cannot find type 'URLSessionTaskDelegate' in scope
37 | }
38 |
39 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionTaskDelegate' in scope
40 |     // A redirect must not forward the project key to another endpoint.
41 |     func urlSession(
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:45:29: error: cannot find type 'URLRequest' in scope
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
   |                             `- error: cannot find type 'URLRequest' in scope
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
47 |     ) {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:46:49: error: cannot find type 'URLRequest' in scope
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
   |                                                 `- error: cannot find type 'URLRequest' in scope
47 |     ) {
48 |         completionHandler(nil)
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:42:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |     // A redirect must not forward the project key to another endpoint.
41 |     func urlSession(
42 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/Flare/HTTPTransport.swift:43:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     func urlSession(
42 |         _ session: URLSession,
43 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:44:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |         _ session: URLSession,
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
   |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         newRequest request: URLRequest,
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/Flare/HTTPTransport.swift:20:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
18 |
19 |     init(timeout: TimeInterval) {
20 |         let configuration = URLSessionConfiguration.ephemeral
   |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
21 |         configuration.httpShouldSetCookies = false
22 |         configuration.urlCache = nil
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:26:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |         configuration.timeoutIntervalForRequest = validTimeout
25 |         configuration.timeoutIntervalForResource = validTimeout
26 |         session = URLSession(configuration: configuration, delegate: RedirectDelegate(), delegateQueue: nil)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
27 |     }
28 |
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:26:105: error: 'nil' requires a contextual type
24 |         configuration.timeoutIntervalForRequest = validTimeout
25 |         configuration.timeoutIntervalForResource = validTimeout
26 |         session = URLSession(configuration: configuration, delegate: RedirectDelegate(), delegateQueue: nil)
   |                                                                                                         `- error: 'nil' requires a contextual type
27 |     }
28 |
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:30:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
28 |
29 |     func send(_ request: URLRequest) async throws -> HTTPResult {
30 |         let (_, response) = try await session.data(for: request)
   |                                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
31 |         guard let response = response as? HTTPURLResponse else {
32 |             throw FlareClientError.invalidResponse
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:48:27: error: 'nil' requires a contextual type
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
47 |     ) {
48 |         completionHandler(nil)
   |                           `- error: 'nil' requires a contextual type
49 |     }
50 | }
[10/15] Compiling Flare FlareValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/15] Compiling Flare FlareStackFrame.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/15] Compiling Flare FlareSendResult.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/15] Compiling Flare FlareReport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/15] Compiling Flare FlareClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 |
12 | protocol HTTPTransport: Sendable {
13 |     func send(_ request: URLRequest) async throws -> HTTPResult
   |                          `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Flare/FlareClient.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |
 53 |         let payload = try FlarePayload(report: filtered)
 54 |         var request = URLRequest(url: URL(string: "https://ingress.flareapp.io/v1/errors")!)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.timeoutInterval = configuration.timeout
[15/15] Compiling Flare FlareClientError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 |
12 | protocol HTTPTransport: Sendable {
13 |     func send(_ request: URLRequest) async throws -> HTTPResult
   |                          `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Flare/FlareClient.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |
 53 |         let payload = try FlarePayload(report: filtered)
 54 |         var request = URLRequest(url: URL(string: "https://ingress.flareapp.io/v1/errors")!)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.timeoutInterval = configuration.timeout
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[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/12] Emitting module Flare
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 |
12 | protocol HTTPTransport: Sendable {
13 |     func send(_ request: URLRequest) async throws -> HTTPResult
   |                          `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | struct URLSessionTransport: HTTPTransport {
17 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     init(timeout: TimeInterval) {
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/Flare/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     func send(_ request: URLRequest) async throws -> HTTPResult {
   |                          `- error: cannot find type 'URLRequest' in scope
30 |         let (_, response) = try await session.data(for: request)
31 |         guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
15 |
16 | struct URLSessionTransport: HTTPTransport {
17 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
18 |
19 |     init(timeout: TimeInterval) {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:39:49: error: cannot find type 'URLSessionTaskDelegate' in scope
37 | }
38 |
39 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionTaskDelegate' in scope
40 |     // A redirect must not forward the project key to another endpoint.
41 |     func urlSession(
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:45:29: error: cannot find type 'URLRequest' in scope
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
   |                             `- error: cannot find type 'URLRequest' in scope
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
47 |     ) {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:46:49: error: cannot find type 'URLRequest' in scope
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
   |                                                 `- error: cannot find type 'URLRequest' in scope
47 |     ) {
48 |         completionHandler(nil)
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:42:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |     // A redirect must not forward the project key to another endpoint.
41 |     func urlSession(
42 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/Flare/HTTPTransport.swift:43:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     func urlSession(
42 |         _ session: URLSession,
43 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:44:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |         _ session: URLSession,
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
   |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         newRequest request: URLRequest,
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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
[3/13] Compiling Flare FlareStackFrame.swift
[4/13] Compiling Flare FlareSendResult.swift
[5/13] Compiling Flare FlareValue.swift
[6/13] Compiling Flare HTTPTransport.swift
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 |
12 | protocol HTTPTransport: Sendable {
13 |     func send(_ request: URLRequest) async throws -> HTTPResult
   |                          `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | struct URLSessionTransport: HTTPTransport {
17 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     init(timeout: TimeInterval) {
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/Flare/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     func send(_ request: URLRequest) async throws -> HTTPResult {
   |                          `- error: cannot find type 'URLRequest' in scope
30 |         let (_, response) = try await session.data(for: request)
31 |         guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
15 |
16 | struct URLSessionTransport: HTTPTransport {
17 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTransport' has non-sendable type 'URLSession' (aka 'AnyObject')
18 |
19 |     init(timeout: TimeInterval) {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:39:49: error: cannot find type 'URLSessionTaskDelegate' in scope
37 | }
38 |
39 | private final class RedirectDelegate: NSObject, URLSessionTaskDelegate {
   |                                                 `- error: cannot find type 'URLSessionTaskDelegate' in scope
40 |     // A redirect must not forward the project key to another endpoint.
41 |     func urlSession(
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:45:29: error: cannot find type 'URLRequest' in scope
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
   |                             `- error: cannot find type 'URLRequest' in scope
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
47 |     ) {
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:46:49: error: cannot find type 'URLRequest' in scope
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
   |                                                 `- error: cannot find type 'URLRequest' in scope
47 |     ) {
48 |         completionHandler(nil)
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:42:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |     // A redirect must not forward the project key to another endpoint.
41 |     func urlSession(
42 |         _ session: URLSession,
   |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/Flare/HTTPTransport.swift:43:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     func urlSession(
42 |         _ session: URLSession,
43 |         task: URLSessionTask,
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
45 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:44:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |         _ session: URLSession,
43 |         task: URLSessionTask,
44 |         willPerformHTTPRedirection response: HTTPURLResponse,
   |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         newRequest request: URLRequest,
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/Flare/HTTPTransport.swift:20:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
18 |
19 |     init(timeout: TimeInterval) {
20 |         let configuration = URLSessionConfiguration.ephemeral
   |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
21 |         configuration.httpShouldSetCookies = false
22 |         configuration.urlCache = nil
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:26:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |         configuration.timeoutIntervalForRequest = validTimeout
25 |         configuration.timeoutIntervalForResource = validTimeout
26 |         session = URLSession(configuration: configuration, delegate: RedirectDelegate(), delegateQueue: nil)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
27 |     }
28 |
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:26:105: error: 'nil' requires a contextual type
24 |         configuration.timeoutIntervalForRequest = validTimeout
25 |         configuration.timeoutIntervalForResource = validTimeout
26 |         session = URLSession(configuration: configuration, delegate: RedirectDelegate(), delegateQueue: nil)
   |                                                                                                         `- error: 'nil' requires a contextual type
27 |     }
28 |
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:30:47: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
28 |
29 |     func send(_ request: URLRequest) async throws -> HTTPResult {
30 |         let (_, response) = try await session.data(for: request)
   |                                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
31 |         guard let response = response as? HTTPURLResponse else {
32 |             throw FlareClientError.invalidResponse
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:48:27: error: 'nil' requires a contextual type
46 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
47 |     ) {
48 |         completionHandler(nil)
   |                           `- error: 'nil' requires a contextual type
49 |     }
50 | }
[7/13] Compiling Flare FlareGrouping.swift
[8/13] Compiling Flare FlarePayload.swift
[9/13] Compiling Flare FlareReport.swift
[10/13] Compiling Flare FlareConfiguration.swift
[11/13] Compiling Flare FlareDiagnostics.swift
[12/13] Compiling Flare FlareClient.swift
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 |
12 | protocol HTTPTransport: Sendable {
13 |     func send(_ request: URLRequest) async throws -> HTTPResult
   |                          `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Flare/FlareClient.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |
 53 |         let payload = try FlarePayload(report: filtered)
 54 |         var request = URLRequest(url: URL(string: "https://ingress.flareapp.io/v1/errors")!)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.timeoutInterval = configuration.timeout
[13/13] Compiling Flare FlareClientError.swift
/host/spi-builder-workspace/Sources/Flare/HTTPTransport.swift:13:26: error: cannot find type 'URLRequest' in scope
11 |
12 | protocol HTTPTransport: Sendable {
13 |     func send(_ request: URLRequest) async throws -> HTTPResult
   |                          `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Flare/FlareClient.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |
 53 |         let payload = try FlarePayload(report: filtered)
 54 |         var request = URLRequest(url: URL(string: "https://ingress.flareapp.io/v1/errors")!)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.timeoutInterval = configuration.timeout
BUILD FAILURE 6.1 wasm