Build Information
Successful build of swift-nio-ssh, reference citadel2 (c997b6), with Swift 6.2 for macOS (SPM) on 16 Sep 2025 16:59:30 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
487 |
488 | return promise.futureResult.map { outcome in
489 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
490 | }
491 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[352/391] Compiling NIOSSH UserAuthSignablePayload.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/SimplePasswordDelegate.swift:31:34: warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | // We need to nil out our copy because any future calls must return nil
30 | self.authRequest = nil
31 | nextChallengePromise.succeed(authRequest)
| `- warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
32 | } else {
33 | nextChallengePromise.succeed(nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:149:15: note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
147 | /// A specific offer of user authentication. This type is the one used on the client side. The
148 | /// associated server side type is `NIOSSHUserAuthenticationRequest`.
149 | public struct NIOSSHUserAuthenticationOffer {
| `- note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
150 | public var username: String
151 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/SimplePasswordDelegate.swift:33:34: warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
31 | nextChallengePromise.succeed(authRequest)
32 | } else {
33 | nextChallengePromise.succeed(nil)
| `- warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:149:15: note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
147 | /// A specific offer of user authentication. This type is the one used on the client side. The
148 | /// associated server side type is `NIOSSHUserAuthenticationRequest`.
149 | public struct NIOSSHUserAuthenticationOffer {
| `- note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
150 | public var username: String
151 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:28:23: warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
26 | }
27 |
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
| |- warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'publicKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:29:23: warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
27 |
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
| |- warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'password' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
31 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:30:23: warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
| |- warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'hostBased' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public static let all: NIOSSHAvailableUserAuthenticationMethods = [.publicKey, .password, .hostBased]
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:32:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
31 |
32 | public static let all: NIOSSHAvailableUserAuthenticationMethods = [.publicKey, .password, .hostBased]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:416:34: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
414 | guard key.isValidSignature(signature, for: dataToSign) else {
415 | // Whoops, signature not valid.
416 | return self.loop.makeSucceededFuture(.failure(.init(authentications: supportedMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:437:38: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
435 | } catch {
436 | // Certificate validation failed
437 | return self.loop.makeSucceededFuture(.failure(.init(authentications: supportedMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
438 | }
439 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:469:38: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
467 | )
468 | // Certificate is valid
469 | return self.loop.makeSucceededFuture(.publicKeyOK(.init(key: key)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
470 | } catch {
471 | // Certificate validation failed, reject it
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:472:38: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
470 | } catch {
471 | // Certificate validation failed, reject it
472 | return self.loop.makeSucceededFuture(.failure(.init(authentications: delegate.supportedAuthenticationMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
473 | }
474 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:476:30: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
474 | }
475 | // For now we do a shortcut: we just say that all non-certificate keys are acceptable, rather than ask the delegate.
476 | return self.loop.makeSucceededFuture(.publicKeyOK(.init(key: key)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
477 |
478 | case .publicKey(.unknown):
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:480:30: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
478 | case .publicKey(.unknown):
479 | // We don't known the algorithm, the auth attempt has failed.
480 | return self.loop.makeSucceededFuture(.failure(.init(authentications: delegate.supportedAuthenticationMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
481 |
482 | case .none:
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:426:25: warning: initialization of immutable value 'criticalOptions' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
424 | // This is a certificate and we have trusted CAs configured
425 | do {
426 | let criticalOptions = try certifiedKey.validate(
| `- warning: initialization of immutable value 'criticalOptions' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
427 | principal: request.username,
428 | type: .user,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:406:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
404 |
405 | return promise.futureResult.map { outcome in
406 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
407 | }
408 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:451:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
449 |
450 | return promise.futureResult.map { outcome in
451 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
452 | }
453 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:489:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
487 |
488 | return promise.futureResult.map { outcome in
489 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
490 | }
491 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[353/391] Compiling NIOSSH UserAuthenticationMethod.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/SimplePasswordDelegate.swift:31:34: warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | // We need to nil out our copy because any future calls must return nil
30 | self.authRequest = nil
31 | nextChallengePromise.succeed(authRequest)
| `- warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
32 | } else {
33 | nextChallengePromise.succeed(nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:149:15: note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
147 | /// A specific offer of user authentication. This type is the one used on the client side. The
148 | /// associated server side type is `NIOSSHUserAuthenticationRequest`.
149 | public struct NIOSSHUserAuthenticationOffer {
| `- note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
150 | public var username: String
151 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/SimplePasswordDelegate.swift:33:34: warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
31 | nextChallengePromise.succeed(authRequest)
32 | } else {
33 | nextChallengePromise.succeed(nil)
| `- warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:149:15: note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
147 | /// A specific offer of user authentication. This type is the one used on the client side. The
148 | /// associated server side type is `NIOSSHUserAuthenticationRequest`.
149 | public struct NIOSSHUserAuthenticationOffer {
| `- note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
150 | public var username: String
151 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:28:23: warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
26 | }
27 |
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
| |- warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'publicKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:29:23: warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
27 |
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
| |- warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'password' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
31 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:30:23: warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
| |- warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'hostBased' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public static let all: NIOSSHAvailableUserAuthenticationMethods = [.publicKey, .password, .hostBased]
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:32:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
31 |
32 | public static let all: NIOSSHAvailableUserAuthenticationMethods = [.publicKey, .password, .hostBased]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:416:34: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
414 | guard key.isValidSignature(signature, for: dataToSign) else {
415 | // Whoops, signature not valid.
416 | return self.loop.makeSucceededFuture(.failure(.init(authentications: supportedMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:437:38: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
435 | } catch {
436 | // Certificate validation failed
437 | return self.loop.makeSucceededFuture(.failure(.init(authentications: supportedMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
438 | }
439 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:469:38: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
467 | )
468 | // Certificate is valid
469 | return self.loop.makeSucceededFuture(.publicKeyOK(.init(key: key)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
470 | } catch {
471 | // Certificate validation failed, reject it
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:472:38: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
470 | } catch {
471 | // Certificate validation failed, reject it
472 | return self.loop.makeSucceededFuture(.failure(.init(authentications: delegate.supportedAuthenticationMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
473 | }
474 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:476:30: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
474 | }
475 | // For now we do a shortcut: we just say that all non-certificate keys are acceptable, rather than ask the delegate.
476 | return self.loop.makeSucceededFuture(.publicKeyOK(.init(key: key)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
477 |
478 | case .publicKey(.unknown):
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:480:30: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
478 | case .publicKey(.unknown):
479 | // We don't known the algorithm, the auth attempt has failed.
480 | return self.loop.makeSucceededFuture(.failure(.init(authentications: delegate.supportedAuthenticationMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
481 |
482 | case .none:
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:426:25: warning: initialization of immutable value 'criticalOptions' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
424 | // This is a certificate and we have trusted CAs configured
425 | do {
426 | let criticalOptions = try certifiedKey.validate(
| `- warning: initialization of immutable value 'criticalOptions' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
427 | principal: request.username,
428 | type: .user,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:406:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
404 |
405 | return promise.futureResult.map { outcome in
406 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
407 | }
408 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:451:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
449 |
450 | return promise.futureResult.map { outcome in
451 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
452 | }
453 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:489:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
487 |
488 | return promise.futureResult.map { outcome in
489 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
490 | }
491 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[354/391] Compiling NIOSSH UserAuthenticationStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/SimplePasswordDelegate.swift:31:34: warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | // We need to nil out our copy because any future calls must return nil
30 | self.authRequest = nil
31 | nextChallengePromise.succeed(authRequest)
| `- warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
32 | } else {
33 | nextChallengePromise.succeed(nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:149:15: note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
147 | /// A specific offer of user authentication. This type is the one used on the client side. The
148 | /// associated server side type is `NIOSSHUserAuthenticationRequest`.
149 | public struct NIOSSHUserAuthenticationOffer {
| `- note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
150 | public var username: String
151 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/SimplePasswordDelegate.swift:33:34: warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
31 | nextChallengePromise.succeed(authRequest)
32 | } else {
33 | nextChallengePromise.succeed(nil)
| `- warning: type 'NIOSSHUserAuthenticationOffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:149:15: note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
147 | /// A specific offer of user authentication. This type is the one used on the client side. The
148 | /// associated server side type is `NIOSSHUserAuthenticationRequest`.
149 | public struct NIOSSHUserAuthenticationOffer {
| `- note: consider making struct 'NIOSSHUserAuthenticationOffer' conform to the 'Sendable' protocol
150 | public var username: String
151 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:28:23: warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
26 | }
27 |
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
| |- warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'publicKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:29:23: warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
27 |
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
| |- warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'password' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
31 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:30:23: warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
| |- warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'hostBased' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public static let all: NIOSSHAvailableUserAuthenticationMethods = [.publicKey, .password, .hostBased]
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:32:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
31 |
32 | public static let all: NIOSSHAvailableUserAuthenticationMethods = [.publicKey, .password, .hostBased]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:416:34: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
414 | guard key.isValidSignature(signature, for: dataToSign) else {
415 | // Whoops, signature not valid.
416 | return self.loop.makeSucceededFuture(.failure(.init(authentications: supportedMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:437:38: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
435 | } catch {
436 | // Certificate validation failed
437 | return self.loop.makeSucceededFuture(.failure(.init(authentications: supportedMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
438 | }
439 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:469:38: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
467 | )
468 | // Certificate is valid
469 | return self.loop.makeSucceededFuture(.publicKeyOK(.init(key: key)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
470 | } catch {
471 | // Certificate validation failed, reject it
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:472:38: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
470 | } catch {
471 | // Certificate validation failed, reject it
472 | return self.loop.makeSucceededFuture(.failure(.init(authentications: delegate.supportedAuthenticationMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
473 | }
474 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:476:30: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
474 | }
475 | // For now we do a shortcut: we just say that all non-certificate keys are acceptable, rather than ask the delegate.
476 | return self.loop.makeSucceededFuture(.publicKeyOK(.init(key: key)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
477 |
478 | case .publicKey(.unknown):
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:480:30: warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
478 | case .publicKey(.unknown):
479 | // We don't known the algorithm, the auth attempt has failed.
480 | return self.loop.makeSucceededFuture(.failure(.init(authentications: delegate.supportedAuthenticationMethods.strings, partialSuccess: false)))
| `- warning: type 'NIOSSHUserAuthenticationResponseMessage' does not conform to the 'Sendable' protocol
481 |
482 | case .none:
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:235:6: note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
233 | }
234 |
235 | enum NIOSSHUserAuthenticationResponseMessage {
| `- note: consider making enum 'NIOSSHUserAuthenticationResponseMessage' conform to the 'Sendable' protocol
236 | case success
237 | case failure(SSHMessage.UserAuthFailureMessage)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:426:25: warning: initialization of immutable value 'criticalOptions' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
424 | // This is a certificate and we have trusted CAs configured
425 | do {
426 | let criticalOptions = try certifiedKey.validate(
| `- warning: initialization of immutable value 'criticalOptions' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
427 | principal: request.username,
428 | type: .user,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:406:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
404 |
405 | return promise.futureResult.map { outcome in
406 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
407 | }
408 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:451:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
449 |
450 | return promise.futureResult.map { outcome in
451 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
452 | }
453 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationStateMachine.swift:489:50: warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
487 |
488 | return promise.futureResult.map { outcome in
489 | .init(outcome, supportedMethods: supportedMethods)
| `- warning: capture of 'supportedMethods' with non-sendable type 'NIOSSHAvailableUserAuthenticationMethods' in a '@Sendable' closure [#SendableClosureCaptures]
490 | }
491 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:21:15: note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[355/391] Emitting module NIOSSH
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Child Channels/ChildChannelOptions.swift:71:5: warning: 'public' modifier is redundant for struct declared in a public extension
69 |
70 | /// `UsernameOption` allows users to query the authenticated username of the channel.
71 | public struct UsernameOption: ChannelOption {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
72 | public typealias Value = String?
73 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:72:16: warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
70 | var username: String? { attributes.username }
71 |
72 | static let bundledTransportProtectionSchemes: [NIOSSHTransportProtection.Type] = [
| |- warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledTransportProtectionSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | AES256GCMOpenSSHTransportProtection.self, AES128GCMOpenSSHTransportProtection.self,
74 | ]
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Key Exchange/SSHKeyExchangeStateMachine.swift:545:16: warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
543 | extension SSHKeyExchangeStateMachine {
544 | // For now this is a static list.
545 | static let bundledKeyExchangeImplementations: [NIOSSHKeyExchangeAlgorithmProtocol.Type] = [
| |- warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledKeyExchangeImplementations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
546 | EllipticCurveKeyExchange<P384.KeyAgreement.PrivateKey>.self,
547 | EllipticCurveKeyExchange<P256.KeyAgreement.PrivateKey>.self,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:418: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
416 |
417 | /// A certificate valid for identifying a user.
418 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'user' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |
420 | /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:421: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
419 |
420 | /// A certificate valid for identifying a host.
421 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:286: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 [#MutableGlobalVariable]
284 |
285 | private enum _CustomAlgorithms {
286 | static var transportProtectionSchemesLock = NIOLock()
| |- 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 [#MutableGlobalVariable]
| |- note: convert 'transportProtectionSchemesLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'transportProtectionSchemesLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
288 | static var keyExchangeAlgorithmsLock = NIOLock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:287: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 [#MutableGlobalVariable]
285 | private enum _CustomAlgorithms {
286 | static var transportProtectionSchemesLock = NIOLock()
287 | 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 [#MutableGlobalVariable]
| |- note: convert 'transportProtectionSchemes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'transportProtectionSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | static var keyExchangeAlgorithmsLock = NIOLock()
289 | static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:288: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 [#MutableGlobalVariable]
286 | static var transportProtectionSchemesLock = NIOLock()
287 | static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
288 | static var keyExchangeAlgorithmsLock = NIOLock()
| |- 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 [#MutableGlobalVariable]
| |- note: convert 'keyExchangeAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'keyExchangeAlgorithmsLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 | static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
290 | static var publicKeyAlgorithmsLock = NIOLock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:289: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 [#MutableGlobalVariable]
287 | static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
288 | static var keyExchangeAlgorithmsLock = NIOLock()
289 | 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 [#MutableGlobalVariable]
| |- note: convert 'keyExchangeAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'keyExchangeAlgorithms' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 | static var publicKeyAlgorithmsLock = NIOLock()
291 | static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:290: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 [#MutableGlobalVariable]
288 | static var keyExchangeAlgorithmsLock = NIOLock()
289 | static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
290 | static var publicKeyAlgorithmsLock = NIOLock()
| |- 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 [#MutableGlobalVariable]
| |- note: convert 'publicKeyAlgorithmsLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'publicKeyAlgorithmsLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
291 | static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
292 | static var signaturesLock = NIOLock()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:291: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 [#MutableGlobalVariable]
289 | static var keyExchangeAlgorithms = [NIOSSHKeyExchangeAlgorithmProtocol.Type]()
290 | static var publicKeyAlgorithmsLock = NIOLock()
291 | 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 [#MutableGlobalVariable]
| |- note: convert 'publicKeyAlgorithms' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'publicKeyAlgorithms' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
292 | static var signaturesLock = NIOLock()
293 | static var signatures: [NIOSSHSignatureProtocol.Type] = []
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:292: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 [#MutableGlobalVariable]
290 | static var publicKeyAlgorithmsLock = NIOLock()
291 | static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
292 | static var signaturesLock = NIOLock()
| |- 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 [#MutableGlobalVariable]
| |- note: convert 'signaturesLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'signaturesLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
293 | static var signatures: [NIOSSHSignatureProtocol.Type] = []
294 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift:293: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 [#MutableGlobalVariable]
291 | static var publicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] = []
292 | static var signaturesLock = NIOLock()
293 | 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 [#MutableGlobalVariable]
| |- note: convert 'signatures' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'signatures' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
294 | }
295 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:28:23: warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
26 | }
27 |
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
| |- warning: static property 'publicKey' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'publicKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:29:23: warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
27 |
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
| |- warning: static property 'password' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'password' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
31 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:30:23: warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
28 | public static let publicKey: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 0)
29 | public static let password: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 1)
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
| |- warning: static property 'hostBased' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'hostBased' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public static let all: NIOSSHAvailableUserAuthenticationMethods = [.publicKey, .password, .hostBased]
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/User Authentication/UserAuthenticationMethod.swift:32:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
19 | /// not as a separate authentication method. When using certificates, the publicKey
20 | /// method is used with a certified key.
21 | public struct NIOSSHAvailableUserAuthenticationMethods: OptionSet {
| `- note: consider making struct 'NIOSSHAvailableUserAuthenticationMethods' conform to the 'Sendable' protocol
22 | public var rawValue: UInt8
23 |
:
30 | public static let hostBased: NIOSSHAvailableUserAuthenticationMethods = .init(rawValue: 1 << 2)
31 |
32 | public static let all: NIOSSHAvailableUserAuthenticationMethods = [.publicKey, .password, .hostBased]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'NIOSSHAvailableUserAuthenticationMethods' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[356/391] Compiling NIOSSH Role.swift
[357/391] Compiling NIOSSH SSHClientConfiguration.swift
[358/391] Compiling NIOSSH SSHEncryptablePacketPayload.swift
[359/391] Compiling NIOSSH SSHMessages.swift
[360/391] Compiling NIOSSH SSHPacketParser.swift
[361/391] Compiling NIOSSH SSHPacketSerializer.swift
[362/391] Compiling NIOSSH ActiveState.swift
[363/391] Compiling NIOSSH IdleState.swift
[364/391] Compiling NIOSSH KeyExchangeState.swift
[365/391] Compiling NIOSSH ReceivedKexInitWhenActiveState.swift
[366/391] Compiling NIOSSH ReceivedNewKeysState.swift
[367/391] Compiling NIOSSH RekeyingReceivedNewKeysState.swift
[368/391] Compiling NIOSSH RekeyingSentNewKeysState.swift
[369/391] Compiling NIOSSH AcceptsKeyExchangeMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:59:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
57 |
58 | if let future = result {
59 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
60 | } else {
61 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:68:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
66 | to ignore banners.
67 | */
68 | struct UserAuthBanner {
| `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
69 | /**
70 | 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:75:56: warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:155: warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:93:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
91 |
92 | if let future = result {
93 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
94 | } else {
95 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:72:16: warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
70 | var username: String? { attributes.username }
71 |
72 | static let bundledTransportProtectionSchemes: [NIOSSHTransportProtection.Type] = [
| |- warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledTransportProtectionSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | AES256GCMOpenSSHTransportProtection.self, AES128GCMOpenSSHTransportProtection.self,
74 | ]
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[370/391] Compiling NIOSSH AcceptsUserAuthMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:59:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
57 |
58 | if let future = result {
59 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
60 | } else {
61 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:68:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
66 | to ignore banners.
67 | */
68 | struct UserAuthBanner {
| `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
69 | /**
70 | 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:75:56: warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:155: warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:93:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
91 |
92 | if let future = result {
93 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
94 | } else {
95 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:72:16: warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
70 | var username: String? { attributes.username }
71 |
72 | static let bundledTransportProtectionSchemes: [NIOSSHTransportProtection.Type] = [
| |- warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledTransportProtectionSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | AES256GCMOpenSSHTransportProtection.self, AES128GCMOpenSSHTransportProtection.self,
74 | ]
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[371/391] Compiling NIOSSH AcceptsVersionMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:59:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
57 |
58 | if let future = result {
59 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
60 | } else {
61 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:68:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
66 | to ignore banners.
67 | */
68 | struct UserAuthBanner {
| `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
69 | /**
70 | 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:75:56: warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:155: warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:93:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
91 |
92 | if let future = result {
93 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
94 | } else {
95 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:72:16: warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
70 | var username: String? { attributes.username }
71 |
72 | static let bundledTransportProtectionSchemes: [NIOSSHTransportProtection.Type] = [
| |- warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledTransportProtectionSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | AES256GCMOpenSSHTransportProtection.self, AES128GCMOpenSSHTransportProtection.self,
74 | ]
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[372/391] Compiling NIOSSH SendsChannelMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:59:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
57 |
58 | if let future = result {
59 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
60 | } else {
61 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:68:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
66 | to ignore banners.
67 | */
68 | struct UserAuthBanner {
| `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
69 | /**
70 | 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:75:56: warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:155: warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:93:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
91 |
92 | if let future = result {
93 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
94 | } else {
95 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:72:16: warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
70 | var username: String? { attributes.username }
71 |
72 | static let bundledTransportProtectionSchemes: [NIOSSHTransportProtection.Type] = [
| |- warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledTransportProtectionSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | AES256GCMOpenSSHTransportProtection.self, AES128GCMOpenSSHTransportProtection.self,
74 | ]
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[373/391] Compiling NIOSSH SendsKeyExchangeMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:59:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
57 |
58 | if let future = result {
59 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
60 | } else {
61 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:68:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
66 | to ignore banners.
67 | */
68 | struct UserAuthBanner {
| `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
69 | /**
70 | 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:75:56: warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:155: warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:93:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
91 |
92 | if let future = result {
93 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
94 | } else {
95 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:72:16: warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
70 | var username: String? { attributes.username }
71 |
72 | static let bundledTransportProtectionSchemes: [NIOSSHTransportProtection.Type] = [
| |- warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledTransportProtectionSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | AES256GCMOpenSSHTransportProtection.self, AES128GCMOpenSSHTransportProtection.self,
74 | ]
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[374/391] Compiling NIOSSH SendsUserAuthMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:59:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
57 |
58 | if let future = result {
59 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
60 | } else {
61 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:68:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
66 | to ignore banners.
67 | */
68 | struct UserAuthBanner {
| `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
69 | /**
70 | 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:75:56: warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:155: warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:93:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
91 |
92 | if let future = result {
93 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
94 | } else {
95 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:72:16: warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
70 | var username: String? { attributes.username }
71 |
72 | static let bundledTransportProtectionSchemes: [NIOSSHTransportProtection.Type] = [
| |- warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledTransportProtectionSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | AES256GCMOpenSSHTransportProtection.self, AES128GCMOpenSSHTransportProtection.self,
74 | ]
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[375/391] Compiling NIOSSH SSHConnectionStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:59:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
57 |
58 | if let future = result {
59 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
60 | } else {
61 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:97: warning: capture of 'connectionAttributes' with non-sendable type 'SSHConnectionStateMachine.Attributes' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:129: warning: capture of 'message' with non-sendable type 'SSHMessage.UserAuthRequestMessage' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | 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:75:155: warning: capture of 'banner' with non-sendable type 'SSHServerConfiguration.UserAuthBanner?' in a '@Sendable' closure [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | 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 [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/SSHServerConfiguration.swift:68:12: note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
66 | to ignore banners.
67 | */
68 | struct UserAuthBanner {
| `- note: consider making struct 'UserAuthBanner' conform to the 'Sendable' protocol
69 | /**
70 | 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:75:56: warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:75:155: warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
73 |
74 | let connectionAttributes = self.connectionAttributes
75 | return .possibleFutureMessage(future.map { Self.transform($0, connectionAttributes: connectionAttributes, username: message.username, banner: banner) })
| `- warning: reference to captured var 'banner' in concurrently-executing code [#SendableClosureCaptures]
76 | } else {
77 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/Operations/AcceptsUserAuthMessages.swift:93:59: warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
91 |
92 | if let future = result {
93 | return .possibleFutureMessage(future.map(Self.transform(_:)))
| `- warning: converting non-sendable function value to '@Sendable (SSHMessage.UserAuthRequestMessage?) -> SSHMultiMessage?' may introduce data races
94 | } else {
95 | return .noMessage
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Connection State Machine/SSHConnectionStateMachine.swift:72:16: warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
70 | var username: String? { attributes.username }
71 |
72 | static let bundledTransportProtectionSchemes: [NIOSSHTransportProtection.Type] = [
| |- warning: static property 'bundledTransportProtectionSchemes' is not concurrency-safe because non-'Sendable' type '[any NIOSSHTransportProtection.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledTransportProtectionSchemes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | AES256GCMOpenSSHTransportProtection.self, AES128GCMOpenSSHTransportProtection.self,
74 | ]
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[376/391] Compiling NIOSSH ECDHCompatibleKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Key Exchange/SSHKeyExchangeStateMachine.swift:545:16: warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
543 | extension SSHKeyExchangeStateMachine {
544 | // For now this is a static list.
545 | static let bundledKeyExchangeImplementations: [NIOSSHKeyExchangeAlgorithmProtocol.Type] = [
| |- warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledKeyExchangeImplementations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
546 | EllipticCurveKeyExchange<P384.KeyAgreement.PrivateKey>.self,
547 | EllipticCurveKeyExchange<P256.KeyAgreement.PrivateKey>.self,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:418: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
416 |
417 | /// A certificate valid for identifying a user.
418 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'user' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |
420 | /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:421: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
419 |
420 | /// A certificate valid for identifying a host.
421 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | }
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[377/391] Compiling NIOSSH EllipticCurveKeyExchange.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Key Exchange/SSHKeyExchangeStateMachine.swift:545:16: warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
543 | extension SSHKeyExchangeStateMachine {
544 | // For now this is a static list.
545 | static let bundledKeyExchangeImplementations: [NIOSSHKeyExchangeAlgorithmProtocol.Type] = [
| |- warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledKeyExchangeImplementations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
546 | EllipticCurveKeyExchange<P384.KeyAgreement.PrivateKey>.self,
547 | EllipticCurveKeyExchange<P256.KeyAgreement.PrivateKey>.self,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:418: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
416 |
417 | /// A certificate valid for identifying a user.
418 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'user' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |
420 | /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:421: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
419 |
420 | /// A certificate valid for identifying a host.
421 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | }
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[378/391] Compiling NIOSSH SSHKeyExchangeResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Key Exchange/SSHKeyExchangeStateMachine.swift:545:16: warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
543 | extension SSHKeyExchangeStateMachine {
544 | // For now this is a static list.
545 | static let bundledKeyExchangeImplementations: [NIOSSHKeyExchangeAlgorithmProtocol.Type] = [
| |- warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledKeyExchangeImplementations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
546 | EllipticCurveKeyExchange<P384.KeyAgreement.PrivateKey>.self,
547 | EllipticCurveKeyExchange<P256.KeyAgreement.PrivateKey>.self,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:418: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
416 |
417 | /// A certificate valid for identifying a user.
418 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'user' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |
420 | /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:421: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
419 |
420 | /// A certificate valid for identifying a host.
421 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | }
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[379/391] Compiling NIOSSH SSHKeyExchangeStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Key Exchange/SSHKeyExchangeStateMachine.swift:545:16: warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
543 | extension SSHKeyExchangeStateMachine {
544 | // For now this is a static list.
545 | static let bundledKeyExchangeImplementations: [NIOSSHKeyExchangeAlgorithmProtocol.Type] = [
| |- warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledKeyExchangeImplementations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
546 | EllipticCurveKeyExchange<P384.KeyAgreement.PrivateKey>.self,
547 | EllipticCurveKeyExchange<P256.KeyAgreement.PrivateKey>.self,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:418: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
416 |
417 | /// A certificate valid for identifying a user.
418 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'user' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |
420 | /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:421: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
419 |
420 | /// A certificate valid for identifying a host.
421 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | }
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[380/391] Compiling NIOSSH ClientServerAuthenticationDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Key Exchange/SSHKeyExchangeStateMachine.swift:545:16: warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
543 | extension SSHKeyExchangeStateMachine {
544 | // For now this is a static list.
545 | static let bundledKeyExchangeImplementations: [NIOSSHKeyExchangeAlgorithmProtocol.Type] = [
| |- warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledKeyExchangeImplementations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
546 | EllipticCurveKeyExchange<P384.KeyAgreement.PrivateKey>.self,
547 | EllipticCurveKeyExchange<P256.KeyAgreement.PrivateKey>.self,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:418: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
416 |
417 | /// A certificate valid for identifying a user.
418 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'user' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |
420 | /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:421: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
419 |
420 | /// A certificate valid for identifying a host.
421 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | }
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[381/391] Compiling NIOSSH CustomKeys.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Key Exchange/SSHKeyExchangeStateMachine.swift:545:16: warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
543 | extension SSHKeyExchangeStateMachine {
544 | // For now this is a static list.
545 | static let bundledKeyExchangeImplementations: [NIOSSHKeyExchangeAlgorithmProtocol.Type] = [
| |- warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledKeyExchangeImplementations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
546 | EllipticCurveKeyExchange<P384.KeyAgreement.PrivateKey>.self,
547 | EllipticCurveKeyExchange<P256.KeyAgreement.PrivateKey>.self,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:418: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
416 |
417 | /// A certificate valid for identifying a user.
418 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'user' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |
420 | /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:421: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
419 |
420 | /// A certificate valid for identifying a host.
421 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | }
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[382/391] Compiling NIOSSH NIOSSHCertifiedPublicKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Key Exchange/SSHKeyExchangeStateMachine.swift:545:16: warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
543 | extension SSHKeyExchangeStateMachine {
544 | // For now this is a static list.
545 | static let bundledKeyExchangeImplementations: [NIOSSHKeyExchangeAlgorithmProtocol.Type] = [
| |- warning: static property 'bundledKeyExchangeImplementations' is not concurrency-safe because non-'Sendable' type '[any NIOSSHKeyExchangeAlgorithmProtocol.Type]' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'bundledKeyExchangeImplementations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
546 | EllipticCurveKeyExchange<P384.KeyAgreement.PrivateKey>.self,
547 | EllipticCurveKeyExchange<P256.KeyAgreement.PrivateKey>.self,
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:418: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
416 |
417 | /// A certificate valid for identifying a user.
418 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'user' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
419 |
420 | /// A certificate valid for identifying a host.
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/Keys And Signatures/NIOSSHCertifiedPublicKey.swift:421: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 [#MutableGlobalVariable]
408 | /// For extensibility purposes this is not defined as an enumeration, but instead as a `RawRepresentable` type
409 | /// wrapping the base type.
410 | public struct CertificateType: RawRepresentable {
| `- note: consider making struct 'CertificateType' conform to the 'Sendable' protocol
411 | public var rawValue: UInt32
412 |
:
419 |
420 | /// A certificate valid for identifying a host.
421 | 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 [#MutableGlobalVariable]
| |- note: add '@MainActor' to make static property 'host' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
422 | }
423 | }
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[383/410] Compiling NIOSSHClient SimpleCLIParser.swift
[384/410] Compiling NIOSSHPerformanceTester shared.swift
[385/410] Compiling NIOSSHPerformanceTester BenchmarkLinearThroughput.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/BenchmarkLinearThroughput.swift:39:49: warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
37 | let clientHandler = NIOSSHHandler(role: self.clientRole, allocator: self.b2b.client.allocator, inboundChildChannelInitializer: nil)
38 |
39 | try self.b2b.client.pipeline.addHandler(clientHandler).wait()
| `- warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
40 | try self.b2b.server.pipeline.addHandler(NIOSSHHandler(role: self.serverRole, allocator: self.b2b.server.allocator, inboundChildChannelInitializer: nil)).wait()
41 | try self.b2b.interactInMemory()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:81:1: note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
79 |
80 | @available(*, unavailable)
81 | extension NIOSSHHandler: Sendable {}
| `- note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
82 |
83 | extension NIOSSHHandler {
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/BenchmarkLinearThroughput.swift:40:49: warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
38 |
39 | try self.b2b.client.pipeline.addHandler(clientHandler).wait()
40 | try self.b2b.server.pipeline.addHandler(NIOSSHHandler(role: self.serverRole, allocator: self.b2b.server.allocator, inboundChildChannelInitializer: nil)).wait()
| `- warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
41 | try self.b2b.interactInMemory()
42 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:81:1: note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
79 |
80 | @available(*, unavailable)
81 | extension NIOSSHHandler: Sendable {}
| `- note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
82 |
83 | extension NIOSSHHandler {
[386/410] Compiling NIOSSHPerformanceTester Benchmark.swift
[387/410] Compiling NIOSSHPerformanceTester BenchmarkHandshake.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/BenchmarkHandshake.swift:38:48: warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
36 | b2b.server.connect(to: try .init(unixDomainSocketPath: "/foo"), promise: nil)
37 |
38 | try b2b.client.pipeline.addHandler(NIOSSHHandler(role: self.clientRole, allocator: b2b.client.allocator, inboundChildChannelInitializer: nil)).wait()
| `- warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
39 | try b2b.server.pipeline.addHandler(NIOSSHHandler(role: self.serverRole, allocator: b2b.server.allocator, inboundChildChannelInitializer: nil)).wait()
40 | try b2b.interactInMemory()
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:81:1: note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
79 |
80 | @available(*, unavailable)
81 | extension NIOSSHHandler: Sendable {}
| `- note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
82 |
83 | extension NIOSSHHandler {
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHPerformanceTester/BenchmarkHandshake.swift:39:48: warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
37 |
38 | try b2b.client.pipeline.addHandler(NIOSSHHandler(role: self.clientRole, allocator: b2b.client.allocator, inboundChildChannelInitializer: nil)).wait()
39 | try b2b.server.pipeline.addHandler(NIOSSHHandler(role: self.serverRole, allocator: b2b.server.allocator, inboundChildChannelInitializer: nil)).wait()
| `- warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
40 | try b2b.interactInMemory()
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:81:1: note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
79 |
80 | @available(*, unavailable)
81 | extension NIOSSHHandler: Sendable {}
| `- note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
82 |
83 | extension NIOSSHHandler {
[388/410] Emitting module NIOSSHPerformanceTester
[389/410] Compiling NIOSSHPerformanceTester main.swift
[390/410] Emitting module NIOSSHClient
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHClient/main.swift:52:39: warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
50 | let bootstrap = ClientBootstrap(group: group)
51 | .channelInitializer { channel in
52 | channel.pipeline.addHandlers([NIOSSHHandler(role: .client(.init(userAuthDelegate: InteractivePasswordPromptDelegate(username: parseResult.user, password: parseResult.password), serverAuthDelegate: AcceptAllHostKeysDelegate())), allocator: channel.allocator, inboundChildChannelInitializer: nil), ErrorHandler()])
| `- warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
53 | }
54 | .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:81:1: note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
79 |
80 | @available(*, unavailable)
81 | extension NIOSSHHandler: Sendable {}
| `- note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
82 |
83 | extension NIOSSHHandler {
[390/410] Write Objects.LinkFileList
[392/410] Compiling NIOSSHServer main.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/main.swift:79:39: warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
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: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; 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/NIOSSH/NIOSSHHandler.swift:81:1: note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
79 |
80 | @available(*, unavailable)
81 | extension NIOSSHHandler: Sendable {}
| `- note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
82 |
83 | extension NIOSSHHandler {
[393/410] Compiling NIOSSHServer RemotePortForwarding.swift
[394/410] Compiling NIOSSHClient PortForwardingServer.swift
[395/410] Compiling NIOSSHClient GlueHandler.swift
[396/410] Compiling NIOSSHClient ExecHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHClient/ExecHandler.swift:51:19: warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)' [#DeprecatedDeclaration]
49 | bootstrap.channelOption(ChannelOptions.allowRemoteHalfClosure, value: true).channelInitializer { channel in
50 | channel.pipeline.addHandler(theirs)
51 | }.withPipes(inputDescriptor: 0, outputDescriptor: 1).whenComplete { result in
| |- warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)' [#DeprecatedDeclaration]
| `- note: use 'takingOwnershipOfDescriptors(input:output:)' instead
52 | switch result {
53 | case .success:
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[397/410] Compiling NIOSSHClient InteractivePasswordPromptDelegate.swift
[398/410] Compiling NIOSSHClient main.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHClient/main.swift:52:39: warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
50 | let bootstrap = ClientBootstrap(group: group)
51 | .channelInitializer { channel in
52 | channel.pipeline.addHandlers([NIOSSHHandler(role: .client(.init(userAuthDelegate: InteractivePasswordPromptDelegate(username: parseResult.user, password: parseResult.password), serverAuthDelegate: AcceptAllHostKeysDelegate())), allocator: channel.allocator, inboundChildChannelInitializer: nil), ErrorHandler()])
| `- warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
53 | }
54 | .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSH/NIOSSHHandler.swift:81:1: note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
79 |
80 | @available(*, unavailable)
81 | extension NIOSSHHandler: Sendable {}
| `- note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
82 |
83 | extension NIOSSHHandler {
[398/410] Write Objects.LinkFileList
[400/410] Compiling NIOSSHServer DataToBufferCodec.swift
[401/410] Compiling NIOSSHServer GlueHandler.swift
[402/410] Compiling NIOSSHServer ExecHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/ExecHandler.swift:123:23: warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)' [#DeprecatedDeclaration]
121 | .channelInitializer { pipeChannel in
122 | pipeChannel.pipeline.addHandler(theirs)
123 | }.withPipes(inputDescriptor: outPipe.fileHandleForReading.fileDescriptor, outputDescriptor: inPipe.fileHandleForWriting.fileDescriptor).wait()
| |- warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)' [#DeprecatedDeclaration]
| `- note: use 'takingOwnershipOfDescriptors(input:output:)' instead
124 |
125 | // Ok, great, we've sorted stdout and stdin. For stderr we need a different strategy: we just park a thread for this.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[403/410] Emitting module NIOSSHServer
/Users/admin/builder/spi-builder-workspace/Sources/NIOSSHServer/main.swift:79:39: warning: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
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: conformance of 'NIOSSHHandler' to 'Sendable' is unavailable; 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/NIOSSH/NIOSSHHandler.swift:81:1: note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
79 |
80 | @available(*, unavailable)
81 | extension NIOSSHHandler: Sendable {}
| `- note: conformance of 'NIOSSHHandler' to 'Sendable' has been explicitly marked unavailable here
82 |
83 | extension NIOSSHHandler {
[403/410] Write Objects.LinkFileList
[404/410] Linking NIOSSHPerformanceTester
[405/410] Linking NIOSSHClient
[406/410] Applying NIOSSHPerformanceTester
[407/410] Applying NIOSSHClient
[408/410] Linking NIOSSHServer
[409/410] Applying NIOSSHServer
Build complete! (48.40s)
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-crypto.git
[1/1814] Fetching swift-atomics
[1815/3908] Fetching swift-atomics, swift-docc-plugin
[2046/20935] Fetching swift-atomics, swift-docc-plugin, swift-crypto
[2578/99015] Fetching swift-atomics, swift-docc-plugin, swift-crypto, swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.07s)
Fetched https://github.com/apple/swift-docc-plugin from cache (4.07s)
Fetched https://github.com/apple/swift-atomics.git from cache (4.07s)
Fetched https://github.com/apple/swift-crypto.git from cache (4.07s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (4.69s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.86.0 (0.91s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/4957] Fetching swift-system
[2480/22423] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.78s)
Fetched https://github.com/apple/swift-collections.git from cache (1.78s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (2.37s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (0.62s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (2.62s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3527] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.12s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.81s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.0 (0.86s)
Fetching https://github.com/apple/swift-asn1.git
[1/1629] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.96s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.4.0 (1.62s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.86.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.81.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-crypto",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-crypto.git"
},
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-nio-ssh",
"name" : "swift-nio-ssh",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "NIOSSH",
"targets" : [
"NIOSSH"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "NIOSSHServer",
"targets" : [
"NIOSSHServer"
],
"type" : {
"executable" : null
}
},
{
"name" : "NIOSSHPerformanceTester",
"targets" : [
"NIOSSHPerformanceTester"
],
"type" : {
"executable" : null
}
},
{
"name" : "NIOSSHClient",
"targets" : [
"NIOSSHClient"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "NIOSSHTests",
"module_type" : "SwiftTarget",
"name" : "NIOSSHTests",
"path" : "Tests/NIOSSHTests",
"product_dependencies" : [
"NIOCore",
"NIOEmbedded",
"NIOFoundationCompat"
],
"sources" : [
"AESGCMTests.swift",
"ByteBuffer+SSHTests.swift",
"CertificateAuthenticationIntegrationTests.swift",
"CertifiedKeyTests.swift",
"ChildChannelMultiplexerTests.swift",
"ECKeyExchangeTests.swift",
"EndToEndTests.swift",
"FuzzResultTests.swift",
"HostKeyTests.swift",
"SSHConfigurationCertificateTests.swift",
"SSHConnectionStateMachineTests.swift",
"SSHEncryptedTrafficTests.swift",
"SSHHandlerTests.swift",
"SSHKeyExchangeCertificateTests.swift",
"SSHKeyExchangeStateMachineTests.swift",
"SSHMessagesTests.swift",
"SSHPackerSerializerTests.swift",
"SSHPacketParserTests.swift",
"UserAuthenticationStateMachineTests.swift",
"Utilities.swift",
"UtilitiesTests.swift"
],
"target_dependencies" : [
"NIOSSH"
],
"type" : "test"
},
{
"c99name" : "NIOSSHServer",
"module_type" : "SwiftTarget",
"name" : "NIOSSHServer",
"path" : "Sources/NIOSSHServer",
"product_dependencies" : [
"NIOCore",
"NIOPosix",
"NIOFoundationCompat",
"Crypto"
],
"product_memberships" : [
"NIOSSHServer"
],
"sources" : [
"DataToBufferCodec.swift",
"ExecHandler.swift",
"GlueHandler.swift",
"RemotePortForwarding.swift",
"main.swift"
],
"target_dependencies" : [
"NIOSSH"
],
"type" : "executable"
},
{
"c99name" : "NIOSSHPerformanceTester",
"module_type" : "SwiftTarget",
"name" : "NIOSSHPerformanceTester",
"path" : "Sources/NIOSSHPerformanceTester",
"product_dependencies" : [
"NIOCore",
"NIOEmbedded",
"Crypto"
],
"product_memberships" : [
"NIOSSHPerformanceTester"
],
"sources" : [
"Benchmark.swift",
"BenchmarkHandshake.swift",
"BenchmarkLinearThroughput.swift",
"main.swift",
"shared.swift"
],
"target_dependencies" : [
"NIOSSH"
],
"type" : "executable"
},
{
"c99name" : "NIOSSHClient",
"module_type" : "SwiftTarget",
"name" : "NIOSSHClient",
"path" : "Sources/NIOSSHClient",
"product_dependencies" : [
"NIOCore",
"NIOPosix",
"NIOConcurrencyHelpers"
],
"product_memberships" : [
"NIOSSHClient"
],
"sources" : [
"ExecHandler.swift",
"GlueHandler.swift",
"InteractivePasswordPromptDelegate.swift",
"PortForwardingServer.swift",
"SimpleCLIParser.swift",
"main.swift"
],
"target_dependencies" : [
"NIOSSH"
],
"type" : "executable"
},
{
"c99name" : "NIOSSH",
"module_type" : "SwiftTarget",
"name" : "NIOSSH",
"path" : "Sources/NIOSSH",
"product_dependencies" : [
"NIOCore",
"NIOConcurrencyHelpers",
"NIOFoundationCompat",
"Crypto",
"Atomics"
],
"product_memberships" : [
"NIOSSH",
"NIOSSHServer",
"NIOSSHPerformanceTester",
"NIOSSHClient"
],
"sources" : [
"ByteBuffer+SSH.swift",
"CSPRNG/CSPRNG.swift",
"Child Channels/ChildChannelOptions.swift",
"Child Channels/ChildChannelStateMachine.swift",
"Child Channels/ChildChannelUserEvents.swift",
"Child Channels/ChildChannelWindowManager.swift",
"Child Channels/ChildChannelWritabilityManager.swift",
"Child Channels/OutboundFlowController.swift",
"Child Channels/SSHChannelData.swift",
"Child Channels/SSHChannelIdentifier.swift",
"Child Channels/SSHChannelMultiplexer.swift",
"Child Channels/SSHChannelType.swift",
"Child Channels/SSHChildChannel.swift",
"Connection State Machine/Operations/AcceptsChannelMessages.swift",
"Connection State Machine/Operations/AcceptsKeyExchangeMessages.swift",
"Connection State Machine/Operations/AcceptsUserAuthMessages.swift",
"Connection State Machine/Operations/AcceptsVersionMessages.swift",
"Connection State Machine/Operations/SendsChannelMessages.swift",
"Connection State Machine/Operations/SendsKeyExchangeMessages.swift",
"Connection State Machine/Operations/SendsUserAuthMessages.swift",
"Connection State Machine/SSHConnectionStateMachine.swift",
"Connection State Machine/States/ActiveState.swift",
"Connection State Machine/States/IdleState.swift",
"Connection State Machine/States/KeyExchangeState.swift",
"Connection State Machine/States/ReceivedKexInitWhenActiveState.swift",
"Connection State Machine/States/ReceivedNewKeysState.swift",
"Connection State Machine/States/RekeyingReceivedNewKeysState.swift",
"Connection State Machine/States/RekeyingSentNewKeysState.swift",
"Connection State Machine/States/RekeyingState.swift",
"Connection State Machine/States/SentKexInitWhenActiveState.swift",
"Connection State Machine/States/SentNewKeysState.swift",
"Connection State Machine/States/SentVersionState.swift",
"Connection State Machine/States/UserAuthenticationState.swift",
"Constants.swift",
"GlobalRequestDelegate.swift",
"Key Exchange/ECDHCompatibleKey.swift",
"Key Exchange/EllipticCurveKeyExchange.swift",
"Key Exchange/SSHKeyExchangeResult.swift",
"Key Exchange/SSHKeyExchangeStateMachine.swift",
"Keys And Signatures/ClientServerAuthenticationDelegate.swift",
"Keys And Signatures/CustomKeys.swift",
"Keys And Signatures/NIOSSHCertifiedPublicKey.swift",
"Keys And Signatures/NIOSSHPrivateKey.swift",
"Keys And Signatures/NIOSSHPublicKey.swift",
"Keys And Signatures/NIOSSHSignature.swift",
"NIOSSHError.swift",
"NIOSSHHandler.swift",
"NIOSSHSendable.swift",
"Role.swift",
"SSHClientConfiguration.swift",
"SSHEncryptablePacketPayload.swift",
"SSHMessages.swift",
"SSHPacketParser.swift",
"SSHPacketSerializer.swift",
"SSHServerConfiguration.swift",
"SSHTerminalModes.swift",
"TransportProtection/AESGCM.swift",
"TransportProtection/SSHTransportProtection.swift",
"User Authentication/ClientUserAuthenticationDelegate.swift",
"User Authentication/DenyAllServerAuthDelegate.swift",
"User Authentication/ServerUserAuthenticationDelegate.swift",
"User Authentication/SimplePasswordDelegate.swift",
"User Authentication/UserAuthDelegate.swift",
"User Authentication/UserAuthSignablePayload.swift",
"User Authentication/UserAuthenticationMethod.swift",
"User Authentication/UserAuthenticationStateMachine.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.