Build Information
Failed to build ACP, reference v0.1.16 (f38606), with Swift 6.2 for Linux on 3 Mar 2026 07:28:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aptove/swift-sdk.git
Reference: v0.1.16
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/aptove/swift-sdk
* tag v0.1.16 -> FETCH_HEAD
HEAD is now at f38606f fix: fail pending requests on transport close, call close() on POSIX 57
Cloned https://github.com/aptove/swift-sdk.git
Revision (git rev-parse @):
f38606f7bb43a12122b8338b2bb694084ededf94
SUCCESS checkout https://github.com/aptove/swift-sdk.git at v0.1.16
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/aptove/swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:257b0ae9749b4eea8553a58f7bf60a672611c061e9b845ccfee371e7c1138ce8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-collections.git
[1/20327] Fetching swift-collections
[1628/26417] Fetching swift-collections, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.71s)
[11587/20327] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.47s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (2.07s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.45s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/EchoAgent/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/SimpleClient/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/InteractiveClient/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/SimpleAgentApp/README.md
Building for debugging...
[0/40] Write sources
[16/40] Write swift-version-24593BA9C3E375BF.txt
[18/61] Emitting module InternalCollectionsUtilities
[19/63] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[20/63] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[21/63] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[22/63] Compiling InternalCollectionsUtilities Integer rank.swift
[23/63] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[24/63] Compiling InternalCollectionsUtilities UInt+reversed.swift
[25/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[26/63] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[27/63] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[28/63] Compiling InternalCollectionsUtilities Debugging.swift
[29/63] Compiling InternalCollectionsUtilities Descriptions.swift
[30/63] Compiling InternalCollectionsUtilities _SortedCollection.swift
[31/63] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[32/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[33/63] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[34/63] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[35/63] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[36/64] Wrapping AST for InternalCollectionsUtilities for debugging
[38/338] Compiling _RopeModule BigString+Chunk+Append and Insert.swift
[39/338] Compiling _RopeModule BigString+Chunk+Breaks.swift
[40/338] Compiling _RopeModule BigString+Debugging.swift
[41/338] Compiling _RopeModule BigString+Index.swift
[42/340] Compiling HeapModule _HeapNode.swift
[43/340] Compiling HeapModule Heap.swift
[44/340] Compiling Logging MetadataProvider.swift
[45/340] Compiling _RopeModule BigString+Ingester.swift
[46/340] Compiling _RopeModule BigString+Invariants.swift
[47/340] Compiling _RopeModule BigString+Iterators.swift
[48/340] Compiling _RopeModule BigString+Metrics.swift
[49/340] Emitting module HeapModule
[50/340] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[51/340] Compiling HeapModule Heap+Descriptions.swift
[52/340] Compiling HeapModule Heap+Invariants.swift
[53/340] Compiling _RopeModule BigString+ExpressibleByStringLiteral.swift
[54/340] Compiling _RopeModule BigString+Hashing.swift
[55/340] Compiling _RopeModule BigString+LosslessStringConvertible.swift
[56/340] Compiling _RopeModule BigString+RangeReplaceableCollection.swift
[57/340] Compiling _RopeModule BigString+Sequence.swift
[58/340] Compiling _RopeModule BigString+TextOutputStream.swift
[59/340] Compiling _RopeModule BigString+Append.swift
[60/340] Compiling HeapModule Heap+UnsafeHandle.swift
[61/348] Wrapping AST for HeapModule for debugging
[63/348] Compiling _RopeModule Rope+ForEachWhile.swift
[64/348] Compiling _RopeModule Rope+Insert.swift
[65/348] Compiling HashTreeCollections TreeSet+Sequence.swift
[66/348] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[67/348] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[68/348] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[69/348] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[70/348] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[71/348] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[72/348] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[73/358] Compiling DequeModule _DequeSlot.swift
[74/358] Compiling DequeModule _UnsafeWrappedBuffer.swift
[75/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[76/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[77/358] Compiling _RopeModule BigSubstring+UTF8View.swift
[78/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[79/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[80/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[81/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[82/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[83/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[84/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[85/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[86/358] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[87/358] Compiling BitCollections BitSet.Index.swift
[88/358] Compiling BitCollections BitSet._UnsafeHandle.swift
[96/365] Compiling _RopeModule BigString+Initializers.swift
[97/365] Compiling _RopeModule BigString+Chunk+RopeElement.swift
[98/365] Compiling _RopeModule BigString+Chunk+Splitting.swift
[99/365] Compiling _RopeModule BigString+Chunk.swift
[100/365] Compiling _RopeModule BigString+BidirectionalCollection.swift
[101/365] Compiling _RopeModule BigString+Comparable.swift
[102/365] Compiling _RopeModule BigString+CustomDebugStringConvertible.swift
[103/365] Compiling _RopeModule BigString+CustomStringConvertible.swift
[104/365] Compiling _RopeModule BigString+Equatable.swift
[105/365] Compiling _RopeModule BigString+Builder.swift
[106/365] Compiling _RopeModule BigString+Contents.swift
[113/365] Compiling OrderedCollections OrderedSet+SubSequence.swift
[114/365] Compiling OrderedCollections OrderedSet+Testing.swift
[115/365] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[116/365] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[117/365] Compiling OrderedCollections OrderedSet.swift
[118/365] Compiling OrderedCollections _UnsafeBitset.swift
[119/365] Compiling _RopeModule Rope+Sequence.swift
[120/365] Compiling _RopeModule Rope+Append.swift
[121/365] Compiling _RopeModule Rope+Extract.swift
[122/365] Compiling _RopeModule Rope+Find.swift
[123/365] Emitting module Logging
[124/365] Compiling Logging LogHandler.swift
[125/365] Compiling Logging Locks.swift
[126/365] Compiling Logging Logging.swift
[127/365] Compiling _RopeModule BigString+Managing Breaks.swift
[128/365] Compiling _RopeModule BigString+RemoveSubrange.swift
[129/365] Compiling _RopeModule BigString+ReplaceSubrange.swift
[130/365] Compiling _RopeModule BigString+Split.swift
[131/365] Compiling _RopeModule Range+BigString.swift
[132/365] Compiling _RopeModule BigString+UTF16View.swift
[133/365] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[138/366] Compiling _RopeModule BigString+Insert.swift
[147/366] Compiling _RopeModule BigString+Summary.swift
[148/366] Compiling _RopeModule BigString.swift
[149/366] Compiling _RopeModule BigString+Chunk+Counts.swift
[150/366] Compiling _RopeModule BigString+Chunk+Description.swift
[171/366] Wrapping AST for Logging for debugging
[185/375] Emitting module BitCollections
[186/375] Compiling _RopeModule _CharacterRecognizer.swift
[187/375] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[188/375] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[189/375] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[190/375] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[191/375] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[192/375] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[193/375] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[194/375] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[195/375] Compiling HashTreeCollections TreeSet.swift
[196/375] Emitting module DequeModule
[197/376] Wrapping AST for DequeModule for debugging
[201/376] Compiling OrderedCollections OrderedSet+Sendable.swift
[241/377] Wrapping AST for BitCollections for debugging
[306/377] Emitting module OrderedCollections
[307/378] Wrapping AST for OrderedCollections for debugging
[309/378] Emitting module _RopeModule
[343/378] Compiling _RopeModule Rope+Join.swift
[344/378] Compiling _RopeModule Rope+MutatingForEach.swift
[345/378] Compiling _RopeModule Rope+Remove.swift
[346/378] Compiling _RopeModule Rope+RemoveSubrange.swift
[347/378] Compiling _RopeModule Rope+Split.swift
[348/378] Compiling _RopeModule Optional Utilities.swift
[349/378] Compiling _RopeModule String Utilities.swift
[350/378] Compiling _RopeModule String.Index+ABI.swift
[352/378] Emitting module HashTreeCollections
[363/380] Wrapping AST for HashTreeCollections for debugging
[364/380] Wrapping AST for _RopeModule for debugging
[366/382] Compiling Collections Collections.swift
[367/382] Emitting module Collections
[368/383] Wrapping AST for Collections for debugging
[370/419] Emitting module ACPModel
[371/424] Compiling ACPModel PlanEntry.swift
[372/424] Compiling ACPModel Priority.swift
[373/424] Compiling ACPModel ProtocolVersion.swift
[374/424] Compiling ACPModel RequestId.swift
[375/424] Compiling ACPModel Role.swift
[376/424] Compiling ACPModel ModelMessages.swift
[377/424] Compiling ACPModel Notifications.swift
[378/424] Compiling ACPModel Pagination.swift
[379/424] Compiling ACPModel PermissionMessages.swift
[380/424] Compiling ACPModel PermissionOptionId.swift
[381/424] Compiling ACPModel ACPModel.swift
[382/424] Compiling ACPModel AcpProtocols.swift
[383/424] Compiling ACPModel Annotations.swift
[384/424] Compiling ACPModel AuthMessages.swift
[385/424] Compiling ACPModel AvailableCommand.swift
[386/424] Compiling ACPModel SessionInfo.swift
[387/424] Compiling ACPModel SessionMessages.swift
[388/424] Compiling ACPModel SessionModeId.swift
[389/424] Compiling ACPModel SessionModeMessages.swift
[390/424] Compiling ACPModel SessionOperations.swift
[391/424] Compiling ACPModel SessionConfigGroupId.swift
[392/424] Compiling ACPModel SessionConfigId.swift
[393/424] Compiling ACPModel SessionConfigOption.swift
[394/424] Compiling ACPModel SessionConfigValueId.swift
[395/424] Compiling ACPModel SessionId.swift
[396/424] Compiling ACPModel InitializeMessages.swift
[397/424] Compiling ACPModel JsonRpc.swift
[398/424] Compiling ACPModel JsonValue.swift
[399/424] Compiling ACPModel McpServer.swift
[400/424] Compiling ACPModel ModelId.swift
[401/424] Compiling ACPModel Capabilities.swift
[402/424] Compiling ACPModel ContentBlock.swift
[403/424] Compiling ACPModel Cursor.swift
[404/424] Compiling ACPModel FileMessages.swift
[405/424] Compiling ACPModel Implementation.swift
[406/424] Compiling ACPModel SessionUpdate.swift
[407/424] Compiling ACPModel SessionUpdateTypes.swift
[408/424] Compiling ACPModel Terminal.swift
[409/424] Compiling ACPModel ToolCall.swift
[410/424] Compiling ACPModel ToolCallId.swift
[411/425] Wrapping AST for ACPModel for debugging
[413/441] Emitting module ACP
[414/443] Compiling ACP TerminalOperations.swift
[415/443] Compiling ACP Transport.swift
[416/443] Compiling ACP AgentContext.swift
[417/443] Compiling ACP Client.swift
[418/443] Compiling ACP FileSystemOperations.swift
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:128:27: warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
126 | ) -> PaginatedAsyncSequence<Item> {
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
| `- warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
130 |
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:133:46: warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
131 | // Decode the result to the expected response type
132 | let data = try JSONEncoder().encode(jsonRpcResponse.result)
133 | let response = try JSONDecoder().decode(Response.self, from: data)
| `- warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
134 |
135 | return responseHandler(response)
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:129:50: warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
| | `- note: isolated conformance to protocol 'Encodable' can be introduced here
| |- warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Request' to actor-isolated instance method 'sendRequest(method:params:timeoutSeconds:)' risks causing races in between task-isolated and actor-isolated uses
130 |
131 | // Decode the result to the expected response type
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[419/443] Compiling ACP PaginatedResponse.swift
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:128:27: warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
126 | ) -> PaginatedAsyncSequence<Item> {
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
| `- warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
130 |
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:133:46: warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
131 | // Decode the result to the expected response type
132 | let data = try JSONEncoder().encode(jsonRpcResponse.result)
133 | let response = try JSONDecoder().decode(Response.self, from: data)
| `- warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
134 |
135 | return responseHandler(response)
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:129:50: warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
| | `- note: isolated conformance to protocol 'Encodable' can be introduced here
| |- warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Request' to actor-isolated instance method 'sendRequest(method:params:timeoutSeconds:)' risks causing races in between task-isolated and actor-isolated uses
130 |
131 | // Decode the result to the expected response type
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[420/443] Compiling ACP ClientConnection.swift
[421/443] Compiling ACP ClientSession.swift
[422/443] Compiling ACP ACP.swift
[423/443] Compiling ACP Agent.swift
[424/443] Compiling ACP AgentConnection.swift
[425/443] Compiling ACP ClientSessionOperations.swift
[426/443] Compiling ACP Event.swift
[427/443] Compiling ACP RemoteClientOperations.swift
[428/443] Compiling ACP StdioTransport.swift
[429/443] Compiling ACP Protocol.swift
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:187:17: warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
185 | if let paramsValue = request.params {
186 | let data = try JSONEncoder().encode(paramsValue)
187 | params = try JSONDecoder().decode(P.self, from: data)
| `- warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
188 | } else {
189 | throw ProtocolError.decodingFailed(underlying: NSError(
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:197:30: warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
195 |
196 | // Execute handler
197 | let result = try await handler(params)
| `- warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
198 |
199 | // Encode result as JsonValue
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[430/443] Compiling ACP ProtocolExtensions.swift
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:187:17: warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
185 | if let paramsValue = request.params {
186 | let data = try JSONEncoder().encode(paramsValue)
187 | params = try JSONDecoder().decode(P.self, from: data)
| `- warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
188 | } else {
189 | throw ProtocolError.decodingFailed(underlying: NSError(
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:197:30: warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
195 |
196 | // Execute handler
197 | let result = try await handler(params)
| `- warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
198 |
199 | // Encode result as JsonValue
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[431/445] Wrapping AST for ACP for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[433/455] Compiling ACPHTTP ACPHTTP.swift
[434/455] Emitting module ACPHTTP
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:44:32: error: cannot find type 'URLSessionWebSocketTask' in scope
42 |
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
45 | private let session: URLSession
46 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
45 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | /// Initialize a new WebSocket transport.
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/ACPHTTP/WebSocketTransport.swift:52:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | self.url = url
54 | self.session = session
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/ACPHTTP/WebSocketTransport.swift:52:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | self.url = url
54 | self.session = session
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:52:50: error: value of type '_' expected to be instance of class or class-constrained type
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
53 | self.url = url
54 | self.session = session
[435/455] Compiling ACPHTTP WebSocketTransport.swift
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:44:32: error: cannot find type 'URLSessionWebSocketTask' in scope
42 |
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
45 | private let session: URLSession
46 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
45 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | /// Initialize a new WebSocket transport.
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/ACPHTTP/WebSocketTransport.swift:52:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | self.url = url
54 | self.session = session
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/ACPHTTP/WebSocketTransport.swift:52:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | self.url = url
54 | self.session = session
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:52:50: error: value of type '_' expected to be instance of class or class-constrained type
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
53 | self.url = url
54 | self.session = session
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:69:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
67 |
68 | // Create WebSocket task
69 | webSocketTask = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
70 |
71 | // Start the connection
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:97:40: error: cannot infer contextual base in reference to member 'string'
95 | }
96 |
97 | try await webSocketTask?.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
98 | }
99 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:114:38: error: cannot infer contextual base in reference to member 'normalClosure'
112 |
113 | // Close WebSocket with normal closure
114 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
115 | webSocketTask = nil
116 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:114:61: error: 'nil' requires a contextual type
112 |
113 | // Close WebSocket with normal closure
114 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
115 | webSocketTask = nil
116 |
[436/455] Emitting module EchoAgent
[437/455] Emitting module SimpleAgentApp
[438/455] Emitting module InteractiveClient
[439/455] Emitting module SimpleClient
BUILD FAILURE 6.2 linux