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

Failed to build swift-nio-ssh, reference 0.3.2 (01e03b), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 08:14:03 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

    |                |- warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithmsLock' 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
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:288:16: warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
    |                |- warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithms' 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
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:42: warning: 'Lock' is deprecated: renamed to 'NIOLock'
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                                          |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                          `- note: use 'NIOLock' instead
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:16: warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                |- warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithmsLock' 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
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:290:16: warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
    |                |- warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithms' 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
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:33: warning: 'Lock' is deprecated: renamed to 'NIOLock'
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                 `- note: use 'NIOLock' instead
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:16: warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                |- warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signaturesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signaturesLock' 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
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:292:16: warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
    |                |- warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signatures' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signatures' 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
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:88:25: warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 86 |             switch self {
 87 |             case .tcpForwarding(let promise):
 88 |                 promise.succeed(result.map(GlobalRequest.TCPForwardingResponse.init))
    |                         `- warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 89 |             case .unknown(let promise):
 90 |                 promise.succeed(result?.buffer)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/GlobalRequestDelegate.swift:52:19: note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 50 |
 51 |     /// The data associated with a successful response to a TCP forwarding request.
 52 |     public struct TCPForwardingResponse: Hashable {
    |                   `- note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 53 |         /// If requested to listen on a port, and the port the client requested was 0, this is set to the
 54 |         /// port that was actually bound. Otherwise is nil.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:29: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                             `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:65: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                                                                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:25: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                         `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:121: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                                                                                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:408:23: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
406 |             switch result {
407 |             case .success:
408 |                 guard self.context != nil else {
    |                       `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
409 |                     // This write succeeded, but we're out of the pipeline anyway. Fail the promise.
410 |                     promise?.fail(ChannelError.eof)
[338/378] Compiling NIOSSH NIOSSHPublicKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:49: warning: 'Lock' is deprecated: renamed to 'NIOLock'
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                                 `- note: use 'NIOLock' instead
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:16: warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                |- warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemesLock' 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
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:286:16: warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
    |                |- warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemes' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemes' 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
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:44: warning: 'Lock' is deprecated: renamed to 'NIOLock'
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                                            |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                            `- note: use 'NIOLock' instead
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:16: warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                |- warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithmsLock' 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
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:288:16: warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
    |                |- warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithms' 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
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:42: warning: 'Lock' is deprecated: renamed to 'NIOLock'
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                                          |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                          `- note: use 'NIOLock' instead
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:16: warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                |- warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithmsLock' 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
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:290:16: warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
    |                |- warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithms' 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
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:33: warning: 'Lock' is deprecated: renamed to 'NIOLock'
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                 `- note: use 'NIOLock' instead
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:16: warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                |- warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signaturesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signaturesLock' 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
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:292:16: warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
    |                |- warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signatures' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signatures' 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
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:88:25: warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 86 |             switch self {
 87 |             case .tcpForwarding(let promise):
 88 |                 promise.succeed(result.map(GlobalRequest.TCPForwardingResponse.init))
    |                         `- warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 89 |             case .unknown(let promise):
 90 |                 promise.succeed(result?.buffer)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/GlobalRequestDelegate.swift:52:19: note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 50 |
 51 |     /// The data associated with a successful response to a TCP forwarding request.
 52 |     public struct TCPForwardingResponse: Hashable {
    |                   `- note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 53 |         /// If requested to listen on a port, and the port the client requested was 0, this is set to the
 54 |         /// port that was actually bound. Otherwise is nil.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:29: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                             `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:65: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                                                                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:25: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                         `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:121: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                                                                                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:408:23: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
406 |             switch result {
407 |             case .success:
408 |                 guard self.context != nil else {
    |                       `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
409 |                     // This write succeeded, but we're out of the pipeline anyway. Fail the promise.
410 |                     promise?.fail(ChannelError.eof)
[339/378] Compiling NIOSSH NIOSSHSignature.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:49: warning: 'Lock' is deprecated: renamed to 'NIOLock'
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                                 `- note: use 'NIOLock' instead
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:16: warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                |- warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemesLock' 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
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:286:16: warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
    |                |- warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemes' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemes' 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
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:44: warning: 'Lock' is deprecated: renamed to 'NIOLock'
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                                            |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                            `- note: use 'NIOLock' instead
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:16: warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                |- warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithmsLock' 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
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:288:16: warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
    |                |- warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithms' 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
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:42: warning: 'Lock' is deprecated: renamed to 'NIOLock'
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                                          |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                          `- note: use 'NIOLock' instead
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:16: warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                |- warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithmsLock' 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
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:290:16: warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
    |                |- warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithms' 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
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:33: warning: 'Lock' is deprecated: renamed to 'NIOLock'
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                 `- note: use 'NIOLock' instead
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:16: warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                |- warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signaturesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signaturesLock' 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
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:292:16: warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
    |                |- warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signatures' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signatures' 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
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:88:25: warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 86 |             switch self {
 87 |             case .tcpForwarding(let promise):
 88 |                 promise.succeed(result.map(GlobalRequest.TCPForwardingResponse.init))
    |                         `- warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 89 |             case .unknown(let promise):
 90 |                 promise.succeed(result?.buffer)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/GlobalRequestDelegate.swift:52:19: note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 50 |
 51 |     /// The data associated with a successful response to a TCP forwarding request.
 52 |     public struct TCPForwardingResponse: Hashable {
    |                   `- note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 53 |         /// If requested to listen on a port, and the port the client requested was 0, this is set to the
 54 |         /// port that was actually bound. Otherwise is nil.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:29: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                             `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:65: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                                                                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:25: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                         `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:121: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                                                                                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:408:23: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
406 |             switch result {
407 |             case .success:
408 |                 guard self.context != nil else {
    |                       `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
409 |                     // This write succeeded, but we're out of the pipeline anyway. Fail the promise.
410 |                     promise?.fail(ChannelError.eof)
[340/378] Compiling NIOSSH NIOSSHError.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:49: warning: 'Lock' is deprecated: renamed to 'NIOLock'
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                                 `- note: use 'NIOLock' instead
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:16: warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                |- warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemesLock' 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
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:286:16: warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
    |                |- warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemes' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemes' 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
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:44: warning: 'Lock' is deprecated: renamed to 'NIOLock'
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                                            |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                            `- note: use 'NIOLock' instead
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:16: warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                |- warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithmsLock' 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
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:288:16: warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
    |                |- warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithms' 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
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:42: warning: 'Lock' is deprecated: renamed to 'NIOLock'
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                                          |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                          `- note: use 'NIOLock' instead
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:16: warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                |- warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithmsLock' 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
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:290:16: warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
    |                |- warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithms' 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
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:33: warning: 'Lock' is deprecated: renamed to 'NIOLock'
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                 `- note: use 'NIOLock' instead
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:16: warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                |- warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signaturesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signaturesLock' 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
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:292:16: warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
    |                |- warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signatures' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signatures' 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
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:88:25: warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 86 |             switch self {
 87 |             case .tcpForwarding(let promise):
 88 |                 promise.succeed(result.map(GlobalRequest.TCPForwardingResponse.init))
    |                         `- warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 89 |             case .unknown(let promise):
 90 |                 promise.succeed(result?.buffer)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/GlobalRequestDelegate.swift:52:19: note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 50 |
 51 |     /// The data associated with a successful response to a TCP forwarding request.
 52 |     public struct TCPForwardingResponse: Hashable {
    |                   `- note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 53 |         /// If requested to listen on a port, and the port the client requested was 0, this is set to the
 54 |         /// port that was actually bound. Otherwise is nil.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:29: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                             `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:65: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                                                                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:25: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                         `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:121: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                                                                                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:408:23: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
406 |             switch result {
407 |             case .success:
408 |                 guard self.context != nil else {
    |                       `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
409 |                     // This write succeeded, but we're out of the pipeline anyway. Fail the promise.
410 |                     promise?.fail(ChannelError.eof)
[341/378] Compiling NIOSSH NIOSSHHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:49: warning: 'Lock' is deprecated: renamed to 'NIOLock'
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                                 `- note: use 'NIOLock' instead
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:16: warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                |- warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemesLock' 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
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:286:16: warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
    |                |- warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemes' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemes' 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
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:44: warning: 'Lock' is deprecated: renamed to 'NIOLock'
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                                            |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                            `- note: use 'NIOLock' instead
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:16: warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                |- warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithmsLock' 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
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:288:16: warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
    |                |- warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithms' 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
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:42: warning: 'Lock' is deprecated: renamed to 'NIOLock'
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                                          |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                          `- note: use 'NIOLock' instead
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:16: warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                |- warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithmsLock' 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
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:290:16: warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
    |                |- warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithms' 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
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:33: warning: 'Lock' is deprecated: renamed to 'NIOLock'
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                 `- note: use 'NIOLock' instead
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:16: warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                |- warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signaturesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signaturesLock' 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
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:292:16: warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
    |                |- warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signatures' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signatures' 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
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:88:25: warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 86 |             switch self {
 87 |             case .tcpForwarding(let promise):
 88 |                 promise.succeed(result.map(GlobalRequest.TCPForwardingResponse.init))
    |                         `- warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 89 |             case .unknown(let promise):
 90 |                 promise.succeed(result?.buffer)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/GlobalRequestDelegate.swift:52:19: note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 50 |
 51 |     /// The data associated with a successful response to a TCP forwarding request.
 52 |     public struct TCPForwardingResponse: Hashable {
    |                   `- note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 53 |         /// If requested to listen on a port, and the port the client requested was 0, this is set to the
 54 |         /// port that was actually bound. Otherwise is nil.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:29: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                             `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:65: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                                                                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:25: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                         `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:121: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                                                                                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:408:23: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
406 |             switch result {
407 |             case .success:
408 |                 guard self.context != nil else {
    |                       `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
409 |                     // This write succeeded, but we're out of the pipeline anyway. Fail the promise.
410 |                     promise?.fail(ChannelError.eof)
[342/378] Compiling NIOSSH NIOSSHSendable.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:49: warning: 'Lock' is deprecated: renamed to 'NIOLock'
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                                 `- note: use 'NIOLock' instead
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:285:16: warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
283 |
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
    |                |- warning: static property 'transportProtectionSchemesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemesLock' 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
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:286:16: warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
284 | private enum _CustomAlgorithms {
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
    |                |- warning: static property 'transportProtectionSchemes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'transportProtectionSchemes' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'transportProtectionSchemes' 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
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:44: warning: 'Lock' is deprecated: renamed to 'NIOLock'
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                                            |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                            `- note: use 'NIOLock' instead
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287:16: warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 |     static var transportProtectionSchemesLock = Lock()
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
    |                |- warning: static property 'keyExchangeAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithmsLock' 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
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:288:16: warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |     static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
    |                |- warning: static property 'keyExchangeAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'keyExchangeAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'keyExchangeAlgorithms' 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
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:42: warning: 'Lock' is deprecated: renamed to 'NIOLock'
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                                          |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                          `- note: use 'NIOLock' instead
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289:16: warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |     static var keyExchangeAlgorithmsLock = Lock()
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
    |                |- warning: static property 'publicKeyAlgorithmsLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithmsLock' 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
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:290:16: warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
288 |     static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
    |                |- warning: static property 'publicKeyAlgorithms' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'publicKeyAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'publicKeyAlgorithms' 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
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:33: warning: 'Lock' is deprecated: renamed to 'NIOLock'
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                                 |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                                 `- note: use 'NIOLock' instead
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291:16: warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
289 |     static var publicKeyAlgorithmsLock = Lock()
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
    |                |- warning: static property 'signaturesLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signaturesLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signaturesLock' 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
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:292:16: warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
290 |     static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
291 |     static var signaturesLock = Lock()
292 |     static var signatures: [NIOSSHSignatureProtocol.Type] = []
    |                |- warning: static property 'signatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'signatures' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'signatures' 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
293 | }
294 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:88:25: warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 86 |             switch self {
 87 |             case .tcpForwarding(let promise):
 88 |                 promise.succeed(result.map(GlobalRequest.TCPForwardingResponse.init))
    |                         `- warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 89 |             case .unknown(let promise):
 90 |                 promise.succeed(result?.buffer)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/GlobalRequestDelegate.swift:52:19: note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 50 |
 51 |     /// The data associated with a successful response to a TCP forwarding request.
 52 |     public struct TCPForwardingResponse: Hashable {
    |                   `- note: consider making struct 'TCPForwardingResponse' conform to the 'Sendable' protocol
 53 |         /// If requested to listen on a port, and the port the client requested was 0, this is set to the
 54 |         /// port that was actually bound. Otherwise is nil.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:29: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                             `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:206:65: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 |                 case .success(.some(let message)):
205 |                     do {
206 |                         try self.writeMessage(message, context: context)
    |                                                                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |                         self.pendingWrite = false
208 |                         context.flush()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:25: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                         `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:366:121: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 switch result {
365 |                 case .success(let tcpForwardingResponse):
366 |                     try self.writeMessage(.init(.requestSuccess(.init(.tcpForwarding(tcpForwardingResponse), allocator: context.channel.allocator))), context: context)
    |                                                                                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
367 |                     context.flush()
368 |                 case .failure:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:408:23: warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | /// other usage models, including port forwarding. It is also able to construct somewhat
 25 | /// arbitrary secure multiplexed channels.
 26 | public final class NIOSSHHandler {
    |                    `- note: class 'NIOSSHHandler' does not conform to the 'Sendable' protocol
 27 |     internal var channel: Channel? {
 28 |         self.context.map { $0.channel }
    :
406 |             switch result {
407 |             case .success:
408 |                 guard self.context != nil else {
    |                       `- warning: capture of 'self' with non-sendable type 'NIOSSHHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
409 |                     // This write succeeded, but we're out of the pipeline anyway. Fail the promise.
410 |                     promise?.fail(ChannelError.eof)
[343/378] Compiling NIOSSH ECDHCompatibleKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:408:27: warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
406 |
407 |         /// A certificate valid for identifying a user.
408 |         public static let user = CertificateType(rawValue: 1)
    |                           |- warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'user' 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
409 |
410 |         /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:411:27: warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
409 |
410 |         /// A certificate valid for identifying a host.
411 |         public static let host = CertificateType(rawValue: 2)
    |                           |- warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'host' 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
412 |     }
413 | }
[344/378] Compiling NIOSSH EllipticCurveKeyExchange.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:408:27: warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
406 |
407 |         /// A certificate valid for identifying a user.
408 |         public static let user = CertificateType(rawValue: 1)
    |                           |- warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'user' 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
409 |
410 |         /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:411:27: warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
409 |
410 |         /// A certificate valid for identifying a host.
411 |         public static let host = CertificateType(rawValue: 2)
    |                           |- warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'host' 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
412 |     }
413 | }
[345/378] Compiling NIOSSH SSHKeyExchangeResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:408:27: warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
406 |
407 |         /// A certificate valid for identifying a user.
408 |         public static let user = CertificateType(rawValue: 1)
    |                           |- warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'user' 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
409 |
410 |         /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:411:27: warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
409 |
410 |         /// A certificate valid for identifying a host.
411 |         public static let host = CertificateType(rawValue: 2)
    |                           |- warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'host' 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
412 |     }
413 | }
[346/378] Compiling NIOSSH SSHKeyExchangeStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:408:27: warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
406 |
407 |         /// A certificate valid for identifying a user.
408 |         public static let user = CertificateType(rawValue: 1)
    |                           |- warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'user' 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
409 |
410 |         /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:411:27: warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
409 |
410 |         /// A certificate valid for identifying a host.
411 |         public static let host = CertificateType(rawValue: 2)
    |                           |- warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'host' 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
412 |     }
413 | }
[347/378] Compiling NIOSSH ClientServerAuthenticationDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:408:27: warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
406 |
407 |         /// A certificate valid for identifying a user.
408 |         public static let user = CertificateType(rawValue: 1)
    |                           |- warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'user' 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
409 |
410 |         /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:411:27: warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
409 |
410 |         /// A certificate valid for identifying a host.
411 |         public static let host = CertificateType(rawValue: 2)
    |                           |- warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'host' 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
412 |     }
413 | }
[348/378] Compiling NIOSSH CustomKeys.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:408:27: warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
406 |
407 |         /// A certificate valid for identifying a user.
408 |         public static let user = CertificateType(rawValue: 1)
    |                           |- warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'user' 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
409 |
410 |         /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:411:27: warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
409 |
410 |         /// A certificate valid for identifying a host.
411 |         public static let host = CertificateType(rawValue: 2)
    |                           |- warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'host' 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
412 |     }
413 | }
[349/378] Compiling NIOSSH NIOSSHCertifiedPublicKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:408:27: warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
406 |
407 |         /// A certificate valid for identifying a user.
408 |         public static let user = CertificateType(rawValue: 1)
    |                           |- warning: static property 'user' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'user' 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
409 |
410 |         /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:411:27: warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
398 |     /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
399 |     /// wrapping the base type.
400 |     public struct CertificateType: RawRepresentable {
    |                   `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
401 |         public var rawValue: UInt32
402 |
    :
409 |
410 |         /// A certificate valid for identifying a host.
411 |         public static let host = CertificateType(rawValue: 2)
    |                           |- warning: static property 'host' is not concurrency-safe because non-'Sendable' type 'NIOSSHCertifiedPublicKey.CertificateType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'host' 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
412 |     }
413 | }
[350/378] Compiling NIOSSH ByteBuffer+SSH.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Child Channels/ChildChannelOptions.swift:71:5: warning: 'public' modifier is redundant for struct declared in a public extension
69 |
70 |     /// `UsernameOption` allows users to query the authenticated username of the channel.
71 |     public struct UsernameOption: ChannelOption {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
72 |         public typealias Value = String?
73 |
[351/378] Compiling NIOSSH CSPRNG.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Child Channels/ChildChannelOptions.swift:71:5: warning: 'public' modifier is redundant for struct declared in a public extension
69 |
70 |     /// `UsernameOption` allows users to query the authenticated username of the channel.
71 |     public struct UsernameOption: ChannelOption {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
72 |         public typealias Value = String?
73 |
[352/378] Compiling NIOSSH ChildChannelOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Child Channels/ChildChannelOptions.swift:71:5: warning: 'public' modifier is redundant for struct declared in a public extension
69 |
70 |     /// `UsernameOption` allows users to query the authenticated username of the channel.
71 |     public struct UsernameOption: ChannelOption {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
72 |         public typealias Value = String?
73 |
[353/378] Compiling NIOSSH ChildChannelStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Child Channels/ChildChannelOptions.swift:71:5: warning: 'public' modifier is redundant for struct declared in a public extension
69 |
70 |     /// `UsernameOption` allows users to query the authenticated username of the channel.
71 |     public struct UsernameOption: ChannelOption {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
72 |         public typealias Value = String?
73 |
[354/378] Compiling NIOSSH ChildChannelUserEvents.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Child Channels/ChildChannelOptions.swift:71:5: warning: 'public' modifier is redundant for struct declared in a public extension
69 |
70 |     /// `UsernameOption` allows users to query the authenticated username of the channel.
71 |     public struct UsernameOption: ChannelOption {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
72 |         public typealias Value = String?
73 |
[355/378] Compiling NIOSSH ChildChannelWindowManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Child Channels/ChildChannelOptions.swift:71:5: warning: 'public' modifier is redundant for struct declared in a public extension
69 |
70 |     /// `UsernameOption` allows users to query the authenticated username of the channel.
71 |     public struct UsernameOption: ChannelOption {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
72 |         public typealias Value = String?
73 |
[356/378] Compiling NIOSSH ChildChannelWritabilityManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Child Channels/ChildChannelOptions.swift:71:5: warning: 'public' modifier is redundant for struct declared in a public extension
69 |
70 |     /// `UsernameOption` allows users to query the authenticated username of the channel.
71 |     public struct UsernameOption: ChannelOption {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
72 |         public typealias Value = String?
73 |
[357/378] Compiling NIOSSH Role.swift
[358/378] Compiling NIOSSH SSHClientConfiguration.swift
[359/378] Compiling NIOSSH SSHEncryptablePacketPayload.swift
[360/378] Compiling NIOSSH SSHMessages.swift
[361/378] Compiling NIOSSH SSHPacketParser.swift
[362/378] Compiling NIOSSH SSHPacketSerializer.swift
[363/378] Compiling NIOSSH AcceptsKeyExchangeMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:57:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 55 |
 56 |         if let future = result {
 57 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 58 |         } else {
 59 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                 `- warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:60:11: note: class 'Attributes' does not conform to the 'Sendable' protocol
  58 |     }
  59 |
  60 |     class Attributes {
     |           `- note: class 'Attributes' does not conform to the 'Sendable' protocol
  61 |         var username: String? = nil
  62 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                 `- warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHMessages.swift:141:12: note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 139 |     }
 140 |
 141 |     struct UserAuthRequestMessage: Equatable {
     |            `- note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 142 |         // SSH_MSG_USERAUTH_REQUEST
 143 |         static let id: UInt8 = 50
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:58:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
56 |      to ignore banners.
57 |      */
58 |     struct UserAuthBanner {
   |            `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
59 |         /**
60 |          The message to be displayed by client to end user during authentication.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:91:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 89 |
 90 |         if let future = result {
 91 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 92 |         } else {
 93 |             return .noMessage
[364/378] Compiling NIOSSH AcceptsUserAuthMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:57:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 55 |
 56 |         if let future = result {
 57 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 58 |         } else {
 59 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                 `- warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:60:11: note: class 'Attributes' does not conform to the 'Sendable' protocol
  58 |     }
  59 |
  60 |     class Attributes {
     |           `- note: class 'Attributes' does not conform to the 'Sendable' protocol
  61 |         var username: String? = nil
  62 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                 `- warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHMessages.swift:141:12: note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 139 |     }
 140 |
 141 |     struct UserAuthRequestMessage: Equatable {
     |            `- note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 142 |         // SSH_MSG_USERAUTH_REQUEST
 143 |         static let id: UInt8 = 50
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:58:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
56 |      to ignore banners.
57 |      */
58 |     struct UserAuthBanner {
   |            `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
59 |         /**
60 |          The message to be displayed by client to end user during authentication.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:91:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 89 |
 90 |         if let future = result {
 91 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 92 |         } else {
 93 |             return .noMessage
[365/378] Compiling NIOSSH AcceptsVersionMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:57:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 55 |
 56 |         if let future = result {
 57 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 58 |         } else {
 59 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                 `- warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:60:11: note: class 'Attributes' does not conform to the 'Sendable' protocol
  58 |     }
  59 |
  60 |     class Attributes {
     |           `- note: class 'Attributes' does not conform to the 'Sendable' protocol
  61 |         var username: String? = nil
  62 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                 `- warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHMessages.swift:141:12: note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 139 |     }
 140 |
 141 |     struct UserAuthRequestMessage: Equatable {
     |            `- note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 142 |         // SSH_MSG_USERAUTH_REQUEST
 143 |         static let id: UInt8 = 50
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:58:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
56 |      to ignore banners.
57 |      */
58 |     struct UserAuthBanner {
   |            `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
59 |         /**
60 |          The message to be displayed by client to end user during authentication.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:91:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 89 |
 90 |         if let future = result {
 91 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 92 |         } else {
 93 |             return .noMessage
[366/378] Compiling NIOSSH SendsChannelMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:57:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 55 |
 56 |         if let future = result {
 57 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 58 |         } else {
 59 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                 `- warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:60:11: note: class 'Attributes' does not conform to the 'Sendable' protocol
  58 |     }
  59 |
  60 |     class Attributes {
     |           `- note: class 'Attributes' does not conform to the 'Sendable' protocol
  61 |         var username: String? = nil
  62 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                 `- warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHMessages.swift:141:12: note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 139 |     }
 140 |
 141 |     struct UserAuthRequestMessage: Equatable {
     |            `- note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 142 |         // SSH_MSG_USERAUTH_REQUEST
 143 |         static let id: UInt8 = 50
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:58:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
56 |      to ignore banners.
57 |      */
58 |     struct UserAuthBanner {
   |            `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
59 |         /**
60 |          The message to be displayed by client to end user during authentication.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:91:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 89 |
 90 |         if let future = result {
 91 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 92 |         } else {
 93 |             return .noMessage
[367/378] Compiling NIOSSH SendsKeyExchangeMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:57:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 55 |
 56 |         if let future = result {
 57 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 58 |         } else {
 59 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                 `- warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:60:11: note: class 'Attributes' does not conform to the 'Sendable' protocol
  58 |     }
  59 |
  60 |     class Attributes {
     |           `- note: class 'Attributes' does not conform to the 'Sendable' protocol
  61 |         var username: String? = nil
  62 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                 `- warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHMessages.swift:141:12: note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 139 |     }
 140 |
 141 |     struct UserAuthRequestMessage: Equatable {
     |            `- note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 142 |         // SSH_MSG_USERAUTH_REQUEST
 143 |         static let id: UInt8 = 50
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:58:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
56 |      to ignore banners.
57 |      */
58 |     struct UserAuthBanner {
   |            `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
59 |         /**
60 |          The message to be displayed by client to end user during authentication.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:91:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 89 |
 90 |         if let future = result {
 91 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 92 |         } else {
 93 |             return .noMessage
[368/378] Compiling NIOSSH SendsUserAuthMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:57:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 55 |
 56 |         if let future = result {
 57 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 58 |         } else {
 59 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                 `- warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:60:11: note: class 'Attributes' does not conform to the 'Sendable' protocol
  58 |     }
  59 |
  60 |     class Attributes {
     |           `- note: class 'Attributes' does not conform to the 'Sendable' protocol
  61 |         var username: String? = nil
  62 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                 `- warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHMessages.swift:141:12: note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 139 |     }
 140 |
 141 |     struct UserAuthRequestMessage: Equatable {
     |            `- note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 142 |         // SSH_MSG_USERAUTH_REQUEST
 143 |         static let id: UInt8 = 50
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:58:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
56 |      to ignore banners.
57 |      */
58 |     struct UserAuthBanner {
   |            `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
59 |         /**
60 |          The message to be displayed by client to end user during authentication.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:91:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 89 |
 90 |         if let future = result {
 91 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 92 |         } else {
 93 |             return .noMessage
[369/378] Compiling NIOSSH SSHConnectionStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:57:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 55 |
 56 |         if let future = result {
 57 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 58 |         } else {
 59 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                 `- warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:60:11: note: class 'Attributes' does not conform to the 'Sendable' protocol
  58 |     }
  59 |
  60 |     class Attributes {
     |           `- note: class 'Attributes' does not conform to the 'Sendable' protocol
  61 |         var username: String? = nil
  62 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                 `- warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHMessages.swift:141:12: note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 139 |     }
 140 |
 141 |     struct UserAuthRequestMessage: Equatable {
     |            `- note: consider making struct 'UserAuthRequestMessage' conform to the 'Sendable' protocol
 142 |         // SSH_MSG_USERAUTH_REQUEST
 143 |         static let id: UInt8 = 50
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:58:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
56 |      to ignore banners.
57 |      */
58 |     struct UserAuthBanner {
   |            `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
59 |         /**
60 |          The message to be displayed by client to end user during authentication.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:73:155: warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 71 |
 72 |             let connectionAttributes = self.connectionAttributes
 73 |             return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
    |                                                                                                                                                           `- warning: reference to captured var 'banner' in concurrently-executing code; this is an error in the Swift 6 language mode
 74 |         } else {
 75 |             return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:91:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 89 |
 90 |         if let future = result {
 91 |             return .possibleFutureMessage(future.map(Self.transform(_:)))
    |                                                           `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> (SSHMultiMessage?)' may introduce data races
 92 |         } else {
 93 |             return .noMessage
[370/397] Compiling NIOSSHPerformanceTester main.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/main.swift:53:27: error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
21 | // MARK: Test Harness
22 |
23 | var warning: String = ""
   |     `- note: var declared here
24 | assert({
25 |     print("======================================================")
   :
49 | let limitSet = CommandLine.arguments.dropFirst()
50 |
51 | public func measureAndPrint(desc: String, fn: () throws -> Int) rethrows {
   |             `- note: add '@MainActor' to make global function 'measureAndPrint(desc:fn:)' part of global actor 'MainActor'
52 |     if limitSet.count == 0 || limitSet.contains(desc) {
53 |         print("measuring\(warning): \(desc): ", terminator: "")
   |                           `- error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
54 |         let measurements = try measure(fn)
55 |         print(measurements.reduce("") { $0 + "\($1), " })
[371/397] Compiling NIOSSHPerformanceTester shared.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/shared.swift:68:29: warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 |     func requestReceived(request: NIOSSHUserAuthenticationRequest, responsePromise: EventLoopPromise<NIOSSHUserAuthenticationOutcome>) {
67 |         guard case .password(let password) = request.request, password.password == self.expectedPassword else {
68 |             responsePromise.succeed(.failure)
   |                             `- warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 |             return
70 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:211:13: note: enum 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol
209 |
210 | /// The outcome of a user authentication attempt.
211 | public enum NIOSSHUserAuthenticationOutcome {
    |             `- note: enum 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol
212 |     case success
213 |     case partialSuccess(remainingMethods: NIOSSHAvailableUserAuthenticationMethods)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/shared.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSH'
15 | import NIOCore
16 | import NIOEmbedded
17 | import NIOSSH
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSH'
18 |
19 | class BackToBackEmbeddedChannel {
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/shared.swift:71:25: warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 |             return
70 |         }
71 |         responsePromise.succeed(.success)
   |                         `- warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
72 |     }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:211:13: note: enum 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol
209 |
210 | /// The outcome of a user authentication attempt.
211 | public enum NIOSSHUserAuthenticationOutcome {
    |             `- note: enum 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol
212 |     case success
213 |     case partialSuccess(remainingMethods: NIOSSHAvailableUserAuthenticationMethods)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/shared.swift:84:34: warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
82 |     func nextAuthenticationType(availableMethods: NIOSSHAvailableUserAuthenticationMethods, nextChallengePromise: EventLoopPromise<NIOSSHUserAuthenticationOffer?>) {
83 |         if availableMethods.contains(.password) {
84 |             nextChallengePromise.succeed(.init(username: "foo", serviceName: "ssh-connection", offer: .password(.init(password: self.password))))
   |                                  `- warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
85 |         } else {
86 |             nextChallengePromise.succeed(nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:133:15: note: struct 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol
131 | /// A specific offer of user authentication. This type is the one used on the client side. The
132 | /// associated server side type is `NIOSSHUserAuthenticationRequest`.
133 | public struct NIOSSHUserAuthenticationOffer {
    |               `- note: struct 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol
134 |     public var username: String
135 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/shared.swift:86:34: warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
84 |             nextChallengePromise.succeed(.init(username: "foo", serviceName: "ssh-connection", offer: .password(.init(password: self.password))))
85 |         } else {
86 |             nextChallengePromise.succeed(nil)
   |                                  `- warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
87 |         }
88 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:133:15: note: struct 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol
131 | /// A specific offer of user authentication. This type is the one used on the client side. The
132 | /// associated server side type is `NIOSSHUserAuthenticationRequest`.
133 | public struct NIOSSHUserAuthenticationOffer {
    |               `- note: struct 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol
134 |     public var username: String
135 |
[372/397] Compiling NIOSSHPerformanceTester BenchmarkHandshake.swift
[373/397] Compiling NIOSSHPerformanceTester Benchmark.swift
[374/397] Compiling NIOSSHPerformanceTester BenchmarkLinearThroughput.swift
[375/397] Emitting module NIOSSHPerformanceTester
[376/397] Compiling NIOSSHClient PortForwardingServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHClient/PortForwardingServer.swift:41:43: warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
39 |         ServerBootstrap(group: self.serverLoop, childGroup: self.group)
40 |             .serverChannelOption(ChannelOptions.socketOption(.so_reuseaddr), value: 1)
41 |             .childChannelInitializer(self.forwardingChannelConstructor)
   |                                           `- warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
42 |             .bind(host: String(self.bindHost), port: self.bindPort)
43 |             .flatMap {
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHClient/PortForwardingServer.swift:44:17: warning: capture of 'self' with non-sendable type 'PortForwardingServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | import NIOSSH
17 |
18 | final class PortForwardingServer {
   |             `- note: class 'PortForwardingServer' does not conform to the 'Sendable' protocol
19 |     private var serverChannel: Channel?
20 |     private let serverLoop: EventLoop
   :
42 |             .bind(host: String(self.bindHost), port: self.bindPort)
43 |             .flatMap {
44 |                 self.serverChannel = $0
   |                 `- warning: capture of 'self' with non-sendable type 'PortForwardingServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |                 return $0.closeFuture
46 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHClient/PortForwardingServer.swift:51:32: warning: capture of 'self' with non-sendable type 'PortForwardingServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | import NIOSSH
17 |
18 | final class PortForwardingServer {
   |             `- note: class 'PortForwardingServer' does not conform to the 'Sendable' protocol
19 |     private var serverChannel: Channel?
20 |     private let serverLoop: EventLoop
   :
49 |     func close() -> EventLoopFuture<Void> {
50 |         self.serverLoop.flatSubmit {
51 |             guard let server = self.serverChannel else {
   |                                `- warning: capture of 'self' with non-sendable type 'PortForwardingServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 |                 // The server wasn't created yet, so we can just shut down straight away and let
53 |                 // the OS clean us up.
[377/397] Compiling NIOSSHServer RemotePortForwarding.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/RemotePortForwarding.swift:45:17: warning: capture of 'self' with non-sendable type 'RemotePortForwarder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 | // Please note that, as with the rest of this example, there are important security features missing from
 25 | // this demo.
 26 | final class RemotePortForwarder {
    |             `- note: class 'RemotePortForwarder' does not conform to the 'Sendable' protocol
 27 |     private var serverChannel: Channel?
 28 |
    :
 43 |                 // set up for data I/O.
 44 |                 let promise = loop.makePromise(of: Channel.self)
 45 |                 self.inboundSSHHandler.createChannel(promise, channelType: .forwardedTCPIP(.init(listeningHost: host, listeningPort: childChannel.localAddress!.port!, originatorAddress: childChannel.remoteAddress!))) { sshChildChannel, _ in
    |                 `- warning: capture of 'self' with non-sendable type 'RemotePortForwarder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 46 |                     sshChildChannel.pipeline.addHandlers([DataToBufferCodec(), theirs]).flatMap {
 47 |                         sshChildChannel.setOption(ChannelOptions.allowRemoteHalfClosure, value: true)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/RemotePortForwarding.swift:84:15: warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 82 |             forwarder.beginListening(on: host, port: port, loop: promise.futureResult.eventLoop).map {
 83 |                 GlobalRequest.TCPForwardingResponse(boundPort: $0)
 84 |             }.cascade(to: promise)
    |               `- warning: type 'GlobalRequest.TCPForwardingResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 85 |         case .cancel:
 86 |             guard let forwarder = self.forwarder else {
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/GlobalRequestDelegate.swift:52:19: note: struct 'TCPForwardingResponse' does not conform to the 'Sendable' protocol
 50 |
 51 |     /// The data associated with a successful response to a TCP forwarding request.
 52 |     public struct TCPForwardingResponse: Hashable {
    |                   `- note: struct 'TCPForwardingResponse' does not conform to the 'Sendable' protocol
 53 |         /// If requested to listen on a port, and the port the client requested was 0, this is set to the
 54 |         /// port that was actually bound. Otherwise is nil.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/RemotePortForwarding.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSH'
 18 | import NIOFoundationCompat
 19 | import NIOPosix
 20 | import NIOSSH
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSH'
 21 |
 22 | // Remote port forwarding is a fun feature of SSH where a client can ask an SSH server to listen on a local
[378/397] Compiling NIOSSHServer DataToBufferCodec.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/DataToBufferCodec.swift:30:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |     func handlerAdded(context: ChannelHandlerContext) {
29 |         context.channel.setOption(ChannelOptions.allowRemoteHalfClosure, value: true).whenFailure { error in
30 |             context.fireErrorCaught(error)
   |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 |         }
32 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
[379/397] Emitting module NIOSSHServer
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/main.swift:79:84: warning: main actor-isolated let 'hostKey' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
73 |
74 | // We need a host key. For now, generate it dynamically.
75 | let hostKey = NIOSSHPrivateKey(ed25519Key: .init())
   |     `- note: let declared here
76 |
77 | let bootstrap = ServerBootstrap(group: group)
78 |     .childChannelInitializer { channel in
79 |         channel.pipeline.addHandlers([NIOSSHHandler(role: .server(.init(hostKeys: [hostKey], userAuthDelegate: HardcodedPasswordDelegate(), globalRequestDelegate: RemotePortForwarderGlobalRequestDelegate())), allocator: channel.allocator, inboundChildChannelInitializer: sshChildChannelInitializer(_:_:)), ErrorHandler()])
   |                                                                                    `- warning: main actor-isolated let 'hostKey' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 |     }
81 |     .serverChannelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/ExecHandler.swift:42:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 40 |     func handlerAdded(context: ChannelHandlerContext) {
 41 |         context.channel.setOption(ChannelOptions.allowRemoteHalfClosure, value: true).whenFailure { error in
 42 |             context.fireErrorCaught(error)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 43 |         }
 44 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 |     // visible for ChannelPipeline to modify
1509 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/ExecHandler.swift:123:23: warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)'
121 |                     .channelInitializer { pipeChannel in
122 |                         pipeChannel.pipeline.addHandler(theirs)
123 |                     }.withPipes(inputDescriptor: outPipe.fileHandleForReading.fileDescriptor, outputDescriptor: inPipe.fileHandleForWriting.fileDescriptor).wait()
    |                       |- warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)'
    |                       `- note: use 'takingOwnershipOfDescriptors(input:output:)' instead
124 |
125 |                 // Ok, great, we've sorted stdout and stdin. For stderr we need a different strategy: we just park a thread for this.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/ExecHandler.swift:98:44: warning: capture of 'event' with non-sendable type 'SSHChannelRequestEvent.ExecRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 96 |                 let process = Process()
 97 |                 process.executableURL = executable
 98 |                 process.arguments = ["-c", event.command]
    |                                            `- warning: capture of 'event' with non-sendable type 'SSHChannelRequestEvent.ExecRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                 process.terminationHandler = { process in
100 |                     // The process terminated. Check its return code, fire it, and then move on.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Child Channels/ChildChannelUserEvents.swift:126:19: note: struct 'ExecRequest' does not conform to the 'Sendable' protocol
124 |
125 |     /// A request for this session to exec a command.
126 |     public struct ExecRequest: Hashable {
    |                   `- note: struct 'ExecRequest' does not conform to the 'Sendable' protocol
127 |         /// The command to exec.
128 |         public var command: String
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/ExecHandler.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSH'
 18 | import NIOFoundationCompat
 19 | import NIOPosix
 20 | import NIOSSH
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSH'
 21 |
 22 | enum SSHServerError: Error {
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/ExecHandler.swift:114:39: warning: capture of 'self' with non-sendable type 'ExampleExecHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 | }
 29 |
 30 | final class ExampleExecHandler: ChannelDuplexHandler {
    |             `- note: class 'ExampleExecHandler' does not conform to the 'Sendable' protocol
 31 |     typealias InboundIn = SSHChannelData
 32 |     typealias InboundOut = ByteBuffer
    :
112 |                 process.standardOutput = outPipe
113 |                 process.standardError = errPipe
114 |                 process.environment = self.environment
    |                                       `- warning: capture of 'self' with non-sendable type 'ExampleExecHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 |
116 |                 let (ours, theirs) = GlueHandler.matchedPair()
BUILD FAILURE 6.0 macosSpm