Build Information
Successful build of redi-s, reference 0.6.0 (4ec4de
), with Swift 6.0 for Linux on 4 Nov 2024 06:43:07 UTC.
Swift 6 data race errors: 18
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
[271/287] Compiling RedisServer CommandTable.swift
/host/spi-builder-workspace/Sources/RedisServer/Commands/CommandTable.swift:23:14: warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
21 | extension RedisServer {
22 |
23 | static let defaultCommandTable : RedisCommandTable = [
| |- warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultCommandTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // command is funny in that arity is 0
25 | Command(name : "COMMAND",
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:19:15: note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
17 | import struct Foundation.Data
18 |
19 | public struct RedisCommand : RESPEncodable {
| `- note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
20 |
21 | public let name : String
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:79:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | ctx.eventLoop.execute {
78 | let keys = hash.keys.lazy.map { RESPValue(bulkString: $0) }
79 | ctx.write(.array(ContiguousArray(keys)))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | }
81 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:91:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | ctx.eventLoop.execute {
90 | let vals = hash.values.lazy.map { RESPValue.bulkString($0) }
91 | ctx.write(.array(ContiguousArray(vals)))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:253:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | results.append(RESPValue.bulkString(hash[key]))
252 | }
253 | ctx.write(RESPValue.array(results))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
254 | }
255 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[272/287] Compiling RedisServer CommandType.swift
/host/spi-builder-workspace/Sources/RedisServer/Commands/CommandTable.swift:23:14: warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
21 | extension RedisServer {
22 |
23 | static let defaultCommandTable : RedisCommandTable = [
| |- warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultCommandTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // command is funny in that arity is 0
25 | Command(name : "COMMAND",
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:19:15: note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
17 | import struct Foundation.Data
18 |
19 | public struct RedisCommand : RESPEncodable {
| `- note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
20 |
21 | public let name : String
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:79:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | ctx.eventLoop.execute {
78 | let keys = hash.keys.lazy.map { RESPValue(bulkString: $0) }
79 | ctx.write(.array(ContiguousArray(keys)))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | }
81 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:91:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | ctx.eventLoop.execute {
90 | let vals = hash.values.lazy.map { RESPValue.bulkString($0) }
91 | ctx.write(.array(ContiguousArray(vals)))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:253:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | results.append(RESPValue.bulkString(hash[key]))
252 | }
253 | ctx.write(RESPValue.array(results))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
254 | }
255 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[273/287] Compiling RedisServer ExpirationCommands.swift
/host/spi-builder-workspace/Sources/RedisServer/Commands/CommandTable.swift:23:14: warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
21 | extension RedisServer {
22 |
23 | static let defaultCommandTable : RedisCommandTable = [
| |- warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultCommandTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // command is funny in that arity is 0
25 | Command(name : "COMMAND",
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:19:15: note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
17 | import struct Foundation.Data
18 |
19 | public struct RedisCommand : RESPEncodable {
| `- note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
20 |
21 | public let name : String
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:79:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | ctx.eventLoop.execute {
78 | let keys = hash.keys.lazy.map { RESPValue(bulkString: $0) }
79 | ctx.write(.array(ContiguousArray(keys)))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | }
81 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:91:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | ctx.eventLoop.execute {
90 | let vals = hash.values.lazy.map { RESPValue.bulkString($0) }
91 | ctx.write(.array(ContiguousArray(vals)))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:253:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | results.append(RESPValue.bulkString(hash[key]))
252 | }
253 | ctx.write(RESPValue.array(results))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
254 | }
255 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[274/287] Compiling RedisServer HashCommands.swift
/host/spi-builder-workspace/Sources/RedisServer/Commands/CommandTable.swift:23:14: warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
21 | extension RedisServer {
22 |
23 | static let defaultCommandTable : RedisCommandTable = [
| |- warning: static property 'defaultCommandTable' is not concurrency-safe because non-'Sendable' type 'RedisCommandTable' (aka 'Array<RedisCommand>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultCommandTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // command is funny in that arity is 0
25 | Command(name : "COMMAND",
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:19:15: note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
17 | import struct Foundation.Data
18 |
19 | public struct RedisCommand : RESPEncodable {
| `- note: consider making struct 'RedisCommand' conform to the 'Sendable' protocol
20 |
21 | public let name : String
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:79:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | ctx.eventLoop.execute {
78 | let keys = hash.keys.lazy.map { RESPValue(bulkString: $0) }
79 | ctx.write(.array(ContiguousArray(keys)))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | }
81 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:91:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | ctx.eventLoop.execute {
90 | let vals = hash.values.lazy.map { RESPValue.bulkString($0) }
91 | ctx.write(.array(ContiguousArray(vals)))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/HashCommands.swift:253:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | results.append(RESPValue.bulkString(hash[key]))
252 | }
253 | ctx.write(RESPValue.array(results))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
254 | }
255 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[275/287] Compiling RedisServer RedisList.swift
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
[276/287] Compiling RedisServer RedisValue.swift
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
[277/287] Compiling RedisServer RedisValueCoding.swift
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
[278/287] Compiling RedisServer RedisCommand.swift
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:122:18: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | ctx.context.writeAndFlush(NIOAny(RESPValue.ok))
121 | .whenComplete { _ in
122 | ctx.context.channel.close(promise: nil)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:182:21: warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | server.Q.async {
181 |
182 | let clients = server.clients.values
| `- warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 |
184 | // do not block the server
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:26:12: note: class 'RedisServer' does not conform to the 'Sendable' protocol
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:186:22: warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | // do not block the server
185 | listQueue.async {
186 | var count = clients.count
| `- warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard count > 0 else { return ctx.write("") } // Never
188 |
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
200 | }
201 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | }
201 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:192:20: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
191 | listQueue.async {
192 | assert(count > 0)
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:193:13: warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
193 | count -= 1
| `- warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:195:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
195 | result.writeString(info.redisClientLogLine)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:196:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
196 | result.writeInteger(10 as UInt8)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:198:16: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
198 | if count == 0 {
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
199 | ctx.write(.bulkString(result))
200 | }
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:37: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
200 | }
201 | }
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:15: warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| |- warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | }
211 | }
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:21: warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| `- warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | }
211 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:190:14: warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
| `- warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
/host/spi-builder-workspace/Sources/RedisServer/Commands/SetCommands.swift:36:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |
35 | ctx.eventLoop.execute {
36 | ctx.write(set.toRESPValue())
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[279/287] Compiling RedisServer ServerCommands.swift
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:122:18: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | ctx.context.writeAndFlush(NIOAny(RESPValue.ok))
121 | .whenComplete { _ in
122 | ctx.context.channel.close(promise: nil)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:182:21: warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | server.Q.async {
181 |
182 | let clients = server.clients.values
| `- warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 |
184 | // do not block the server
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:26:12: note: class 'RedisServer' does not conform to the 'Sendable' protocol
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:186:22: warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | // do not block the server
185 | listQueue.async {
186 | var count = clients.count
| `- warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard count > 0 else { return ctx.write("") } // Never
188 |
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
200 | }
201 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | }
201 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:192:20: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
191 | listQueue.async {
192 | assert(count > 0)
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:193:13: warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
193 | count -= 1
| `- warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:195:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
195 | result.writeString(info.redisClientLogLine)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:196:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
196 | result.writeInteger(10 as UInt8)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:198:16: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
198 | if count == 0 {
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
199 | ctx.write(.bulkString(result))
200 | }
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:37: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
200 | }
201 | }
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:15: warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| |- warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | }
211 | }
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:21: warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| `- warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | }
211 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:190:14: warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
| `- warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
/host/spi-builder-workspace/Sources/RedisServer/Commands/SetCommands.swift:36:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |
35 | ctx.eventLoop.execute {
36 | ctx.write(set.toRESPValue())
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[280/287] Compiling RedisServer SetCommands.swift
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:32:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
30 |
31 | /// command may result in modifications
32 | public static let write = Flags(rawValue: 1 << 0)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// command will never modify keys
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:35:23: warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
33 |
34 | /// command will never modify keys
35 | public static let readonly = Flags(rawValue: 1 << 1)
| |- warning: static property 'readonly' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readonly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// reject command if currently OOM
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:38:23: warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
36 |
37 | /// reject command if currently OOM
38 | public static let denyoom = Flags(rawValue: 1 << 2)
| |- warning: static property 'denyoom' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'denyoom' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | /// server admin command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:41:23: warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
39 |
40 | /// server admin command
41 | public static let admin = Flags(rawValue: 1 << 3)
| |- warning: static property 'admin' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'admin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// pubsub-related command
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:44:23: warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
42 |
43 | /// pubsub-related command
44 | public static let pubsub = Flags(rawValue: 1 << 4)
| |- warning: static property 'pubsub' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pubsub' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// deny this command from scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:47:23: warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
45 |
46 | /// deny this command from scripts
47 | public static let noscript = Flags(rawValue: 1 << 5)
| |- warning: static property 'noscript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noscript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// command has random results, dangerous for scripts
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:50:23: warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
48 |
49 | /// command has random results, dangerous for scripts
50 | public static let random = Flags(rawValue: 1 << 6)
| |- warning: static property 'random' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'random' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// allow command while database is loading
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:53:23: warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
51 |
52 | /// allow command while database is loading
53 | public static let loading = Flags(rawValue: 1 << 7)
| |- warning: static property 'loading' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loading' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// allow command while replica has stale data
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:56:23: warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
54 |
55 | /// allow command while replica has stale data
56 | public static let stale = Flags(rawValue: 1 << 8)
| |- warning: static property 'stale' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:58:23: warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
56 | public static let stale = Flags(rawValue: 1 << 8)
57 |
58 | public static let fast = Flags(rawValue: 1 << 9)
| |- warning: static property 'fast' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/RedisServer/Commands/RedisCommand.swift:60:23: warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
23 | public let flags : Flags
24 |
25 | public struct Flags : OptionSet, RESPEncodable, CustomStringConvertible {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
26 |
27 | public let rawValue : Int
:
58 | public static let fast = Flags(rawValue: 1 << 9)
59 |
60 | public static let sortForScript = Flags(rawValue: 1 << 10)
| |- warning: static property 'sortForScript' is not concurrency-safe because non-'Sendable' type 'RedisCommand.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortForScript' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | public var stringArray : [ String ] {
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:122:18: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | ctx.context.writeAndFlush(NIOAny(RESPValue.ok))
121 | .whenComplete { _ in
122 | ctx.context.channel.close(promise: nil)
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:182:21: warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | server.Q.async {
181 |
182 | let clients = server.clients.values
| `- warning: capture of 'server' with non-sendable type 'RedisServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 |
184 | // do not block the server
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:26:12: note: class 'RedisServer' does not conform to the 'Sendable' protocol
24 | public let DefaultRedisPort = 6379
25 |
26 | open class RedisServer {
| `- note: class 'RedisServer' does not conform to the 'Sendable' protocol
27 |
28 | public typealias Command = RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:186:22: warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 | // do not block the server
185 | listQueue.async {
186 | var count = clients.count
| `- warning: capture of 'clients' with non-sendable type 'Dictionary<ObjectIdentifier, RedisCommandHandler>.Values' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 | guard count > 0 else { return ctx.write("") } // Never
188 |
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:187:39: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
185 | listQueue.async {
186 | var count = clients.count
187 | guard count > 0 else { return ctx.write("") } // Never
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in an isolated local function; this is an error in the Swift 6 language mode
200 | }
201 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:15: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | }
201 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:192:20: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
191 | listQueue.async {
192 | assert(count > 0)
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:193:13: warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
193 | count -= 1
| `- warning: mutation of captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:195:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
193 | count -= 1
194 |
195 | result.writeString(info.redisClientLogLine)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:196:13: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
194 |
195 | result.writeString(info.redisClientLogLine)
196 | result.writeInteger(10 as UInt8)
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:198:16: warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
196 | result.writeInteger(10 as UInt8)
197 |
198 | if count == 0 {
| `- warning: reference to captured var 'count' in concurrently-executing code; this is an error in the Swift 6 language mode
199 | ctx.write(.bulkString(result))
200 | }
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:199:37: warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |
198 | if count == 0 {
199 | ctx.write(.bulkString(result))
| `- warning: reference to captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
200 | }
201 | }
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:15: warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| |- warning: capture of 'yield' with non-sendable type '(RedisCommandHandler.ClientInfo) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | }
211 | }
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:209:21: warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | if let eventLoop = client.eventLoop {
208 | eventLoop.execute {
209 | yield(client.getClientInfo())
| `- warning: capture of 'client' with non-sendable type 'RedisCommandHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 | }
211 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandHandler.swift:32:13: note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
30 | *
31 | */
32 | final class RedisCommandHandler : RESPChannelHandler {
| `- note: class 'RedisCommandHandler' does not conform to the 'Sendable' protocol
33 | // See [Avoid NIO Pipeline](Performance.md#avoid-nio-pipeline-for-non-bb)
34 | // for the reason why this is a subclass (instead of a consumer of the
/host/spi-builder-workspace/Sources/RedisServer/Commands/ServerCommands.swift:190:14: warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
188 |
189 | var result = ByteBufferAllocator().buffer(capacity: 1024)
190 | func yield(_ info: RedisCommandHandler.ClientInfo) {
| `- warning: concurrently-executed local function 'yield' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
191 | listQueue.async {
192 | assert(count > 0)
/host/spi-builder-workspace/Sources/RedisServer/Commands/SetCommands.swift:36:9: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |
35 | ctx.eventLoop.execute {
36 | ctx.write(set.toRESPValue())
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
[281/287] Compiling RedisServer StringCommands.swift
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/StringCommands.swift:227:47: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | ctx.eventLoop.execute {
227 | guard let value = value else { return ctx.write(.bulkString(nil)) }
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | ctx.write(value)
229 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:7: warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 | Q.async {
122 | cb(self.lastSave, self.lastSaveDuration)
| |- warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 | }
124 | }
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:10: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
120 | func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 | Q.async {
122 | cb(self.lastSave, self.lastSaveDuration)
| `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:132:9: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
130 | let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
131 | Q.async {
132 | self.lastSave = lastSave
| `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 | self.lastSaveDuration = diff
134 | }
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:40: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
137 | Q.async {
138 | do {
139 | let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
| `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self.lastSave = lastSave
141 | self.lastSaveDuration = diff
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:59: warning: capture of 'databases' with non-sendable type 'Databases' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | Q.async {
138 | do {
139 | let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
| `- warning: capture of 'databases' with non-sendable type 'Databases' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self.lastSave = lastSave
141 | self.lastSaveDuration = diff
/host/spi-builder-workspace/Sources/RedisServer/Database/Database.swift:50:13: note: class 'Databases' does not conform to the 'Sendable' protocol
48 | * Hashable etc.
49 | */
50 | final class Databases : Codable {
| `- note: class 'Databases' does not conform to the 'Sendable' protocol
51 |
52 | typealias SavePoints = ContiguousArray<SavePoint>
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:29: warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
183 | // Careful: running in DB thread
184 | me.Q.async {
185 | me._scheduleSave(in: savePoint.delay)
| `- warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | }
187 | })
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:50: warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | // Careful: running in DB thread
184 | me.Q.async {
185 | me._scheduleSave(in: savePoint.delay)
| `- warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | }
187 | })
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:32:19: note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
30 | open class Configuration {
31 |
32 | public struct SavePoint {
| `- note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
33 | public let delay : TimeInterval
34 | public let changeCount : Int
[282/287] Compiling RedisServer Database.swift
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/StringCommands.swift:227:47: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | ctx.eventLoop.execute {
227 | guard let value = value else { return ctx.write(.bulkString(nil)) }
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | ctx.write(value)
229 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:7: warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 | Q.async {
122 | cb(self.lastSave, self.lastSaveDuration)
| |- warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 | }
124 | }
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:10: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
120 | func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 | Q.async {
122 | cb(self.lastSave, self.lastSaveDuration)
| `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:132:9: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
130 | let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
131 | Q.async {
132 | self.lastSave = lastSave
| `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 | self.lastSaveDuration = diff
134 | }
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:40: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
137 | Q.async {
138 | do {
139 | let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
| `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self.lastSave = lastSave
141 | self.lastSaveDuration = diff
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:59: warning: capture of 'databases' with non-sendable type 'Databases' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | Q.async {
138 | do {
139 | let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
| `- warning: capture of 'databases' with non-sendable type 'Databases' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self.lastSave = lastSave
141 | self.lastSaveDuration = diff
/host/spi-builder-workspace/Sources/RedisServer/Database/Database.swift:50:13: note: class 'Databases' does not conform to the 'Sendable' protocol
48 | * Hashable etc.
49 | */
50 | final class Databases : Codable {
| `- note: class 'Databases' does not conform to the 'Sendable' protocol
51 |
52 | typealias SavePoints = ContiguousArray<SavePoint>
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:29: warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
183 | // Careful: running in DB thread
184 | me.Q.async {
185 | me._scheduleSave(in: savePoint.delay)
| `- warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | }
187 | })
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:50: warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | // Careful: running in DB thread
184 | me.Q.async {
185 | me._scheduleSave(in: savePoint.delay)
| `- warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | }
187 | })
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:32:19: note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
30 | open class Configuration {
31 |
32 | public struct SavePoint {
| `- note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
33 | public let delay : TimeInterval
34 | public let changeCount : Int
[283/287] Compiling RedisServer DumpManager.swift
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:279:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| `- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RESPValue' may have shared mutable state; this is an error in the Swift 6 language mode
280 | }
281 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-redis/Sources/NIORedis/RESPValue.swift:18:13: note: enum 'RESPValue' does not conform to the 'Sendable' protocol
16 | import Foundation
17 |
18 | public enum RESPValue {
| `- note: enum 'RESPValue' does not conform to the 'Sendable' protocol
19 | case simpleString(ByteBuffer)
20 | case bulkString (ByteBuffer?)
/host/spi-builder-workspace/Sources/RedisServer/Values/RedisValue.swift:16:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
14 |
15 | import NIO
16 | import NIORedis
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIORedis'
17 | import Foundation
18 |
:
277 |
278 | extension RESPValue {
279 | static let ok = RESPValue(simpleString: "OK")
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 | }
281 |
/host/spi-builder-workspace/Sources/RedisServer/Commands/StringCommands.swift:227:47: warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | ctx.eventLoop.execute {
227 | guard let value = value else { return ctx.write(.bulkString(nil)) }
| `- warning: capture of 'ctx' with non-sendable type 'Commands.CommandContext' (aka 'RedisCommandContext') in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | ctx.write(value)
229 | }
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisCommandContext.swift:22:15: note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
20 | * The environment commands need to run.
21 | */
22 | public struct RedisCommandContext {
| `- note: consider making struct 'RedisCommandContext' conform to the 'Sendable' protocol
23 |
24 | let command : RedisCommand
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:7: warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 | Q.async {
122 | cb(self.lastSave, self.lastSaveDuration)
| |- warning: capture of 'cb' with non-sendable type '(Date, TimeInterval) -> Void' (aka '(Date, Double) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 | }
124 | }
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:122:10: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
120 | func getLastSave(_ cb: @escaping ( Date, TimeInterval ) -> Void) {
121 | Q.async {
122 | cb(self.lastSave, self.lastSaveDuration)
| `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:132:9: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
130 | let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
131 | Q.async {
132 | self.lastSave = lastSave
| `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 | self.lastSaveDuration = diff
134 | }
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:40: warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
137 | Q.async {
138 | do {
139 | let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
| `- warning: capture of 'self' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self.lastSave = lastSave
141 | self.lastSaveDuration = diff
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:139:59: warning: capture of 'databases' with non-sendable type 'Databases' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | Q.async {
138 | do {
139 | let ( lastSave, diff ) = try self._saveDump(of: databases, to: url)
| `- warning: capture of 'databases' with non-sendable type 'Databases' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self.lastSave = lastSave
141 | self.lastSaveDuration = diff
/host/spi-builder-workspace/Sources/RedisServer/Database/Database.swift:50:13: note: class 'Databases' does not conform to the 'Sendable' protocol
48 | * Hashable etc.
49 | */
50 | final class Databases : Codable {
| `- note: class 'Databases' does not conform to the 'Sendable' protocol
51 |
52 | typealias SavePoints = ContiguousArray<SavePoint>
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:29: warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | }
51 |
52 | class SimpleJSONDumpManager : DumpManager {
| `- note: class 'SimpleJSONDumpManager' does not conform to the 'Sendable' protocol
53 |
54 | let Q = DispatchQueue(label: "de.zeezide.nio.redisd.dump")
:
183 | // Careful: running in DB thread
184 | me.Q.async {
185 | me._scheduleSave(in: savePoint.delay)
| `- warning: capture of 'me' with non-sendable type 'SimpleJSONDumpManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | }
187 | })
/host/spi-builder-workspace/Sources/RedisServer/Database/DumpManager.swift:185:50: warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 | // Careful: running in DB thread
184 | me.Q.async {
185 | me._scheduleSave(in: savePoint.delay)
| `- warning: capture of 'savePoint' with non-sendable type 'Databases.SavePoint' (aka 'RedisServer.Configuration.SavePoint') in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 | }
187 | })
/host/spi-builder-workspace/Sources/RedisServer/Server/RedisServer.swift:32:19: note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
30 | open class Configuration {
31 |
32 | public struct SavePoint {
| `- note: consider making struct 'SavePoint' conform to the 'Sendable' protocol
33 | public let delay : TimeInterval
34 | public let changeCount : Int
[284/288] Wrapping AST for RedisServer for debugging
[286/291] Compiling redi_s main.swift
[287/291] Compiling redi_s ConfigFile.swift
[288/291] Emitting module redi_s
[289/292] Wrapping AST for redi-s for debugging
[290/292] Write Objects.LinkFileList
[291/292] Linking redi-s
Build complete! (79.31s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio-redis",
"requirement" : {
"range" : [
{
"lower_bound" : "0.11.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftNIOExtras/swift-nio-redis.git"
},
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics"
}
],
"manifest_display_name" : "redi-s",
"name" : "redi-s",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "RedisServer",
"targets" : [
"RedisServer"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "redi-s",
"targets" : [
"redi-s"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "redi_s",
"module_type" : "SwiftTarget",
"name" : "redi-s",
"path" : "Sources/redi-s",
"product_memberships" : [
"redi-s"
],
"sources" : [
"ConfigFile.swift",
"main.swift"
],
"target_dependencies" : [
"RedisServer"
],
"type" : "executable"
},
{
"c99name" : "RedisServer",
"module_type" : "SwiftTarget",
"name" : "RedisServer",
"path" : "Sources/RedisServer",
"product_dependencies" : [
"NIORedis",
"Atomics"
],
"product_memberships" : [
"RedisServer",
"redi-s"
],
"sources" : [
"Commands/CommandTable.swift",
"Commands/CommandType.swift",
"Commands/ExpirationCommands.swift",
"Commands/HashCommands.swift",
"Commands/IntCommands.swift",
"Commands/KeyCommands.swift",
"Commands/ListCommands.swift",
"Commands/PubSubCommands.swift",
"Commands/RedisCommand.swift",
"Commands/ServerCommands.swift",
"Commands/SetCommands.swift",
"Commands/StringCommands.swift",
"Database/Database.swift",
"Database/DumpManager.swift",
"Helpers/RedisLogger.swift",
"Helpers/RedisPattern.swift",
"Helpers/Utilities.swift",
"Server/Monitor.swift",
"Server/PubSub.swift",
"Server/RedisCommandContext.swift",
"Server/RedisCommandHandler.swift",
"Server/RedisServer.swift",
"Values/RedisError.swift",
"Values/RedisList.swift",
"Values/RedisValue.swift",
"Values/RedisValueCoding.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.