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 citadel2 (01e03b), with Swift 6.0 for Linux on 4 Nov 2024 08:03:36 UTC.

Build Command

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

Build Log

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: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
134 |     public var username: String
135 |
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:25:23: warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | /// The user authentication modes available at this point in time.
 17 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
    |               `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
 18 |     public var rawValue: UInt8
 19 |
    :
 23 |
 24 |     public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
 25 |     public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
    |                       |- warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'password' 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
 26 |     public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
 27 |
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:24:23: warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | /// The user authentication modes available at this point in time.
 17 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
    |               `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
 18 |     public var rawValue: UInt8
 19 |
    :
 22 |     }
 23 |
 24 |     public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
    |                       |- warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'publicKey' 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
 25 |     public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
 26 |     public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:26:23: warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | /// The user authentication modes available at this point in time.
 17 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
    |               `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
 18 |     public var rawValue: UInt8
 19 |
    :
 24 |     public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
 25 |     public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
 26 |     public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
    |                       |- warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'hostBased' 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
 27 |
 28 |     public static let all: NIOSSHAvailableUserAuthenticationMethods = [.publicKey, .password, .hostBased]
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:414:34: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
412 |             guard key.isValidSignature(signature, for: dataToSign) else {
413 |                 // Whoops, signature not valid.
414 |                 return self.loop.makeSucceededFuture(.failure(.init(authentications: supportedMethods.strings, partialSuccess: false)))
    |                                  `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
415 |             }
416 |
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:217:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
215 | }
216 |
217 | enum NIOSSHUserAuthenticationResponseMessage {
    |      `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
218 |     case success
219 |     case failure(SSHMessage.UserAuthFailureMessage)
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:429:30: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
427 |             // This is a weird wrinkle in public key auth: it's a request to ask whether a given key is valid, but not to validate that key itself.
428 |             // For now we do a shortcut: we just say that all keys are acceptable, rather than ask the delegate.
429 |             return self.loop.makeSucceededFuture(.publicKeyOK(.init(key: key)))
    |                              `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
430 |
431 |         case .publicKey(.unknown):
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:217:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
215 | }
216 |
217 | enum NIOSSHUserAuthenticationResponseMessage {
    |      `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
218 |     case success
219 |     case failure(SSHMessage.UserAuthFailureMessage)
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:433:30: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
431 |         case .publicKey(.unknown):
432 |             // We don't known the algorithm, the auth attempt has failed.
433 |             return self.loop.makeSucceededFuture(.failure(.init(authentications: delegate.supportedAuthenticationMethods.strings, partialSuccess: false)))
    |                              `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
434 |
435 |         case .none:
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:217:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
215 | }
216 |
217 | enum NIOSSHUserAuthenticationResponseMessage {
    |      `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
218 |     case success
219 |     case failure(SSHMessage.UserAuthFailureMessage)
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:404:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a `@Sendable` closure; this is an error in the Swift 6 language mode
402 |
403 |             return promise.futureResult.map { outcome in
404 |                 .init(outcome, supportedMethods: supportedMethods)
    |                                                  `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a `@Sendable` closure; this is an error in the Swift 6 language mode
405 |             }
406 |
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:17:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
 15 |
 16 | /// The user authentication modes available at this point in time.
 17 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
    |               `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
 18 |     public var rawValue: UInt8
 19 |
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:423:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a `@Sendable` closure; this is an error in the Swift 6 language mode
421 |
422 |             return promise.futureResult.map { outcome in
423 |                 .init(outcome, supportedMethods: supportedMethods)
    |                                                  `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a `@Sendable` closure; this is an error in the Swift 6 language mode
424 |             }
425 |
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:17:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
 15 |
 16 | /// The user authentication modes available at this point in time.
 17 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
    |               `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
 18 |     public var rawValue: UInt8
 19 |
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:442:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a `@Sendable` closure; this is an error in the Swift 6 language mode
440 |
441 |             return promise.futureResult.map { outcome in
442 |                 .init(outcome, supportedMethods: supportedMethods)
    |                                                  `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a `@Sendable` closure; this is an error in the Swift 6 language mode
443 |             }
444 |         }
/host/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:17:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
 15 |
 16 | /// The user authentication modes available at this point in time.
 17 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
    |               `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
 18 |     public var rawValue: UInt8
 19 |
[777/818] Compiling NIOSSH GlobalRequestDelegate.swift
/host/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.
/host/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 | }
[778/818] Compiling NIOSSH ECDHCompatibleKey.swift
/host/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.
/host/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 | }
[779/818] Compiling NIOSSH EllipticCurveKeyExchange.swift
/host/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.
/host/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 | }
[780/818] Compiling NIOSSH SSHKeyExchangeResult.swift
/host/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.
/host/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 | }
[781/818] Compiling NIOSSH SSHKeyExchangeStateMachine.swift
/host/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.
/host/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 | }
[782/818] Compiling NIOSSH ClientServerAuthenticationDelegate.swift
/host/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.
/host/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 | }
[783/818] Compiling NIOSSH CustomKeys.swift
/host/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.
/host/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 | }
[784/818] Compiling NIOSSH NIOSSHCertifiedPublicKey.swift
/host/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.
/host/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 | }
[785/818] Compiling NIOSSH SSHEncryptablePacketPayload.swift
[786/818] Compiling NIOSSH SSHMessages.swift
[787/818] Compiling NIOSSH SSHPacketParser.swift
[788/818] Compiling NIOSSH SSHPacketSerializer.swift
[789/818] Compiling NIOSSH SSHServerConfiguration.swift
[790/818] Compiling NIOSSH SSHTerminalModes.swift
[791/818] Compiling NIOSSH AESGCM.swift
[792/818] Compiling NIOSSH SSHTransportProtection.swift
[793/818] Compiling NIOSSH NIOSSHPrivateKey.swift
/host/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()
/host/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()
/host/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]()
/host/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()
/host/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()
/host/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] = []
/host/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()
/host/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()
/host/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] = []
/host/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 | }
/host/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 | }
/host/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 |
/host/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)
/host/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.
/host/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()
/host/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()
/host/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>
/host/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:
/host/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:
/host/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>
/host/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)
[794/818] Compiling NIOSSH NIOSSHPublicKey.swift
/host/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()
/host/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()
/host/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]()
/host/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()
/host/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()
/host/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] = []
/host/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()
/host/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()
/host/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] = []
/host/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 | }
/host/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 | }
/host/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 |
/host/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)
/host/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.
/host/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()
/host/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()
/host/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>
/host/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:
/host/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:
/host/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>
/host/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)
[795/818] Compiling NIOSSH NIOSSHSignature.swift
/host/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()
/host/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()
/host/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]()
/host/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()
/host/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()
/host/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] = []
/host/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()
/host/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()
/host/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] = []
/host/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 | }
/host/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 | }
/host/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 |
/host/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)
/host/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.
/host/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()
/host/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()
/host/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>
/host/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:
/host/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:
/host/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>
/host/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)
[796/818] Compiling NIOSSH NIOSSHError.swift
/host/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()
/host/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()
/host/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]()
/host/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()
/host/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()
/host/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] = []
/host/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()
/host/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()
/host/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] = []
/host/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 | }
/host/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 | }
/host/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 |
/host/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)
/host/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.
/host/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()
/host/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()
/host/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>
/host/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:
/host/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:
/host/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>
/host/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)
[797/818] Compiling NIOSSH NIOSSHHandler.swift
/host/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()
/host/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()
/host/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]()
/host/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()
/host/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()
/host/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] = []
/host/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()
/host/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()
/host/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] = []
/host/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 | }
/host/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 | }
/host/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 |
/host/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)
/host/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.
/host/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()
/host/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()
/host/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>
/host/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:
/host/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:
/host/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>
/host/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)
[798/818] Compiling NIOSSH NIOSSHSendable.swift
/host/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()
/host/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()
/host/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]()
/host/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()
/host/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()
/host/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] = []
/host/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()
/host/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()
/host/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] = []
/host/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 | }
/host/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 | }
/host/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 |
/host/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)
/host/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.
/host/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()
/host/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()
/host/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>
/host/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:
/host/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:
/host/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>
/host/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)
[799/818] Compiling NIOSSH Role.swift
/host/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()
/host/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()
/host/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]()
/host/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()
/host/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()
/host/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] = []
/host/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()
/host/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()
/host/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] = []
/host/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 | }
/host/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 | }
/host/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 |
/host/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)
/host/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.
/host/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()
/host/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()
/host/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>
/host/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:
/host/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:
/host/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>
/host/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)
[800/818] Compiling NIOSSH SSHClientConfiguration.swift
/host/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()
/host/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()
/host/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]()
/host/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()
/host/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()
/host/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] = []
/host/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()
/host/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()
/host/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] = []
/host/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 | }
/host/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 | }
/host/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 |
/host/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)
/host/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.
/host/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()
/host/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()
/host/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>
/host/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:
/host/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:
/host/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>
/host/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)
[801/818] Compiling NIOSSH SendsKeyExchangeMessages.swift
[802/818] Compiling NIOSSH SendsUserAuthMessages.swift
[803/818] Compiling NIOSSH SSHConnectionStateMachine.swift
[804/818] Compiling NIOSSH ActiveState.swift
[805/818] Compiling NIOSSH IdleState.swift
[806/818] Compiling NIOSSH KeyExchangeState.swift
[807/818] Compiling NIOSSH ReceivedKexInitWhenActiveState.swift
[808/818] Compiling NIOSSH ReceivedNewKeysState.swift
[809/819] Wrapping AST for NIOSSH for debugging
[811/838] Emitting module NIOSSHPerformanceTester
[812/838] Compiling NIOSSHPerformanceTester BenchmarkLinearThroughput.swift
[813/838] Compiling NIOSSHPerformanceTester Benchmark.swift
[814/838] Compiling NIOSSHPerformanceTester BenchmarkHandshake.swift
[815/838] Compiling NIOSSHPerformanceTester main.swift
/host/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), " })
[816/838] Compiling NIOSSHPerformanceTester shared.swift
/host/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 |         }
/host/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)
/host/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 {
/host/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 | }
/host/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)
/host/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)
/host/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 |
/host/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 |     }
/host/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 |
/host/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)
/host/spi-builder-workspace/Sources/NIOSSHServer/main.swift:40:29: warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
38 |     func requestReceived(request: NIOSSHUserAuthenticationRequest, responsePromise: EventLoopPromise<NIOSSHUserAuthenticationOutcome>) {
39 |         guard request.username == "nio", case .password(let passwordRequest) = request.request else {
40 |             responsePromise.succeed(.failure)
   |                             `- warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 |             return
42 |         }
/host/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)
/host/spi-builder-workspace/Sources/NIOSSHServer/main.swift:19:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSH'
17 | import NIOCore
18 | import NIOPosix
19 | import NIOSSH
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSH'
20 |
21 | // This file contains an example NIO SSH server. It's not intended for production use, it's not secure,
/host/spi-builder-workspace/Sources/NIOSSHServer/main.swift:45:29: warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 |
44 |         if passwordRequest.password == "gottagofast" {
45 |             responsePromise.succeed(.success)
   |                             `- warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 |         } else {
47 |             responsePromise.succeed(.failure)
/host/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)
/host/spi-builder-workspace/Sources/NIOSSHServer/main.swift:47:29: warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 |             responsePromise.succeed(.success)
46 |         } else {
47 |             responsePromise.succeed(.failure)
   |                             `- warning: type 'NIOSSHUserAuthenticationOutcome' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 |         }
49 |     }
/host/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)
BUILD FAILURE 6.0 linux