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