The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CopilotSDK, reference main (3c069b), with Swift 6.0 for Linux on 6 May 2026 20:53:18 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/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3c069b2 fix: add fake auth tokens globally + Rust/OCaml harness fixes
Updating files:  99% (3224/3254)
Updating files: 100% (3254/3254)
Updating files: 100% (3254/3254), done.
Cloned https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Revision (git rev-parse @):
3c069b24a7bfbe3d9e3530d68c158ae77f159dc0
SUCCESS checkout https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
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/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:6ccbc5e7995f6c524368c1828f9c677d1727c16390a603fc668217aec5f5123a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/14] Compiling CopilotSDK DefineTool.swift
[5/14] Compiling CopilotSDK CopilotSession.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:130:21: warning: mutation of captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode
128 |             let handler: SessionEventHandler = { event in
129 |                 if event.type == "assistant.message" {
130 |                     lastAssistantMessage = event
    |                     `- warning: mutation of captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode
131 |                 } else if event.type == "session.idle" {
132 |                     if !resumed {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:132:25: warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
130 |                     lastAssistantMessage = event
131 |                 } else if event.type == "session.idle" {
132 |                     if !resumed {
    |                         `- warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
133 |                         resumed = true
134 |                         timeoutTask.cancel()
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:133:25: warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
131 |                 } else if event.type == "session.idle" {
132 |                     if !resumed {
133 |                         resumed = true
    |                         `- warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
134 |                         timeoutTask.cancel()
135 |                         Task { await self.removeEventHandler(handlerId) }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:136:56: warning: reference to captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode
134 |                         timeoutTask.cancel()
135 |                         Task { await self.removeEventHandler(handlerId) }
136 |                         continuation.resume(returning: lastAssistantMessage)
    |                                                        `- warning: reference to captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode
137 |                     }
138 |                 } else if event.type == "session.error" {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:139:25: warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
137 |                     }
138 |                 } else if event.type == "session.error" {
139 |                     if !resumed {
    |                         `- warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
140 |                         resumed = true
141 |                         timeoutTask.cancel()
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:140:25: warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
138 |                 } else if event.type == "session.error" {
139 |                     if !resumed {
140 |                         resumed = true
    |                         `- warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
141 |                         timeoutTask.cancel()
142 |                         Task { await self.removeEventHandler(handlerId) }
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:120:28: warning: no 'async' operations occur within 'await' expression
118 |                     resumed = true
119 |                     // Remove the handler
120 |                     Task { await self.removeEventHandler(handlerId) }
    |                            `- warning: no 'async' operations occur within 'await' expression
121 |                     continuation.resume(
122 |                         throwing: CopilotError.timeout(
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:159:25: warning: no 'async' operations occur within 'await' expression
157 |                         resumed = true
158 |                         timeoutTask.cancel()
159 |                         await self.removeEventHandler(handlerId)
    |                         `- warning: no 'async' operations occur within 'await' expression
160 |                         continuation.resume(throwing: error)
161 |                     }
[6/14] Compiling CopilotSDK CopilotClient.swift
[7/14] Emitting module CopilotSDK
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:13:16: warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
 11 |     public let code: Int
 12 |     public let message: String
 13 |     public let data: [String: Any]?
    |                `- warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
 14 |
 15 |     public init(code: Int, message: String, data: [String: Any]? = nil) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
  89 |     public let toolCallId: String
  90 |     public let toolName: String
  91 |     public let arguments: Any? // The decoded JSON arguments
     |                `- warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
  92 |
  93 |     public init(sessionId: String, toolCallId: String, toolName: String, arguments: Any?) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:110:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
 108 |     public let name: String
 109 |     public let description: String?
 110 |     public let parameters: [String: Any]?
     |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
 111 |     public let handler: ToolHandler
 112 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 213 |     public let kind: String
 214 |     public let toolCallId: String?
 215 |     public let rawData: [String: Any]
     |                `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 216 |
 217 |     public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1106:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1104 |     public let ephemeral: Bool?
1105 |     public let type: String
1106 |     public let data: [String: Any]
     |                `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1107 |
1108 |     public init(
[8/14] Compiling CopilotSDK JsonRpcClient.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:13:16: warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
 11 |     public let code: Int
 12 |     public let message: String
 13 |     public let data: [String: Any]?
    |                `- warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
 14 |
 15 |     public init(code: Int, message: String, data: [String: Any]? = nil) {
[9/14] Compiling CopilotSDK SdkProtocolVersion.swift
[10/14] Compiling CopilotSDK Types.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
  89 |     public let toolCallId: String
  90 |     public let toolName: String
  91 |     public let arguments: Any? // The decoded JSON arguments
     |                `- warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
  92 |
  93 |     public init(sessionId: String, toolCallId: String, toolName: String, arguments: Any?) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:110:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
 108 |     public let name: String
 109 |     public let description: String?
 110 |     public let parameters: [String: Any]?
     |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
 111 |     public let handler: ToolHandler
 112 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 213 |     public let kind: String
 214 |     public let toolCallId: String?
 215 |     public let rawData: [String: Any]
     |                `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 216 |
 217 |     public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1106:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1104 |     public let ephemeral: Bool?
1105 |     public let type: String
1106 |     public let data: [String: Any]
     |                `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1107 |
1108 |     public init(
[11/15] Wrapping AST for CopilotSDK for debugging
[13/17] Emitting module BasicExample
[14/17] Compiling BasicExample main.swift
/host/spi-builder-workspace/swift/Examples/BasicExample/main.swift:53:35: error: expression is 'async' but is not marked with 'await'
51 |             SessionConfig(tools: [lookupFactTool])
52 |         )
53 |         print("Session created: \(session.sessionId)\n")
   |                                   |- error: expression is 'async' but is not marked with 'await'
   |                                   `- note: property access is 'async'
54 |
55 |         // Subscribe to all events
BUILD FAILURE 6.0 linux