The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Socket, reference main (489e63), with Swift 6.0 for Linux on 3 Nov 2024 04:29:02 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PureSwift/Socket.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/PureSwift/Socket
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 489e63b Sleep between every socket polling
Cloned https://github.com/PureSwift/Socket.git
Revision (git rev-parse @):
489e63b9cf0998f820f9f994f25cd5cb5f602404
SUCCESS checkout https://github.com/PureSwift/Socket.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/PureSwift/Socket.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/PureSwift/swift-system
[1/3061] Fetching swift-system
Fetched https://github.com/PureSwift/swift-system from cache (0.26s)
Creating working copy for https://github.com/PureSwift/swift-system
Working copy of https://github.com/PureSwift/swift-system resolved at feature/dynamic-lib (bd3d1f6)
warning: 'swift-system': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/CMakeLists.txt
Building for debugging...
[0/5] Write sources
[2/5] Compiling CSocket shims.c
[3/5] Compiling CSystem shims.c
[3/5] Write swift-version-24593BA9C3E375BF.txt
[6/29] Emitting module SystemPackage
[7/32] Compiling SystemPackage Util+StringArray.swift
[8/32] Compiling SystemPackage Util.swift
[9/32] Compiling SystemPackage UtilConsumers.swift
[10/32] Compiling SystemPackage FilePath.swift
[11/32] Compiling SystemPackage FilePathComponentView.swift
[12/32] Compiling SystemPackage FilePathComponents.swift
[13/32] Compiling SystemPackage FilePathParsing.swift
[14/32] Compiling SystemPackage Errno.swift
[15/32] Compiling SystemPackage FileDescriptor.swift
[16/32] Compiling SystemPackage FileHelpers.swift
[17/32] Compiling SystemPackage FileOperations.swift
[18/32] Compiling SystemPackage FilePathString.swift
[19/32] Compiling SystemPackage FilePathSyntax.swift
[20/32] Compiling SystemPackage FilePathWindows.swift
[21/32] Compiling SystemPackage FilePermissions.swift
[22/32] Compiling SystemPackage Backcompat.swift
[23/32] Compiling SystemPackage CInterop.swift
[24/32] Compiling SystemPackage MachPort.swift
[25/32] Compiling SystemPackage PlatformString.swift
[26/32] Compiling SystemPackage SystemString.swift
[27/32] Compiling SystemPackage RawBuffer.swift
[28/32] Compiling SystemPackage Syscalls.swift
[29/32] Compiling SystemPackage WindowsSyscallAdapters.swift
[30/32] Compiling SystemPackage Constants.swift
[31/32] Compiling SystemPackage Exports.swift
[32/32] Compiling SystemPackage Mocking.swift
[34/72] Compiling Socket SocketOptionID.swift
[35/72] Compiling Socket SocketOptionLevel.swift
[36/72] Compiling Socket SocketProtocol.swift
[37/72] Compiling Socket IPv4Protocol.swift
[38/72] Compiling Socket IPv6Protocol.swift
[39/72] Compiling Socket CInterop.swift
[40/72] Compiling Socket CSocketAddress.swift
[41/72] Compiling Socket Constants.swift
[42/72] Compiling Socket Errno.swift
[43/72] Compiling Socket FileChange.swift
[44/72] Compiling Socket FileEvent.swift
[45/77] Compiling Socket MessageFlags.swift
[46/77] Compiling Socket NetworkInterface.swift
[47/77] Compiling Socket NetworkOrder.swift
[48/77] Compiling Socket Poll.swift
[49/77] Compiling Socket SocketAddress.swift
[50/77] Compiling Socket SocketDescriptor.swift
[51/77] Compiling Socket SocketFlags.swift
[52/77] Compiling Socket SocketHelpers.swift
[53/77] Compiling Socket SocketOperations.swift
[54/77] Compiling Socket SocketOption.swift
[55/77] Compiling Socket FileFlags.swift
[56/77] Compiling Socket IOControl.swift
[57/77] Compiling Socket IODirection.swift
[58/77] Compiling Socket IOOperations.swift
[59/77] Compiling Socket IOType.swift
[60/77] Compiling Socket InternetProtocol.swift
[61/77] Emitting module Socket
/host/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/host/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift:89:34: warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
87 | }
88 |
89 | extension LinkLayerSocketAddress.CSocketAddressType: CSocketAddress {
   |                                  `- warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
90 |
91 |     @_alwaysEmitIntoClient
CSocket.sockaddr_ll:1:15: note: type declared here
 1 | public struct sockaddr_ll {
   |               `- note: type declared here
 2 |     public init()
 3 |     public init(sll_family: UInt16, sll_protocol: UInt16, sll_ifindex: Int32, sll_hatype: UInt16, sll_pkttype: UInt8, sll_halen: UInt8, sll_addr: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8))
[62/77] Compiling Socket LinkLayerProtocol.swift
[63/77] Compiling Socket UnixProtocol.swift
[64/77] Compiling Socket SocketType.swift
[65/77] Compiling Socket Syscalls.swift
[66/77] Compiling Socket Util.swift
[67/77] Compiling Socket IPv4SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift:89:34: warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
87 | }
88 |
89 | extension LinkLayerSocketAddress.CSocketAddressType: CSocketAddress {
   |                                  `- warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
90 |
91 |     @_alwaysEmitIntoClient
CSocket.sockaddr_ll:1:15: note: type declared here
 1 | public struct sockaddr_ll {
   |               `- note: type declared here
 2 |     public init()
 3 |     public init(sll_family: UInt16, sll_protocol: UInt16, sll_ifindex: Int32, sll_hatype: UInt16, sll_pkttype: UInt8, sll_halen: UInt8, sll_addr: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8))
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:38:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
36 |                     .bindMemory(to: CInterop.PlatformChar.self)
37 |                     .baseAddress!
38 |                     .assign(from: platformString, count: path.length + 1)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
   |                      `- note: use 'update(from:count:)' instead
39 |             }
40 |             return try socketAddress.withUnsafePointer(body)
[68/77] Compiling Socket IPv6SocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift:89:34: warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
87 | }
88 |
89 | extension LinkLayerSocketAddress.CSocketAddressType: CSocketAddress {
   |                                  `- warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
90 |
91 |     @_alwaysEmitIntoClient
CSocket.sockaddr_ll:1:15: note: type declared here
 1 | public struct sockaddr_ll {
   |               `- note: type declared here
 2 |     public init()
 3 |     public init(sll_family: UInt16, sll_protocol: UInt16, sll_ifindex: Int32, sll_hatype: UInt16, sll_pkttype: UInt8, sll_halen: UInt8, sll_addr: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8))
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:38:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
36 |                     .bindMemory(to: CInterop.PlatformChar.self)
37 |                     .baseAddress!
38 |                     .assign(from: platformString, count: path.length + 1)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
   |                      `- note: use 'update(from:count:)' instead
39 |             }
40 |             return try socketAddress.withUnsafePointer(body)
[69/77] Compiling Socket LinkLayerSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift:89:34: warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
87 | }
88 |
89 | extension LinkLayerSocketAddress.CSocketAddressType: CSocketAddress {
   |                                  `- warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
90 |
91 |     @_alwaysEmitIntoClient
CSocket.sockaddr_ll:1:15: note: type declared here
 1 | public struct sockaddr_ll {
   |               `- note: type declared here
 2 |     public init()
 3 |     public init(sll_family: UInt16, sll_protocol: UInt16, sll_ifindex: Int32, sll_hatype: UInt16, sll_pkttype: UInt8, sll_halen: UInt8, sll_addr: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8))
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:38:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
36 |                     .bindMemory(to: CInterop.PlatformChar.self)
37 |                     .baseAddress!
38 |                     .assign(from: platformString, count: path.length + 1)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
   |                      `- note: use 'update(from:count:)' instead
39 |             }
40 |             return try socketAddress.withUnsafePointer(body)
[70/77] Compiling Socket UnixSocketAddress.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift:89:34: warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
87 | }
88 |
89 | extension LinkLayerSocketAddress.CSocketAddressType: CSocketAddress {
   |                                  `- warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
90 |
91 |     @_alwaysEmitIntoClient
CSocket.sockaddr_ll:1:15: note: type declared here
 1 | public struct sockaddr_ll {
   |               `- note: type declared here
 2 |     public init()
 3 |     public init(sll_family: UInt16, sll_protocol: UInt16, sll_ifindex: Int32, sll_hatype: UInt16, sll_pkttype: UInt8, sll_halen: UInt8, sll_addr: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8))
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:38:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
36 |                     .bindMemory(to: CInterop.PlatformChar.self)
37 |                     .baseAddress!
38 |                     .assign(from: platformString, count: path.length + 1)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
   |                      `- note: use 'update(from:count:)' instead
39 |             }
40 |             return try socketAddress.withUnsafePointer(body)
[71/77] Compiling Socket SocketAddressFamily.swift
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift:89:34: warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
87 | }
88 |
89 | extension LinkLayerSocketAddress.CSocketAddressType: CSocketAddress {
   |                                  `- warning: 'CSocketAddressType' aliases 'CSocket.sockaddr_ll' and cannot be used in an extension with public or '@usableFromInline' members because 'CSocket' has been imported as implementation-only; this is an error in the Swift 6 language mode
90 |
91 |     @_alwaysEmitIntoClient
CSocket.sockaddr_ll:1:15: note: type declared here
 1 | public struct sockaddr_ll {
   |               `- note: type declared here
 2 |     public init()
 3 |     public init(sll_family: UInt16, sll_protocol: UInt16, sll_ifindex: Int32, sll_hatype: UInt16, sll_pkttype: UInt8, sll_halen: UInt8, sll_addr: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8))
/host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift:38:22: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
36 |                     .bindMemory(to: CInterop.PlatformChar.self)
37 |                     .baseAddress!
38 |                     .assign(from: platformString, count: path.length + 1)
   |                      |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
   |                      `- note: use 'update(from:count:)' instead
39 |             }
40 |             return try socketAddress.withUnsafePointer(body)
[72/77] Compiling Socket Socket.swift
/host/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/host/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/host/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:14: 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
 37 |
 38 |     public func configureManager() {
 39 |         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
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/host/spi-builder-workspace/Sources/Socket/System/CInternetAddress.swift:22:56: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
20 |         */
21 |         let result = string.withCString {
22 |             system_inet_pton(Self.family.rawValue, $0, &self)
   |                                                        `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
23 |         }
24 |         guard result == 1 else {
[73/77] Compiling Socket SocketContinuation.swift
/host/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/host/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/host/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:14: 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
 37 |
 38 |     public func configureManager() {
 39 |         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
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/host/spi-builder-workspace/Sources/Socket/System/CInternetAddress.swift:22:56: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
20 |         */
21 |         let result = string.withCString {
22 |             system_inet_pton(Self.family.rawValue, $0, &self)
   |                                                        `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
23 |         }
24 |         guard result == 1 else {
[74/77] Compiling Socket SocketManager.swift
/host/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/host/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/host/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:14: 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
 37 |
 38 |     public func configureManager() {
 39 |         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
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/host/spi-builder-workspace/Sources/Socket/System/CInternetAddress.swift:22:56: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
20 |         */
21 |         let result = string.withCString {
22 |             system_inet_pton(Self.family.rawValue, $0, &self)
   |                                                        `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
23 |         }
24 |         guard result == 1 else {
[75/77] Compiling Socket AsyncSocketManager.swift
/host/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/host/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/host/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:14: 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
 37 |
 38 |     public func configureManager() {
 39 |         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
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/host/spi-builder-workspace/Sources/Socket/System/CInternetAddress.swift:22:56: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
20 |         */
21 |         let result = string.withCString {
22 |             system_inet_pton(Self.family.rawValue, $0, &self)
   |                                                        `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
23 |         }
24 |         guard result == 1 else {
[76/77] Compiling Socket CFSocketManager.swift
/host/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/host/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/host/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:14: 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
 37 |
 38 |     public func configureManager() {
 39 |         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
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/host/spi-builder-workspace/Sources/Socket/System/CInternetAddress.swift:22:56: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
20 |         */
21 |         let result = string.withCString {
22 |             system_inet_pton(Self.family.rawValue, $0, &self)
   |                                                        `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
23 |         }
24 |         guard result == 1 else {
[77/77] Compiling Socket CInternetAddress.swift
/host/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/host/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/host/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:14: 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
 37 |
 38 |     public func configureManager() {
 39 |         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
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                                                 `- note: closure captures 'self' which is accessible to code in the current task
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/host/spi-builder-workspace/Sources/Socket/System/CInternetAddress.swift:22:56: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
20 |         */
21 |         let result = string.withCString {
22 |             system_inet_pton(Self.family.rawValue, $0, &self)
   |                                                        `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
23 |         }
24 |         guard result == 1 else {
Build complete! (14.20s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "branch" : [
          "feature/dynamic-lib"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/PureSwift/swift-system"
    }
  ],
  "manifest_display_name" : "Socket",
  "name" : "Socket",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Socket",
      "targets" : [
        "Socket"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SocketTests",
      "module_type" : "SwiftTarget",
      "name" : "SocketTests",
      "path" : "Tests/SocketTests",
      "sources" : [
        "SocketTests.swift"
      ],
      "target_dependencies" : [
        "Socket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Socket",
      "module_type" : "SwiftTarget",
      "name" : "Socket",
      "path" : "Sources/Socket",
      "product_dependencies" : [
        "SystemPackage"
      ],
      "product_memberships" : [
        "Socket"
      ],
      "sources" : [
        "Socket.swift",
        "SocketContinuation.swift",
        "SocketManager.swift",
        "SocketManager/AsyncSocketManager.swift",
        "SocketManager/CFSocketManager.swift",
        "System/CInternetAddress.swift",
        "System/CInterop.swift",
        "System/CSocketAddress.swift",
        "System/Constants.swift",
        "System/Errno.swift",
        "System/FileChange.swift",
        "System/FileEvent.swift",
        "System/FileFlags.swift",
        "System/InputOutput/IOControl.swift",
        "System/InputOutput/IODirection.swift",
        "System/InputOutput/IOOperations.swift",
        "System/InputOutput/IOType.swift",
        "System/InternetProtocol.swift",
        "System/MessageFlags.swift",
        "System/NetworkInterface.swift",
        "System/NetworkOrder.swift",
        "System/Poll.swift",
        "System/SocketAddress.swift",
        "System/SocketAddress/IPv4SocketAddress.swift",
        "System/SocketAddress/IPv6SocketAddress.swift",
        "System/SocketAddress/LinkLayerSocketAddress.swift",
        "System/SocketAddress/UnixSocketAddress.swift",
        "System/SocketAddressFamily.swift",
        "System/SocketDescriptor.swift",
        "System/SocketFlags.swift",
        "System/SocketHelpers.swift",
        "System/SocketOperations.swift",
        "System/SocketOption.swift",
        "System/SocketOptionID.swift",
        "System/SocketOptionLevel.swift",
        "System/SocketProtocol.swift",
        "System/SocketProtocol/IPv4Protocol.swift",
        "System/SocketProtocol/IPv6Protocol.swift",
        "System/SocketProtocol/LinkLayerProtocol.swift",
        "System/SocketProtocol/UnixProtocol.swift",
        "System/SocketType.swift",
        "System/Syscalls.swift",
        "System/Util.swift"
      ],
      "target_dependencies" : [
        "CSocket"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CSocket",
      "module_type" : "ClangTarget",
      "name" : "CSocket",
      "path" : "Sources/CSocket",
      "product_memberships" : [
        "Socket"
      ],
      "sources" : [
        "shims.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.