The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RabbitMQHTTPAPIClient, reference main (28d084), with Swift 6.1 for Wasm on 11 Jul 2026 18:50:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/michaelklishin/rabbitmq-http-api-client-swift.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/michaelklishin/rabbitmq-http-api-client-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 28d0840 Merge pull request #2 from michaelklishin/dependabot/github_actions/actions/checkout-7
Cloned https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
Revision (git rev-parse @):
28d0840cf1db4653a7f2cc65cffa53584cc24c3f
SUCCESS checkout https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
https://github.com/michaelklishin/rabbitmq-http-api-client-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/michaelklishin/bunny-swift.git
[1/656] Fetching bunny-swift
Fetched https://github.com/michaelklishin/bunny-swift.git from cache (0.40s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/15589] Fetching swift-nio-ssl
[157/41574] Fetching swift-nio-ssl, swift-collections
[9876/126114] Fetching swift-nio-ssl, swift-collections, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.22s)
[66565/110525] Fetching swift-collections, swift-nio
Fetched https://github.com/apple/swift-collections.git from cache (2.98s)
Fetched https://github.com/apple/swift-nio.git from cache (3.01s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (3.35s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.1 (0.26s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.101.2 (0.44s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1868] Fetching swift-atomics
[1869/8028] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.60s)
Fetched https://github.com/apple/swift-system.git from cache (0.60s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.84s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.4 (0.27s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.7.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.101.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/michaelklishin/bunny-swift.git
Working copy of https://github.com/michaelklishin/bunny-swift.git resolved at main (2de8e9f)
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling RabbitMQHTTPAPIClient PathEncoding.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
[4/9] Compiling RabbitMQHTTPAPIClient Errors.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/9] Compiling RabbitMQHTTPAPIClient Commons.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/9] Emitting module RabbitMQHTTPAPIClient
<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/RabbitMQHTTPAPIClient/Client.swift:35:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  33 |   let username: String
  34 |   let password: String
  35 |   let session: URLSession
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  36 |   let retrySettings: RetrySettings
  37 |   let decoder: JSONDecoder
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/RabbitMQHTTPAPIClient/Client.swift:45:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  43 |     username: String = "guest",
  44 |     password: String = "guest",
  45 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  46 |     retrySettings: RetrySettings = RetrySettings()
  47 |   ) {
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/RabbitMQHTTPAPIClient/Client.swift:1179:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1177 |     _ urlPath: String, method: String,
1178 |     body: Data? = nil, extraHeaders: [String: String] = [:]
1179 |   ) async throws -> (Data, URLResponse) {
     |                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1180 |     let fullURL = "\(endpoint)/\(urlPath)"
1181 |     guard let url = URL(string: fullURL) else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:35:7: error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-sendable type 'URLSession' (aka 'AnyObject')
  33 |   let username: String
  34 |   let password: String
  35 |   let session: URLSession
     |       `- error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-sendable type 'URLSession' (aka 'AnyObject')
  36 |   let retrySettings: RetrySettings
  37 |   let decoder: JSONDecoder
[7/9] Compiling RabbitMQHTTPAPIClient Client.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/RabbitMQHTTPAPIClient/Client.swift:35:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  33 |   let username: String
  34 |   let password: String
  35 |   let session: URLSession
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  36 |   let retrySettings: RetrySettings
  37 |   let decoder: JSONDecoder
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/RabbitMQHTTPAPIClient/Client.swift:45:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  43 |     username: String = "guest",
  44 |     password: String = "guest",
  45 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  46 |     retrySettings: RetrySettings = RetrySettings()
  47 |   ) {
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/RabbitMQHTTPAPIClient/Client.swift:1179:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1177 |     _ urlPath: String, method: String,
1178 |     body: Data? = nil, extraHeaders: [String: String] = [:]
1179 |   ) async throws -> (Data, URLResponse) {
     |                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1180 |     let fullURL = "\(endpoint)/\(urlPath)"
1181 |     guard let url = URL(string: fullURL) else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:35:7: error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-sendable type 'URLSession' (aka 'AnyObject')
  33 |   let username: String
  34 |   let password: String
  35 |   let session: URLSession
     |       `- error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-sendable type 'URLSession' (aka 'AnyObject')
  36 |   let retrySettings: RetrySettings
  37 |   let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:51:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  49 |     self.username = username
  50 |     self.password = password
  51 |     self.session = session ?? .shared
     |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  52 |     self.retrySettings = retrySettings
  53 |     self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1144:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1142 |   func healthCheck(_ urlPath: String) async throws {
1143 |     let (data, response) = try await performRaw(urlPath, method: "GET")
1144 |     let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
     |                                `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1145 |     if (200..<300).contains(statusCode) { return }
1146 |     throw ClientError.healthCheckFailed(
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1144:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1142 |   func healthCheck(_ urlPath: String) async throws {
1143 |     let (data, response) = try await performRaw(urlPath, method: "GET")
1144 |     let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
     |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1145 |     if (200..<300).contains(statusCode) { return }
1146 |     throw ClientError.healthCheckFailed(
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1162:37: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1160 |         let (data, response) = try await performRaw(
1161 |           urlPath, method: method, body: body, extraHeaders: extraHeaders)
1162 |         let httpResponse = response as? HTTPURLResponse
     |                                     `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1163 |         let statusCode = httpResponse?.statusCode ?? 0
1164 |         try checkStatus(statusCode, data: data, url: httpResponse?.url)
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1162:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1160 |         let (data, response) = try await performRaw(
1161 |           urlPath, method: method, body: body, extraHeaders: extraHeaders)
1162 |         let httpResponse = response as? HTTPURLResponse
     |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1163 |         let statusCode = httpResponse?.statusCode ?? 0
1164 |         try checkStatus(statusCode, data: data, url: httpResponse?.url)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1163:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1161 |           urlPath, method: method, body: body, extraHeaders: extraHeaders)
1162 |         let httpResponse = response as? HTTPURLResponse
1163 |         let statusCode = httpResponse?.statusCode ?? 0
     |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1164 |         try checkStatus(statusCode, data: data, url: httpResponse?.url)
1165 |         return data
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1164:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1162 |         let httpResponse = response as? HTTPURLResponse
1163 |         let statusCode = httpResponse?.statusCode ?? 0
1164 |         try checkStatus(statusCode, data: data, url: httpResponse?.url)
     |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1165 |         return data
1166 |       } catch {
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1184:19: error: cannot find 'URLRequest' in scope
1182 |       throw ClientError.invalidEndpoint(fullURL)
1183 |     }
1184 |     var request = URLRequest(url: url, timeoutInterval: 60)
     |                   `- error: cannot find 'URLRequest' in scope
1185 |     request.httpMethod = method
1186 |     request.httpBody = body
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1195:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1193 |     }
1194 |     do {
1195 |       return try await session.data(for: request)
     |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1196 |     } catch {
1197 |       throw ClientError.requestFailed(underlying: error)
[8/9] Compiling RabbitMQHTTPAPIClient Responses.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
[9/9] Compiling RabbitMQHTTPAPIClient Requests.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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
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/8] Compiling RabbitMQHTTPAPIClient Commons.swift
[3/8] Emitting module RabbitMQHTTPAPIClient
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:35:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  33 |   let username: String
  34 |   let password: String
  35 |   let session: URLSession
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  36 |   let retrySettings: RetrySettings
  37 |   let decoder: JSONDecoder
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/RabbitMQHTTPAPIClient/Client.swift:45:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  43 |     username: String = "guest",
  44 |     password: String = "guest",
  45 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  46 |     retrySettings: RetrySettings = RetrySettings()
  47 |   ) {
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/RabbitMQHTTPAPIClient/Client.swift:1179:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1177 |     _ urlPath: String, method: String,
1178 |     body: Data? = nil, extraHeaders: [String: String] = [:]
1179 |   ) async throws -> (Data, URLResponse) {
     |                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1180 |     let fullURL = "\(endpoint)/\(urlPath)"
1181 |     guard let url = URL(string: fullURL) else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:35:7: error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-sendable type 'URLSession' (aka 'AnyObject')
  33 |   let username: String
  34 |   let password: String
  35 |   let session: URLSession
     |       `- error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-sendable type 'URLSession' (aka 'AnyObject')
  36 |   let retrySettings: RetrySettings
  37 |   let decoder: JSONDecoder
[4/8] Compiling RabbitMQHTTPAPIClient Client.swift
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:35:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  33 |   let username: String
  34 |   let password: String
  35 |   let session: URLSession
     |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  36 |   let retrySettings: RetrySettings
  37 |   let decoder: JSONDecoder
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/RabbitMQHTTPAPIClient/Client.swift:45:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  43 |     username: String = "guest",
  44 |     password: String = "guest",
  45 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  46 |     retrySettings: RetrySettings = RetrySettings()
  47 |   ) {
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/RabbitMQHTTPAPIClient/Client.swift:1179:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1177 |     _ urlPath: String, method: String,
1178 |     body: Data? = nil, extraHeaders: [String: String] = [:]
1179 |   ) async throws -> (Data, URLResponse) {
     |                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1180 |     let fullURL = "\(endpoint)/\(urlPath)"
1181 |     guard let url = URL(string: fullURL) else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:35:7: error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-sendable type 'URLSession' (aka 'AnyObject')
  33 |   let username: String
  34 |   let password: String
  35 |   let session: URLSession
     |       `- error: stored property 'session' of 'Sendable'-conforming struct 'Client' has non-sendable type 'URLSession' (aka 'AnyObject')
  36 |   let retrySettings: RetrySettings
  37 |   let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:51:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  49 |     self.username = username
  50 |     self.password = password
  51 |     self.session = session ?? .shared
     |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  52 |     self.retrySettings = retrySettings
  53 |     self.decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1144:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1142 |   func healthCheck(_ urlPath: String) async throws {
1143 |     let (data, response) = try await performRaw(urlPath, method: "GET")
1144 |     let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
     |                                `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1145 |     if (200..<300).contains(statusCode) { return }
1146 |     throw ClientError.healthCheckFailed(
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1144:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1142 |   func healthCheck(_ urlPath: String) async throws {
1143 |     let (data, response) = try await performRaw(urlPath, method: "GET")
1144 |     let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
     |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1145 |     if (200..<300).contains(statusCode) { return }
1146 |     throw ClientError.healthCheckFailed(
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1162:37: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1160 |         let (data, response) = try await performRaw(
1161 |           urlPath, method: method, body: body, extraHeaders: extraHeaders)
1162 |         let httpResponse = response as? HTTPURLResponse
     |                                     `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
1163 |         let statusCode = httpResponse?.statusCode ?? 0
1164 |         try checkStatus(statusCode, data: data, url: httpResponse?.url)
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1162:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1160 |         let (data, response) = try await performRaw(
1161 |           urlPath, method: method, body: body, extraHeaders: extraHeaders)
1162 |         let httpResponse = response as? HTTPURLResponse
     |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1163 |         let statusCode = httpResponse?.statusCode ?? 0
1164 |         try checkStatus(statusCode, data: data, url: httpResponse?.url)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1163:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1161 |           urlPath, method: method, body: body, extraHeaders: extraHeaders)
1162 |         let httpResponse = response as? HTTPURLResponse
1163 |         let statusCode = httpResponse?.statusCode ?? 0
     |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
1164 |         try checkStatus(statusCode, data: data, url: httpResponse?.url)
1165 |         return data
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1164:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1162 |         let httpResponse = response as? HTTPURLResponse
1163 |         let statusCode = httpResponse?.statusCode ?? 0
1164 |         try checkStatus(statusCode, data: data, url: httpResponse?.url)
     |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
1165 |         return data
1166 |       } catch {
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1184:19: error: cannot find 'URLRequest' in scope
1182 |       throw ClientError.invalidEndpoint(fullURL)
1183 |     }
1184 |     var request = URLRequest(url: url, timeoutInterval: 60)
     |                   `- error: cannot find 'URLRequest' in scope
1185 |     request.httpMethod = method
1186 |     request.httpBody = body
/host/spi-builder-workspace/Sources/RabbitMQHTTPAPIClient/Client.swift:1195:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1193 |     }
1194 |     do {
1195 |       return try await session.data(for: request)
     |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1196 |     } catch {
1197 |       throw ClientError.requestFailed(underlying: error)
[5/8] Compiling RabbitMQHTTPAPIClient Errors.swift
[6/8] Compiling RabbitMQHTTPAPIClient Responses.swift
[7/8] Compiling RabbitMQHTTPAPIClient Requests.swift
[8/8] Compiling RabbitMQHTTPAPIClient PathEncoding.swift
BUILD FAILURE 6.1 wasm