Build Information
Failed to build SwiftDisc, reference main (10b4fe), with Swift 6.1 for Wasm on 11 Dec 2025 03:15:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:164:31: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
162 | let snapshots = await withTaskGroup(of: (String, TimeInterval?).self, returning: [(String, TimeInterval?)].self) { group in
163 | for h in shardHandles {
164 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
165 | let st = await h.status()
| `- note: closure captures 'h' which is accessible to 'self'-isolated code
166 | let l = await h.heartbeatLatency()
167 | return (st, l)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:337:41: warning: sending 'http' risks causing data races; this is an error in the Swift 6 language mode
335 | let http = HTTPClient(token: token, configuration: httpConfiguration)
336 | struct Info: Decodable { let url: String; let shards: Int; let session_start_limit: GatewayBotInfo.SessionStartLimit }
337 | let info: Info = try await http.get(path: "/gateway/bot")
| |- warning: sending 'http' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'http' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
338 | let converted = GatewayBotInfo(url: info.url, shards: info.shards, session_start_limit: .init(total: info.session_start_limit.total, remaining: info.session_start_limit.remaining, reset_after: info.session_start_limit.reset_after, max_concurrency: info.session_start_limit.max_concurrency))
339 | cachedGatewayBot = .init(info: converted, fetchedAt: Date())
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:353:41: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
351 | do {
352 | log(.info, "Shard \(shardId) connecting (attempt \(attempt))")
353 | try await handle.client.connect(intents: intents, shard: (shardId, totalShards)) { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and 'self'-isolated uses
354 | guard let self else { return }
355 | Task {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:353:41: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
351 | do {
352 | log(.info, "Shard \(shardId) connecting (attempt \(attempt))")
353 | try await handle.client.connect(intents: intents, shard: (shardId, totalShards)) { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between 'self'-isolated and actor-isolated uses
354 | guard let self else { return }
355 | Task {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:366:41: warning: sending 'presence.activities' risks causing data races; this is an error in the Swift 6 language mode
364 | // Apply per-shard presence if configured
365 | if let presence = await presenceForShard(shardId, total: totalShards) {
366 | await handle.client.setPresence(status: presence.status, activities: presence.activities, afk: presence.afk, since: presence.since)
| |- warning: sending 'presence.activities' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'presence.activities' to actor-isolated instance method 'setPresence(status:activities:afk:since:)' risks causing data races between actor-isolated and 'self'-isolated uses
367 | log(.debug, "Applied presence to shard \(shardId)")
368 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:206:26: warning: sending 'self.httpConfiguration' risks causing data races; this is an error in the Swift 6 language mode
204 | // Build shard clients
205 | shardHandles = (0..<totalShards).map { idx in
206 | let client = GatewayClient(token: token, configuration: httpConfiguration)
| |- warning: sending 'self.httpConfiguration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.httpConfiguration' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
207 | return ShardHandle(id: idx, client: client)
208 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:220:39: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
218 | try await withThrowingTaskGroup(of: Void.self) { group in
219 | for handle in batch {
220 | group.addTask { try await self.connectShardWithRetry(handle: handle, totalShards: totalShards) }
| | `- note: closure captures 'handle' which is accessible to 'self'-isolated code
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
221 | }
222 | try await group.waitForAll()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:259:61: warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
257 | Task {
258 | for await ev in self.events {
259 | if ev.shardId == shardId { continuation.yield(ev) }
| |- warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'ev' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
260 | }
261 | continuation.finish()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:275:64: warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
273 | Task {
274 | for await ev in self.events {
275 | if set.contains(ev.shardId) { continuation.yield(ev) }
| |- warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'ev' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
276 | }
277 | continuation.finish()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:292:31: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
290 | await withTaskGroup(of: Void.self) { group in
291 | for h in shardHandles {
292 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
293 | await h.client.setAllowReconnect(false)
| `- note: closure captures 'h' which is accessible to 'self'-isolated code
294 | await h.client.close()
295 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:355:26: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
353 | try await handle.client.connect(intents: intents, shard: (shardId, totalShards)) { [weak self] event in
354 | guard let self else { return }
355 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
356 | let latency = await handle.client.heartbeatLatency()
| `- note: closure captures 'handle' which is accessible to code in the current task
357 | if case let .guildCreate(guild) = event {
358 | await self.recordGuild(shardId: shardId, guildId: guild.id.rawValue)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:474:27: warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
472 |
473 | private func emitEvent(_ ev: ShardedEvent) async {
474 | eventContinuation.yield(ev)
| |- warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'ev' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
475 | }
476 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:360:36: warning: sending value of non-Sendable type 'ShardedEvent' risks causing data races; this is an error in the Swift 6 language mode
358 | await self.recordGuild(shardId: shardId, guildId: guild.id.rawValue)
359 | }
360 | await self.emitEvent(ShardedEvent(shardId: shardId, event: event, receivedAt: Date(), shardLatency: latency))
| |- warning: sending value of non-Sendable type 'ShardedEvent' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'ShardedEvent' to actor-isolated instance method 'emitEvent' risks causing races in between task-isolated and actor-isolated uses
361 | }
362 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:422:55: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
420 | while Date() < deadline {
421 | let statuses = await withTaskGroup(of: String.self, returning: [String].self) { group in
422 | for h in shardHandles { group.addTask { await h.status() } }
| | `- note: closure captures 'h' which is accessible to 'self'-isolated code
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
423 | var arr: [String] = []
424 | for await s in group { arr.append(s) }
[56/64] Compiling SwiftDisc SlashCommandRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardManager.swift:20:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
18 | try await withThrowingTaskGroup(of: Void.self) { group in
19 | for (idx, client) in clients.enumerated() {
20 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
21 | try await client.loginAndConnectSharded(index: idx, total: self.totalShards, intents: intents)
| `- note: closure captures 'intents' which is accessible to code in the current task
22 | for await _ in client.events { /* keep alive per shard */ }
23 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:145:35: warning: sending 'handle' risks causing data races; this is an error in the Swift 6 language mode
143 | public func shardHealth(id: Int) async -> ShardStatusSnapshot? {
144 | guard let handle = await shard(id: id) else { return nil }
145 | let status = await handle.status()
| |- warning: sending 'handle' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'handle' to nonisolated instance method 'status()' risks causing data races between nonisolated and 'self'-isolated uses
146 | let latency = await handle.heartbeatLatency()
147 | let ms = latency.map { Int($0 * 1000) }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:146:36: warning: sending 'handle' risks causing data races; this is an error in the Swift 6 language mode
144 | guard let handle = await shard(id: id) else { return nil }
145 | let status = await handle.status()
146 | let latency = await handle.heartbeatLatency()
| |- warning: sending 'handle' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'handle' to nonisolated instance method 'heartbeatLatency()' risks causing data races between nonisolated and 'self'-isolated uses
147 | let ms = latency.map { Int($0 * 1000) }
148 | let sess = await handle.client.currentSessionId()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:164:31: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
162 | let snapshots = await withTaskGroup(of: (String, TimeInterval?).self, returning: [(String, TimeInterval?)].self) { group in
163 | for h in shardHandles {
164 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
165 | let st = await h.status()
| `- note: closure captures 'h' which is accessible to 'self'-isolated code
166 | let l = await h.heartbeatLatency()
167 | return (st, l)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:337:41: warning: sending 'http' risks causing data races; this is an error in the Swift 6 language mode
335 | let http = HTTPClient(token: token, configuration: httpConfiguration)
336 | struct Info: Decodable { let url: String; let shards: Int; let session_start_limit: GatewayBotInfo.SessionStartLimit }
337 | let info: Info = try await http.get(path: "/gateway/bot")
| |- warning: sending 'http' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'http' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
338 | let converted = GatewayBotInfo(url: info.url, shards: info.shards, session_start_limit: .init(total: info.session_start_limit.total, remaining: info.session_start_limit.remaining, reset_after: info.session_start_limit.reset_after, max_concurrency: info.session_start_limit.max_concurrency))
339 | cachedGatewayBot = .init(info: converted, fetchedAt: Date())
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:353:41: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
351 | do {
352 | log(.info, "Shard \(shardId) connecting (attempt \(attempt))")
353 | try await handle.client.connect(intents: intents, shard: (shardId, totalShards)) { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and 'self'-isolated uses
354 | guard let self else { return }
355 | Task {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:353:41: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
351 | do {
352 | log(.info, "Shard \(shardId) connecting (attempt \(attempt))")
353 | try await handle.client.connect(intents: intents, shard: (shardId, totalShards)) { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between 'self'-isolated and actor-isolated uses
354 | guard let self else { return }
355 | Task {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:366:41: warning: sending 'presence.activities' risks causing data races; this is an error in the Swift 6 language mode
364 | // Apply per-shard presence if configured
365 | if let presence = await presenceForShard(shardId, total: totalShards) {
366 | await handle.client.setPresence(status: presence.status, activities: presence.activities, afk: presence.afk, since: presence.since)
| |- warning: sending 'presence.activities' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'presence.activities' to actor-isolated instance method 'setPresence(status:activities:afk:since:)' risks causing data races between actor-isolated and 'self'-isolated uses
367 | log(.debug, "Applied presence to shard \(shardId)")
368 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:206:26: warning: sending 'self.httpConfiguration' risks causing data races; this is an error in the Swift 6 language mode
204 | // Build shard clients
205 | shardHandles = (0..<totalShards).map { idx in
206 | let client = GatewayClient(token: token, configuration: httpConfiguration)
| |- warning: sending 'self.httpConfiguration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.httpConfiguration' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
207 | return ShardHandle(id: idx, client: client)
208 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:220:39: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
218 | try await withThrowingTaskGroup(of: Void.self) { group in
219 | for handle in batch {
220 | group.addTask { try await self.connectShardWithRetry(handle: handle, totalShards: totalShards) }
| | `- note: closure captures 'handle' which is accessible to 'self'-isolated code
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
221 | }
222 | try await group.waitForAll()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:259:61: warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
257 | Task {
258 | for await ev in self.events {
259 | if ev.shardId == shardId { continuation.yield(ev) }
| |- warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'ev' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
260 | }
261 | continuation.finish()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:275:64: warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
273 | Task {
274 | for await ev in self.events {
275 | if set.contains(ev.shardId) { continuation.yield(ev) }
| |- warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'ev' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
276 | }
277 | continuation.finish()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:292:31: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
290 | await withTaskGroup(of: Void.self) { group in
291 | for h in shardHandles {
292 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
293 | await h.client.setAllowReconnect(false)
| `- note: closure captures 'h' which is accessible to 'self'-isolated code
294 | await h.client.close()
295 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:355:26: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
353 | try await handle.client.connect(intents: intents, shard: (shardId, totalShards)) { [weak self] event in
354 | guard let self else { return }
355 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
356 | let latency = await handle.client.heartbeatLatency()
| `- note: closure captures 'handle' which is accessible to code in the current task
357 | if case let .guildCreate(guild) = event {
358 | await self.recordGuild(shardId: shardId, guildId: guild.id.rawValue)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:474:27: warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
472 |
473 | private func emitEvent(_ ev: ShardedEvent) async {
474 | eventContinuation.yield(ev)
| |- warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'ev' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
475 | }
476 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:360:36: warning: sending value of non-Sendable type 'ShardedEvent' risks causing data races; this is an error in the Swift 6 language mode
358 | await self.recordGuild(shardId: shardId, guildId: guild.id.rawValue)
359 | }
360 | await self.emitEvent(ShardedEvent(shardId: shardId, event: event, receivedAt: Date(), shardLatency: latency))
| |- warning: sending value of non-Sendable type 'ShardedEvent' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'ShardedEvent' to actor-isolated instance method 'emitEvent' risks causing races in between task-isolated and actor-isolated uses
361 | }
362 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:422:55: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
420 | while Date() < deadline {
421 | let statuses = await withTaskGroup(of: String.self, returning: [String].self) { group in
422 | for h in shardHandles { group.addTask { await h.status() } }
| | `- note: closure captures 'h' which is accessible to 'self'-isolated code
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
423 | var arr: [String] = []
424 | for await s in group { arr.append(s) }
[57/64] Compiling SwiftDisc Utilities.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardManager.swift:20:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
18 | try await withThrowingTaskGroup(of: Void.self) { group in
19 | for (idx, client) in clients.enumerated() {
20 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
21 | try await client.loginAndConnectSharded(index: idx, total: self.totalShards, intents: intents)
| `- note: closure captures 'intents' which is accessible to code in the current task
22 | for await _ in client.events { /* keep alive per shard */ }
23 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:145:35: warning: sending 'handle' risks causing data races; this is an error in the Swift 6 language mode
143 | public func shardHealth(id: Int) async -> ShardStatusSnapshot? {
144 | guard let handle = await shard(id: id) else { return nil }
145 | let status = await handle.status()
| |- warning: sending 'handle' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'handle' to nonisolated instance method 'status()' risks causing data races between nonisolated and 'self'-isolated uses
146 | let latency = await handle.heartbeatLatency()
147 | let ms = latency.map { Int($0 * 1000) }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:146:36: warning: sending 'handle' risks causing data races; this is an error in the Swift 6 language mode
144 | guard let handle = await shard(id: id) else { return nil }
145 | let status = await handle.status()
146 | let latency = await handle.heartbeatLatency()
| |- warning: sending 'handle' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'handle' to nonisolated instance method 'heartbeatLatency()' risks causing data races between nonisolated and 'self'-isolated uses
147 | let ms = latency.map { Int($0 * 1000) }
148 | let sess = await handle.client.currentSessionId()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:164:31: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
162 | let snapshots = await withTaskGroup(of: (String, TimeInterval?).self, returning: [(String, TimeInterval?)].self) { group in
163 | for h in shardHandles {
164 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
165 | let st = await h.status()
| `- note: closure captures 'h' which is accessible to 'self'-isolated code
166 | let l = await h.heartbeatLatency()
167 | return (st, l)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:337:41: warning: sending 'http' risks causing data races; this is an error in the Swift 6 language mode
335 | let http = HTTPClient(token: token, configuration: httpConfiguration)
336 | struct Info: Decodable { let url: String; let shards: Int; let session_start_limit: GatewayBotInfo.SessionStartLimit }
337 | let info: Info = try await http.get(path: "/gateway/bot")
| |- warning: sending 'http' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'http' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
338 | let converted = GatewayBotInfo(url: info.url, shards: info.shards, session_start_limit: .init(total: info.session_start_limit.total, remaining: info.session_start_limit.remaining, reset_after: info.session_start_limit.reset_after, max_concurrency: info.session_start_limit.max_concurrency))
339 | cachedGatewayBot = .init(info: converted, fetchedAt: Date())
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:353:41: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
351 | do {
352 | log(.info, "Shard \(shardId) connecting (attempt \(attempt))")
353 | try await handle.client.connect(intents: intents, shard: (shardId, totalShards)) { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and 'self'-isolated uses
354 | guard let self else { return }
355 | Task {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:353:41: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
351 | do {
352 | log(.info, "Shard \(shardId) connecting (attempt \(attempt))")
353 | try await handle.client.connect(intents: intents, shard: (shardId, totalShards)) { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between 'self'-isolated and actor-isolated uses
354 | guard let self else { return }
355 | Task {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:366:41: warning: sending 'presence.activities' risks causing data races; this is an error in the Swift 6 language mode
364 | // Apply per-shard presence if configured
365 | if let presence = await presenceForShard(shardId, total: totalShards) {
366 | await handle.client.setPresence(status: presence.status, activities: presence.activities, afk: presence.afk, since: presence.since)
| |- warning: sending 'presence.activities' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'presence.activities' to actor-isolated instance method 'setPresence(status:activities:afk:since:)' risks causing data races between actor-isolated and 'self'-isolated uses
367 | log(.debug, "Applied presence to shard \(shardId)")
368 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:206:26: warning: sending 'self.httpConfiguration' risks causing data races; this is an error in the Swift 6 language mode
204 | // Build shard clients
205 | shardHandles = (0..<totalShards).map { idx in
206 | let client = GatewayClient(token: token, configuration: httpConfiguration)
| |- warning: sending 'self.httpConfiguration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.httpConfiguration' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
207 | return ShardHandle(id: idx, client: client)
208 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:220:39: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
218 | try await withThrowingTaskGroup(of: Void.self) { group in
219 | for handle in batch {
220 | group.addTask { try await self.connectShardWithRetry(handle: handle, totalShards: totalShards) }
| | `- note: closure captures 'handle' which is accessible to 'self'-isolated code
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
221 | }
222 | try await group.waitForAll()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:259:61: warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
257 | Task {
258 | for await ev in self.events {
259 | if ev.shardId == shardId { continuation.yield(ev) }
| |- warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'ev' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
260 | }
261 | continuation.finish()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:275:64: warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
273 | Task {
274 | for await ev in self.events {
275 | if set.contains(ev.shardId) { continuation.yield(ev) }
| |- warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'ev' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
276 | }
277 | continuation.finish()
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:292:31: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
290 | await withTaskGroup(of: Void.self) { group in
291 | for h in shardHandles {
292 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
293 | await h.client.setAllowReconnect(false)
| `- note: closure captures 'h' which is accessible to 'self'-isolated code
294 | await h.client.close()
295 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:355:26: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
353 | try await handle.client.connect(intents: intents, shard: (shardId, totalShards)) { [weak self] event in
354 | guard let self else { return }
355 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
356 | let latency = await handle.client.heartbeatLatency()
| `- note: closure captures 'handle' which is accessible to code in the current task
357 | if case let .guildCreate(guild) = event {
358 | await self.recordGuild(shardId: shardId, guildId: guild.id.rawValue)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:474:27: warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
472 |
473 | private func emitEvent(_ ev: ShardedEvent) async {
474 | eventContinuation.yield(ev)
| |- warning: sending 'ev' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'ev' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
475 | }
476 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:360:36: warning: sending value of non-Sendable type 'ShardedEvent' risks causing data races; this is an error in the Swift 6 language mode
358 | await self.recordGuild(shardId: shardId, guildId: guild.id.rawValue)
359 | }
360 | await self.emitEvent(ShardedEvent(shardId: shardId, event: event, receivedAt: Date(), shardLatency: latency))
| |- warning: sending value of non-Sendable type 'ShardedEvent' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'ShardedEvent' to actor-isolated instance method 'emitEvent' risks causing races in between task-isolated and actor-isolated uses
361 | }
362 | }
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ShardingGatewayManager.swift:422:55: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
420 | while Date() < deadline {
421 | let statuses = await withTaskGroup(of: String.self, returning: [String].self) { group in
422 | for h in shardHandles { group.addTask { await h.status() } }
| | `- note: closure captures 'h' which is accessible to 'self'-isolated code
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
423 | var arr: [String] = []
424 | for await s in group { arr.append(s) }
[58/64] Compiling SwiftDisc PipeOpusSource.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/VoiceGateway.swift:74:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | private func startHeartbeat(intervalMs: Int) {
73 | hbTask?.cancel()
74 | hbTask = Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
76 | let intervalNs = UInt64(intervalMs) * 1_000_000
77 | while !Task.isCancelled {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[59/64] Compiling SwiftDisc Secretbox.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/VoiceGateway.swift:74:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | private func startHeartbeat(intervalMs: Int) {
73 | hbTask?.cancel()
74 | hbTask = Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
76 | let intervalNs = UInt64(intervalMs) * 1_000_000
77 | while !Task.isCancelled {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[60/64] Compiling SwiftDisc VoiceClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/VoiceGateway.swift:74:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | private func startHeartbeat(intervalMs: Int) {
73 | hbTask?.cancel()
74 | hbTask = Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
76 | let intervalNs = UInt64(intervalMs) * 1_000_000
77 | while !Task.isCancelled {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[61/64] Compiling SwiftDisc VoiceGateway.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/VoiceGateway.swift:74:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | private func startHeartbeat(intervalMs: Int) {
73 | hbTask?.cancel()
74 | hbTask = Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
76 | let intervalNs = UInt64(intervalMs) * 1_000_000
77 | while !Task.isCancelled {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[62/64] Compiling SwiftDisc VoiceModels.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/VoiceGateway.swift:74:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | private func startHeartbeat(intervalMs: Int) {
73 | hbTask?.cancel()
74 | hbTask = Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
76 | let intervalNs = UInt64(intervalMs) * 1_000_000
77 | while !Task.isCancelled {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[63/64] Compiling SwiftDisc VoiceReceiver.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/VoiceGateway.swift:74:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | private func startHeartbeat(intervalMs: Int) {
73 | hbTask?.cancel()
74 | hbTask = Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
76 | let intervalNs = UInt64(intervalMs) * 1_000_000
77 | while !Task.isCancelled {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[64/64] Compiling SwiftDisc VoiceSender.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/VoiceGateway.swift:74:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | private func startHeartbeat(intervalMs: Int) {
73 | hbTask?.cancel()
74 | hbTask = Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
75 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
76 | let intervalNs = UInt64(intervalMs) * 1_000_000
77 | while !Task.isCancelled {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/56] Emitting module SwiftDisc
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(url: URL) {
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
[3/63] Compiling SwiftDisc Cache.swift
[4/63] Compiling SwiftDisc DiscordConfiguration.swift
[5/63] Compiling SwiftDisc DiscordError.swift
[6/63] Compiling SwiftDisc DiscordUtils.swift
[7/63] Compiling SwiftDisc EventDispatcher.swift
[8/63] Compiling SwiftDisc JSONValue.swift
[9/63] Compiling SwiftDisc AdvancedMessagePayloads.swift
[10/63] Compiling SwiftDisc ApplicationRoleConnection.swift
[11/63] Compiling SwiftDisc PermissionBitset.swift
[12/63] Compiling SwiftDisc Role.swift
[13/63] Compiling SwiftDisc ScheduledEvent.swift
[14/63] Compiling SwiftDisc ScheduledEventUser.swift
[15/63] Compiling SwiftDisc Snowflake.swift
[16/63] Compiling SwiftDisc StageInstance.swift
[17/63] Compiling SwiftDisc Sticker.swift
[18/63] Compiling SwiftDisc Template.swift
/host/spi-builder-workspace/Sources/SwiftDisc/REST/RateLimiter.swift:26:109: warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
24 |
25 | // Per-route bucket control
26 | if let state = buckets[routeKey], let resetAt = state.resetAt, let remaining = state.remaining, let limit = state.limit {
| `- warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
27 | if remaining <= 0 {
28 | let now = Date()
[19/63] Compiling SwiftDisc Thread.swift
/host/spi-builder-workspace/Sources/SwiftDisc/REST/RateLimiter.swift:26:109: warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
24 |
25 | // Per-route bucket control
26 | if let state = buckets[routeKey], let resetAt = state.resetAt, let remaining = state.remaining, let limit = state.limit {
| `- warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
27 | if remaining <= 0 {
28 | let now = Date()
[20/63] Compiling SwiftDisc User.swift
/host/spi-builder-workspace/Sources/SwiftDisc/REST/RateLimiter.swift:26:109: warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
24 |
25 | // Per-route bucket control
26 | if let state = buckets[routeKey], let resetAt = state.resetAt, let remaining = state.remaining, let limit = state.limit {
| `- warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
27 | if remaining <= 0 {
28 | let now = Date()
[21/63] Compiling SwiftDisc Webhook.swift
/host/spi-builder-workspace/Sources/SwiftDisc/REST/RateLimiter.swift:26:109: warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
24 |
25 | // Per-route bucket control
26 | if let state = buckets[routeKey], let resetAt = state.resetAt, let remaining = state.remaining, let limit = state.limit {
| `- warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
27 | if remaining <= 0 {
28 | let now = Date()
[22/63] Compiling SwiftDisc HTTPClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/REST/RateLimiter.swift:26:109: warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
24 |
25 | // Per-route bucket control
26 | if let state = buckets[routeKey], let resetAt = state.resetAt, let remaining = state.remaining, let limit = state.limit {
| `- warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
27 | if remaining <= 0 {
28 | let now = Date()
[23/63] Compiling SwiftDisc RateLimiter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/REST/RateLimiter.swift:26:109: warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
24 |
25 | // Per-route bucket control
26 | if let state = buckets[routeKey], let resetAt = state.resetAt, let remaining = state.remaining, let limit = state.limit {
| `- warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
27 | if remaining <= 0 {
28 | let now = Date()
[24/63] Compiling SwiftDisc AudioSource.swift
/host/spi-builder-workspace/Sources/SwiftDisc/REST/RateLimiter.swift:26:109: warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
24 |
25 | // Per-route bucket control
26 | if let state = buckets[routeKey], let resetAt = state.resetAt, let remaining = state.remaining, let limit = state.limit {
| `- warning: immutable value 'limit' was never used; consider replacing with '_' or removing it
27 | if remaining <= 0 {
28 | let now = Date()
[25/63] Compiling SwiftDisc ComponentsBuilder.swift
[26/63] Compiling SwiftDisc Extensions.swift
[27/63] Compiling SwiftDisc Permissions.swift
[28/63] Compiling SwiftDisc ShardManager.swift
[29/63] Compiling SwiftDisc ShardingGatewayManager.swift
[30/63] Compiling SwiftDisc SlashCommandBuilder.swift
[31/63] Compiling SwiftDisc SlashCommandRouter.swift
[32/63] Compiling SwiftDisc Utilities.swift
[33/63] Compiling SwiftDisc DiscordClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(url: URL) {
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/SwiftDisc/Gateway/WebSocket.swift:22:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | init(url: URL) {
22 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | #if !os(Windows)
24 | config.waitsForConnectivity = true
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:26:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
24 | config.waitsForConnectivity = true
25 | #endif
26 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
27 | config.timeoutIntervalForRequest = 30
28 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForResource = 60
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.task = session.webSocketTask(with: url)
32 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:31:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
31 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
32 | self.task.resume()
33 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:38:34: error: cannot infer contextual base in reference to member 'string'
36 | switch message {
37 | case .string(let text):
38 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
39 | case .data(let data):
40 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:40:34: error: cannot infer contextual base in reference to member 'data'
38 | try await task.send(.string(text))
39 | case .data(let data):
40 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
41 | }
42 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:28: error: cannot infer contextual base in reference to member 'normalClosure'
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
58 | }
59 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:51: error: 'nil' requires a contextual type
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | }
[34/63] Compiling SwiftDisc GatewayClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(url: URL) {
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/SwiftDisc/Gateway/WebSocket.swift:22:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | init(url: URL) {
22 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | #if !os(Windows)
24 | config.waitsForConnectivity = true
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:26:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
24 | config.waitsForConnectivity = true
25 | #endif
26 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
27 | config.timeoutIntervalForRequest = 30
28 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForResource = 60
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.task = session.webSocketTask(with: url)
32 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:31:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
31 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
32 | self.task.resume()
33 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:38:34: error: cannot infer contextual base in reference to member 'string'
36 | switch message {
37 | case .string(let text):
38 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
39 | case .data(let data):
40 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:40:34: error: cannot infer contextual base in reference to member 'data'
38 | try await task.send(.string(text))
39 | case .data(let data):
40 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
41 | }
42 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:28: error: cannot infer contextual base in reference to member 'normalClosure'
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
58 | }
59 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:51: error: 'nil' requires a contextual type
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | }
[35/63] Compiling SwiftDisc GatewayModels.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(url: URL) {
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/SwiftDisc/Gateway/WebSocket.swift:22:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | init(url: URL) {
22 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | #if !os(Windows)
24 | config.waitsForConnectivity = true
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:26:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
24 | config.waitsForConnectivity = true
25 | #endif
26 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
27 | config.timeoutIntervalForRequest = 30
28 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForResource = 60
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.task = session.webSocketTask(with: url)
32 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:31:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
31 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
32 | self.task.resume()
33 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:38:34: error: cannot infer contextual base in reference to member 'string'
36 | switch message {
37 | case .string(let text):
38 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
39 | case .data(let data):
40 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:40:34: error: cannot infer contextual base in reference to member 'data'
38 | try await task.send(.string(text))
39 | case .data(let data):
40 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
41 | }
42 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:28: error: cannot infer contextual base in reference to member 'normalClosure'
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
58 | }
59 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:51: error: 'nil' requires a contextual type
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | }
[36/63] Compiling SwiftDisc Intents.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(url: URL) {
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/SwiftDisc/Gateway/WebSocket.swift:22:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | init(url: URL) {
22 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | #if !os(Windows)
24 | config.waitsForConnectivity = true
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:26:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
24 | config.waitsForConnectivity = true
25 | #endif
26 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
27 | config.timeoutIntervalForRequest = 30
28 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForResource = 60
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.task = session.webSocketTask(with: url)
32 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:31:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
31 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
32 | self.task.resume()
33 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:38:34: error: cannot infer contextual base in reference to member 'string'
36 | switch message {
37 | case .string(let text):
38 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
39 | case .data(let data):
40 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:40:34: error: cannot infer contextual base in reference to member 'data'
38 | try await task.send(.string(text))
39 | case .data(let data):
40 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
41 | }
42 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:28: error: cannot infer contextual base in reference to member 'normalClosure'
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
58 | }
59 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:51: error: 'nil' requires a contextual type
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | }
[37/63] Compiling SwiftDisc WebSocket.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(url: URL) {
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/SwiftDisc/Gateway/WebSocket.swift:22:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | init(url: URL) {
22 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | #if !os(Windows)
24 | config.waitsForConnectivity = true
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:26:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
24 | config.waitsForConnectivity = true
25 | #endif
26 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
27 | config.timeoutIntervalForRequest = 30
28 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForResource = 60
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.task = session.webSocketTask(with: url)
32 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:31:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
31 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
32 | self.task.resume()
33 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:38:34: error: cannot infer contextual base in reference to member 'string'
36 | switch message {
37 | case .string(let text):
38 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
39 | case .data(let data):
40 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:40:34: error: cannot infer contextual base in reference to member 'data'
38 | try await task.send(.string(text))
39 | case .data(let data):
40 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
41 | }
42 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:28: error: cannot infer contextual base in reference to member 'normalClosure'
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
58 | }
59 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:51: error: 'nil' requires a contextual type
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | }
[38/63] Compiling SwiftDisc ActivityBuilder.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(url: URL) {
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/SwiftDisc/Gateway/WebSocket.swift:22:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | init(url: URL) {
22 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | #if !os(Windows)
24 | config.waitsForConnectivity = true
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:26:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
24 | config.waitsForConnectivity = true
25 | #endif
26 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
27 | config.timeoutIntervalForRequest = 30
28 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForResource = 60
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.task = session.webSocketTask(with: url)
32 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:31:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
31 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
32 | self.task.resume()
33 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:38:34: error: cannot infer contextual base in reference to member 'string'
36 | switch message {
37 | case .string(let text):
38 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
39 | case .data(let data):
40 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:40:34: error: cannot infer contextual base in reference to member 'data'
38 | try await task.send(.string(text))
39 | case .data(let data):
40 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
41 | }
42 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:28: error: cannot infer contextual base in reference to member 'normalClosure'
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
58 | }
59 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:51: error: 'nil' requires a contextual type
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | }
[39/63] Compiling SwiftDisc AutocompleteRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(url: URL) {
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/SwiftDisc/Gateway/WebSocket.swift:22:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | init(url: URL) {
22 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | #if !os(Windows)
24 | config.waitsForConnectivity = true
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:26:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
24 | config.waitsForConnectivity = true
25 | #endif
26 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
27 | config.timeoutIntervalForRequest = 30
28 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForResource = 60
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.task = session.webSocketTask(with: url)
32 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:31:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
31 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
32 | self.task.resume()
33 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:38:34: error: cannot infer contextual base in reference to member 'string'
36 | switch message {
37 | case .string(let text):
38 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
39 | case .data(let data):
40 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:40:34: error: cannot infer contextual base in reference to member 'data'
38 | try await task.send(.string(text))
39 | case .data(let data):
40 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
41 | }
42 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:28: error: cannot infer contextual base in reference to member 'normalClosure'
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
58 | }
59 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:51: error: 'nil' requires a contextual type
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | }
[40/63] Compiling SwiftDisc CommandRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | init(url: URL) {
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/SwiftDisc/Gateway/WebSocket.swift:22:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |
21 | init(url: URL) {
22 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
23 | #if !os(Windows)
24 | config.waitsForConnectivity = true
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:26:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
24 | config.waitsForConnectivity = true
25 | #endif
26 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
27 | config.timeoutIntervalForRequest = 30
28 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | config.timeoutIntervalForResource = 60
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.task = session.webSocketTask(with: url)
32 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:31:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 | config.httpMaximumConnectionsPerHost = 8
30 | self.session = URLSession(configuration: config)
31 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
32 | self.task.resume()
33 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:38:34: error: cannot infer contextual base in reference to member 'string'
36 | switch message {
37 | case .string(let text):
38 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
39 | case .data(let data):
40 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:40:34: error: cannot infer contextual base in reference to member 'data'
38 | try await task.send(.string(text))
39 | case .data(let data):
40 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
41 | }
42 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:28: error: cannot infer contextual base in reference to member 'normalClosure'
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
58 | }
59 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:57:51: error: 'nil' requires a contextual type
55 |
56 | func close() async {
57 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
58 | }
59 | }
[41/63] Compiling SwiftDisc GuildBan.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:46:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
44 |
45 | public struct ActionRow: Codable, Hashable {
46 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
47 | public let components: [MessageComponent]
48 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:52:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
50 |
51 | public struct Button: Codable, Hashable {
52 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
53 | public let style: Int
54 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:75:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
73 | public let `default`: Bool?
74 | }
75 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
76 | public let custom_id: String
77 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:94:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
92 | public struct TextInput: Codable, Hashable {
93 | public enum Style: Int, Codable { case short = 1, paragraph = 2 }
94 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
95 | public let custom_id: String
96 | public let style: Style
[42/63] Compiling SwiftDisc GuildMember.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:46:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
44 |
45 | public struct ActionRow: Codable, Hashable {
46 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
47 | public let components: [MessageComponent]
48 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:52:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
50 |
51 | public struct Button: Codable, Hashable {
52 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
53 | public let style: Int
54 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:75:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
73 | public let `default`: Bool?
74 | }
75 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
76 | public let custom_id: String
77 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:94:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
92 | public struct TextInput: Codable, Hashable {
93 | public enum Style: Int, Codable { case short = 1, paragraph = 2 }
94 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
95 | public let custom_id: String
96 | public let style: Style
[43/63] Compiling SwiftDisc GuildWidgetSettings.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:46:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
44 |
45 | public struct ActionRow: Codable, Hashable {
46 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
47 | public let components: [MessageComponent]
48 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:52:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
50 |
51 | public struct Button: Codable, Hashable {
52 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
53 | public let style: Int
54 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:75:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
73 | public let `default`: Bool?
74 | }
75 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
76 | public let custom_id: String
77 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:94:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
92 | public struct TextInput: Codable, Hashable {
93 | public enum Style: Int, Codable { case short = 1, paragraph = 2 }
94 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
95 | public let custom_id: String
96 | public let style: Style
[44/63] Compiling SwiftDisc Interaction.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:46:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
44 |
45 | public struct ActionRow: Codable, Hashable {
46 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
47 | public let components: [MessageComponent]
48 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:52:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
50 |
51 | public struct Button: Codable, Hashable {
52 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
53 | public let style: Int
54 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:75:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
73 | public let `default`: Bool?
74 | }
75 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
76 | public let custom_id: String
77 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:94:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
92 | public struct TextInput: Codable, Hashable {
93 | public enum Style: Int, Codable { case short = 1, paragraph = 2 }
94 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
95 | public let custom_id: String
96 | public let style: Style
[45/63] Compiling SwiftDisc Invite.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:46:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
44 |
45 | public struct ActionRow: Codable, Hashable {
46 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
47 | public let components: [MessageComponent]
48 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:52:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
50 |
51 | public struct Button: Codable, Hashable {
52 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
53 | public let style: Int
54 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:75:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
73 | public let `default`: Bool?
74 | }
75 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
76 | public let custom_id: String
77 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:94:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
92 | public struct TextInput: Codable, Hashable {
93 | public enum Style: Int, Codable { case short = 1, paragraph = 2 }
94 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
95 | public let custom_id: String
96 | public let style: Style
[46/63] Compiling SwiftDisc Message.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:46:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
44 |
45 | public struct ActionRow: Codable, Hashable {
46 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
47 | public let components: [MessageComponent]
48 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:52:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
50 |
51 | public struct Button: Codable, Hashable {
52 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
53 | public let style: Int
54 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:75:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
73 | public let `default`: Bool?
74 | }
75 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
76 | public let custom_id: String
77 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:94:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
92 | public struct TextInput: Codable, Hashable {
93 | public enum Style: Int, Codable { case short = 1, paragraph = 2 }
94 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
95 | public let custom_id: String
96 | public let style: Style
[47/63] Compiling SwiftDisc MessageComponents.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:46:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
44 |
45 | public struct ActionRow: Codable, Hashable {
46 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
47 | public let components: [MessageComponent]
48 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:52:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
50 |
51 | public struct Button: Codable, Hashable {
52 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
53 | public let style: Int
54 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:75:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
73 | public let `default`: Bool?
74 | }
75 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
76 | public let custom_id: String
77 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:94:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
92 | public struct TextInput: Codable, Hashable {
93 | public enum Style: Int, Codable { case short = 1, paragraph = 2 }
94 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
95 | public let custom_id: String
96 | public let style: Style
[48/63] Compiling SwiftDisc PartialGuild.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:46:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
44 |
45 | public struct ActionRow: Codable, Hashable {
46 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
47 | public let components: [MessageComponent]
48 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:52:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
50 |
51 | public struct Button: Codable, Hashable {
52 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
53 | public let style: Int
54 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:75:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
73 | public let `default`: Bool?
74 | }
75 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
76 | public let custom_id: String
77 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:94:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
92 | public struct TextInput: Codable, Hashable {
93 | public enum Style: Int, Codable { case short = 1, paragraph = 2 }
94 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
95 | public let custom_id: String
96 | public let style: Style
[49/63] Compiling SwiftDisc Attachment.swift
[50/63] Compiling SwiftDisc AuditLog.swift
[51/63] Compiling SwiftDisc AutoModeration.swift
[52/63] Compiling SwiftDisc Channel.swift
[53/63] Compiling SwiftDisc Embed.swift
[54/63] Compiling SwiftDisc Emoji.swift
[55/63] Compiling SwiftDisc Files.swift
[56/63] Compiling SwiftDisc Guild.swift
[57/63] Compiling SwiftDisc PipeOpusSource.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[58/63] Compiling SwiftDisc Secretbox.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[59/63] Compiling SwiftDisc VoiceClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[60/63] Compiling SwiftDisc VoiceGateway.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[61/63] Compiling SwiftDisc VoiceModels.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[62/63] Compiling SwiftDisc VoiceReceiver.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
[63/63] Compiling SwiftDisc VoiceSender.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:18:23: error: cannot find type 'URLSessionWebSocketTask' in scope
16 |
17 | final class URLSessionWebSocketAdapter: WebSocketClient {
18 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
19 | private let session: URLSession
20 |
BUILD FAILURE 6.1 wasm