Build Information
Failed to build LogDog, reference master (ee6748
), with Swift 6.0 for Linux on 2 Nov 2024 13:06:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
26 |
27 | private let errorHandler: ((Error) -> Void)?
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:27:17: warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
27 | private let errorHandler: ((Error) -> Void)?
| |- warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | public init(label: String,
[13/55] Compiling LogDog AnyLogAppender.swift
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:29: warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/Appenders/AnyLogAppender.swift:2:15: note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
1 | /// A type-erased appender.
2 | public struct AnyLogAppender<Output>: LogAppender {
| `- note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
3 | private let appender: AbstractAppender<Output>
4 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:45: warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/LogRecord.swift:1:15: note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
1 | public struct LogRecord<Output> {
| `- note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
2 | public let entry: LogEntry
3 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:49:25: warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
47 | try appender.append(record)
48 | } catch {
49 | errors[i] = error
| `- warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
50 | hasError = true
51 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:50:25: warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
50 | hasError = true
| `- warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
51 | }
52 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:67:16: warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
65 | }
66 |
67 | static let out = StdOutputStream(file: stdout)
| |- warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'out' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | static let err = StdOutputStream(file: stderr)
69 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:28:23: warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
| |- warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | }
30 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:68:16: warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
66 |
67 | static let out = StdOutputStream(file: stdout)
68 | static let err = StdOutputStream(file: stderr)
| |- warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'err' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | }
70 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | private let stdout = Glibc.stdout!
42 | #endif
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:32: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
41 | private let stdout = Glibc.stdout!
42 | #endif
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' 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 | #endif
43 |
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[14/55] Compiling LogDog MemoryLogAppender.swift
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:29: warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/Appenders/AnyLogAppender.swift:2:15: note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
1 | /// A type-erased appender.
2 | public struct AnyLogAppender<Output>: LogAppender {
| `- note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
3 | private let appender: AbstractAppender<Output>
4 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:45: warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/LogRecord.swift:1:15: note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
1 | public struct LogRecord<Output> {
| `- note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
2 | public let entry: LogEntry
3 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:49:25: warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
47 | try appender.append(record)
48 | } catch {
49 | errors[i] = error
| `- warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
50 | hasError = true
51 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:50:25: warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
50 | hasError = true
| `- warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
51 | }
52 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:67:16: warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
65 | }
66 |
67 | static let out = StdOutputStream(file: stdout)
| |- warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'out' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | static let err = StdOutputStream(file: stderr)
69 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:28:23: warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
| |- warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | }
30 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:68:16: warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
66 |
67 | static let out = StdOutputStream(file: stdout)
68 | static let err = StdOutputStream(file: stderr)
| |- warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'err' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | }
70 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | private let stdout = Glibc.stdout!
42 | #endif
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:32: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
41 | private let stdout = Glibc.stdout!
42 | #endif
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' 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 | #endif
43 |
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[15/55] Compiling LogDog MultiplexLogAppender.swift
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:29: warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/Appenders/AnyLogAppender.swift:2:15: note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
1 | /// A type-erased appender.
2 | public struct AnyLogAppender<Output>: LogAppender {
| `- note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
3 | private let appender: AbstractAppender<Output>
4 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:45: warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/LogRecord.swift:1:15: note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
1 | public struct LogRecord<Output> {
| `- note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
2 | public let entry: LogEntry
3 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:49:25: warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
47 | try appender.append(record)
48 | } catch {
49 | errors[i] = error
| `- warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
50 | hasError = true
51 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:50:25: warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
50 | hasError = true
| `- warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
51 | }
52 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:67:16: warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
65 | }
66 |
67 | static let out = StdOutputStream(file: stdout)
| |- warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'out' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | static let err = StdOutputStream(file: stderr)
69 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:28:23: warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
| |- warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | }
30 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:68:16: warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
66 |
67 | static let out = StdOutputStream(file: stdout)
68 | static let err = StdOutputStream(file: stderr)
| |- warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'err' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | }
70 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | private let stdout = Glibc.stdout!
42 | #endif
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:32: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
41 | private let stdout = Glibc.stdout!
42 | #endif
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' 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 | #endif
43 |
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[16/55] Compiling LogDog OSLogAppender.swift
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:29: warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/Appenders/AnyLogAppender.swift:2:15: note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
1 | /// A type-erased appender.
2 | public struct AnyLogAppender<Output>: LogAppender {
| `- note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
3 | private let appender: AbstractAppender<Output>
4 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:45: warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/LogRecord.swift:1:15: note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
1 | public struct LogRecord<Output> {
| `- note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
2 | public let entry: LogEntry
3 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:49:25: warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
47 | try appender.append(record)
48 | } catch {
49 | errors[i] = error
| `- warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
50 | hasError = true
51 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:50:25: warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
50 | hasError = true
| `- warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
51 | }
52 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:67:16: warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
65 | }
66 |
67 | static let out = StdOutputStream(file: stdout)
| |- warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'out' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | static let err = StdOutputStream(file: stderr)
69 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:28:23: warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
| |- warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | }
30 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:68:16: warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
66 |
67 | static let out = StdOutputStream(file: stdout)
68 | static let err = StdOutputStream(file: stderr)
| |- warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'err' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | }
70 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | private let stdout = Glibc.stdout!
42 | #endif
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:32: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
41 | private let stdout = Glibc.stdout!
42 | #endif
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' 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 | #endif
43 |
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[17/55] Compiling LogDog TextLogAppender.swift
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:29: warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'appender' with non-sendable type 'AnyLogAppender<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/Appenders/AnyLogAppender.swift:2:15: note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
1 | /// A type-erased appender.
2 | public struct AnyLogAppender<Output>: LogAppender {
| `- note: consider making generic struct 'AnyLogAppender' conform to the 'Sendable' protocol
3 | private let appender: AbstractAppender<Output>
4 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:47:45: warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | queue.async(group: group) {
46 | do {
47 | try appender.append(record)
| `- warning: capture of 'record' with non-sendable type 'LogRecord<Output>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
/host/spi-builder-workspace/Sources/LogDog/LogRecord.swift:1:15: note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
1 | public struct LogRecord<Output> {
| `- note: consider making generic struct 'LogRecord' conform to the 'Sendable' protocol
2 | public let entry: LogEntry
3 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:49:25: warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
47 | try appender.append(record)
48 | } catch {
49 | errors[i] = error
| `- warning: mutation of captured var 'errors' in concurrently-executing code; this is an error in the Swift 6 language mode
50 | hasError = true
51 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/MultiplexLogAppender.swift:50:25: warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
48 | } catch {
49 | errors[i] = error
50 | hasError = true
| `- warning: mutation of captured var 'hasError' in concurrently-executing code; this is an error in the Swift 6 language mode
51 | }
52 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:67:16: warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
65 | }
66 |
67 | static let out = StdOutputStream(file: stdout)
| |- warning: static property 'out' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'out' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | static let err = StdOutputStream(file: stderr)
69 | }
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:28:23: warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
| |- warning: static property 'stderr' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | }
30 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:68:16: warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
44 | private struct StdOutputStream: TextOutputStream {
| `- note: consider making struct 'StdOutputStream' conform to the 'Sendable' protocol
45 | private let file: UnsafeMutablePointer<FILE>
46 |
:
66 |
67 | static let out = StdOutputStream(file: stdout)
68 | static let err = StdOutputStream(file: stderr)
| |- warning: static property 'err' is not concurrency-safe because non-'Sendable' type 'StdOutputStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'err' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | }
70 |
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | private let stdout = Glibc.stdout!
42 | #endif
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:40:32: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | private let stdout = MSVCRT.stdout
39 | #else
40 | private let stderr = Glibc.stderr!
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
41 | private let stdout = Glibc.stdout!
42 | #endif
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' 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 | #endif
43 |
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:41:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 | #else
40 | private let stderr = Glibc.stderr!
41 | private let stdout = Glibc.stdout!
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
42 | #endif
43 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[18/55] Compiling LogDog LogStringify.swift
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:105:16: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | public extension LogStringify {
105 | static var `default`: LogStringify = {
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | var stringify = LogStringify()
107 | stringify.set(data)
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:111:16: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | }()
110 |
111 | static var data: Stringify<Data> = {
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'data' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | LogHelper.format($0)
113 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:14:32: warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
12 |
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
| `- warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
15 | callback()
16 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:15:9: warning: capture of 'callback' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
15 | callback()
| |- warning: capture of 'callback' with non-sendable type '() -> Void' 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'
16 | }
17 | }
[19/55] Compiling LogDog LogStringifyCompatible.swift
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:105:16: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | public extension LogStringify {
105 | static var `default`: LogStringify = {
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | var stringify = LogStringify()
107 | stringify.set(data)
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:111:16: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | }()
110 |
111 | static var data: Stringify<Data> = {
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'data' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | LogHelper.format($0)
113 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:14:32: warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
12 |
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
| `- warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
15 | callback()
16 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:15:9: warning: capture of 'callback' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
15 | callback()
| |- warning: capture of 'callback' with non-sendable type '() -> Void' 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'
16 | }
17 | }
[20/55] Compiling LogDog Logger.MetadataValue+Any.swift
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:105:16: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | public extension LogStringify {
105 | static var `default`: LogStringify = {
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | var stringify = LogStringify()
107 | stringify.set(data)
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:111:16: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | }()
110 |
111 | static var data: Stringify<Data> = {
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'data' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | LogHelper.format($0)
113 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:14:32: warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
12 |
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
| `- warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
15 | callback()
16 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:15:9: warning: capture of 'callback' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
15 | callback()
| |- warning: capture of 'callback' with non-sendable type '() -> Void' 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'
16 | }
17 | }
[21/55] Compiling LogDog atExit.swift
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:105:16: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | public extension LogStringify {
105 | static var `default`: LogStringify = {
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | var stringify = LogStringify()
107 | stringify.set(data)
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:111:16: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | }()
110 |
111 | static var data: Stringify<Data> = {
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'data' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | LogHelper.format($0)
113 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:14:32: warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
12 |
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
| `- warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
15 | callback()
16 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:15:9: warning: capture of 'callback' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
15 | callback()
| |- warning: capture of 'callback' with non-sendable type '() -> Void' 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'
16 | }
17 | }
[22/55] Compiling LogDog LogAppender.swift
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:105:16: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | public extension LogStringify {
105 | static var `default`: LogStringify = {
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | var stringify = LogStringify()
107 | stringify.set(data)
/host/spi-builder-workspace/Sources/LogDog/Features/Stringify/LogStringify.swift:111:16: warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 | }()
110 |
111 | static var data: Stringify<Data> = {
| |- warning: static property 'data' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'data' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'data' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | LogHelper.format($0)
113 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:14:32: warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
12 |
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
| `- warning: result of call to 'addObserver(forName:object:queue:using:)' is unused
15 | callback()
16 | }
/host/spi-builder-workspace/Sources/LogDog/Features/atExit.swift:15:9: warning: capture of 'callback' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | func atExit(_ callback: @escaping () -> Void) {
14 | NotificationCenter.default.addObserver(forName: atExit, object: nil, queue: nil) { _ in
15 | callback()
| |- warning: capture of 'callback' with non-sendable type '() -> Void' 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'
16 | }
17 | }
[23/55] Compiling LogDog Compress.swift
[24/55] Compiling LogDog Crypto.swift
[25/55] Compiling LogDog Encode.swift
[26/55] Compiling LogDog Format.swift
[27/55] Compiling LogDog Prefix.swift
[28/55] Compiling LogDog LogEncoder.swift
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:36:24: warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | static func format(_ data: Data, using style: ByteCountFormatter.CountStyle = .memory) -> String {
35 | enum Static {
36 | static let lazy = AtomicLazy<ByteCountFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/LogDog/internal/Lazy.swift:3:13: note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | final class AtomicLazy<T> {
| `- note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
4 | private lazy var cache: [AnyHashable: T] = [:]
5 | private lazy var queue = DispatchQueue(label: "com.v2ambition.LogDog.AtomicLazy", attributes: .concurrent)
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:54:24: warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | static func format(_ date: Date, using format: String) -> String {
53 | enum Static {
54 | static var lazy = AtomicLazy<DateFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lazy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | }
56 |
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:21: error: cannot find '__dispatch_queue_get_label' in scope
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
152 | return String(cString: label)
153 | }
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:48: error: 'nil' requires a contextual type
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
152 | return String(cString: label)
153 | }
[29/55] Compiling LogDog LogEntry.swift
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:36:24: warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | static func format(_ data: Data, using style: ByteCountFormatter.CountStyle = .memory) -> String {
35 | enum Static {
36 | static let lazy = AtomicLazy<ByteCountFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/LogDog/internal/Lazy.swift:3:13: note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | final class AtomicLazy<T> {
| `- note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
4 | private lazy var cache: [AnyHashable: T] = [:]
5 | private lazy var queue = DispatchQueue(label: "com.v2ambition.LogDog.AtomicLazy", attributes: .concurrent)
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:54:24: warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | static func format(_ date: Date, using format: String) -> String {
53 | enum Static {
54 | static var lazy = AtomicLazy<DateFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lazy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | }
56 |
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:21: error: cannot find '__dispatch_queue_get_label' in scope
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
152 | return String(cString: label)
153 | }
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:48: error: 'nil' requires a contextual type
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
152 | return String(cString: label)
153 | }
[30/55] Compiling LogDog LogError.swift
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:36:24: warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | static func format(_ data: Data, using style: ByteCountFormatter.CountStyle = .memory) -> String {
35 | enum Static {
36 | static let lazy = AtomicLazy<ByteCountFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/LogDog/internal/Lazy.swift:3:13: note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | final class AtomicLazy<T> {
| `- note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
4 | private lazy var cache: [AnyHashable: T] = [:]
5 | private lazy var queue = DispatchQueue(label: "com.v2ambition.LogDog.AtomicLazy", attributes: .concurrent)
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:54:24: warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | static func format(_ date: Date, using format: String) -> String {
53 | enum Static {
54 | static var lazy = AtomicLazy<DateFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lazy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | }
56 |
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:21: error: cannot find '__dispatch_queue_get_label' in scope
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
152 | return String(cString: label)
153 | }
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:48: error: 'nil' requires a contextual type
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
152 | return String(cString: label)
153 | }
[31/55] Compiling LogDog LogHelper.swift
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:36:24: warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | static func format(_ data: Data, using style: ByteCountFormatter.CountStyle = .memory) -> String {
35 | enum Static {
36 | static let lazy = AtomicLazy<ByteCountFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/LogDog/internal/Lazy.swift:3:13: note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | final class AtomicLazy<T> {
| `- note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
4 | private lazy var cache: [AnyHashable: T] = [:]
5 | private lazy var queue = DispatchQueue(label: "com.v2ambition.LogDog.AtomicLazy", attributes: .concurrent)
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:54:24: warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | static func format(_ date: Date, using format: String) -> String {
53 | enum Static {
54 | static var lazy = AtomicLazy<DateFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lazy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | }
56 |
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:21: error: cannot find '__dispatch_queue_get_label' in scope
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
152 | return String(cString: label)
153 | }
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:48: error: 'nil' requires a contextual type
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
152 | return String(cString: label)
153 | }
[32/55] Compiling LogDog LogParameters.swift
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:36:24: warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | static func format(_ data: Data, using style: ByteCountFormatter.CountStyle = .memory) -> String {
35 | enum Static {
36 | static let lazy = AtomicLazy<ByteCountFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because non-'Sendable' type 'AtomicLazy<ByteCountFormatter>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/LogDog/internal/Lazy.swift:3:13: note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | final class AtomicLazy<T> {
| `- note: generic class 'AtomicLazy' does not conform to the 'Sendable' protocol
4 | private lazy var cache: [AnyHashable: T] = [:]
5 | private lazy var queue = DispatchQueue(label: "com.v2ambition.LogDog.AtomicLazy", attributes: .concurrent)
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:54:24: warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | static func format(_ date: Date, using format: String) -> String {
53 | enum Static {
54 | static var lazy = AtomicLazy<DateFormatter>()
| |- warning: static property 'lazy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lazy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lazy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | }
56 |
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:21: error: cannot find '__dispatch_queue_get_label' in scope
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: cannot find '__dispatch_queue_get_label' in scope
152 | return String(cString: label)
153 | }
/host/spi-builder-workspace/Sources/LogDog/LogHelper.swift:151:48: error: 'nil' requires a contextual type
149 | public extension LogHelper {
150 | static var currentDispatchQueueLabel: String {
151 | let label = __dispatch_queue_get_label(nil)
| `- error: 'nil' requires a contextual type
152 | return String(cString: label)
153 | }
[33/55] Compiling LogDog Suffix.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:80:16: warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
78 | // MARK: App
79 |
80 | static let appBuild = LogHook {
| |- warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appBuild' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | $0.parameters["appBuild"] = LogHelper.appBuild
82 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:84:16: warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
82 | }
83 |
84 | static let appName = LogHook {
| |- warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | $0.parameters["appName"] = LogHelper.appName
86 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:88:16: warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
86 | }
87 |
88 | static let appVersion = LogHook {
| |- warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | $0.parameters["appVersion"] = LogHelper.appVersion
90 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:94:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
92 | // MARK: Data
93 |
94 | static let date = LogHook {
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | $0.parameters["date"] = Date()
96 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:100:16: warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
98 | // MARK: Thread
99 |
100 | static let thread = LogHook {
| |- warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'thread' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | $0.parameters["thread"] = LogHelper.thread
102 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/LogSinks.swift:9:16: warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct Firstly: LogSink {
| `- note: consider making struct 'Firstly' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = Void
7 | }
8 |
9 | static let firstly = Firstly()
| |- warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'firstly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:20:16: warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
18 |
19 | /// dynamic metadata values override metadata values.
20 | public var dynamicMetadata: [String: () -> Logger.MetadataValue] = [:]
| |- warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 |
22 | public let label: String
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:24:16: warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Sink' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
22 | public let label: String
23 |
24 | public let sink: Sink
| `- warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:25:16: warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Appender' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
23 |
24 | public let sink: Sink
25 | public let appender: Appender
| `- warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
26 |
27 | private let errorHandler: ((Error) -> Void)?
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:27:17: warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
27 | private let errorHandler: ((Error) -> Void)?
| |- warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | public init(label: String,
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
[34/55] Compiling LogDog Hook.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:80:16: warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
78 | // MARK: App
79 |
80 | static let appBuild = LogHook {
| |- warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appBuild' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | $0.parameters["appBuild"] = LogHelper.appBuild
82 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:84:16: warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
82 | }
83 |
84 | static let appName = LogHook {
| |- warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | $0.parameters["appName"] = LogHelper.appName
86 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:88:16: warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
86 | }
87 |
88 | static let appVersion = LogHook {
| |- warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | $0.parameters["appVersion"] = LogHelper.appVersion
90 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:94:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
92 | // MARK: Data
93 |
94 | static let date = LogHook {
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | $0.parameters["date"] = Date()
96 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:100:16: warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
98 | // MARK: Thread
99 |
100 | static let thread = LogHook {
| |- warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'thread' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | $0.parameters["thread"] = LogHelper.thread
102 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/LogSinks.swift:9:16: warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct Firstly: LogSink {
| `- note: consider making struct 'Firstly' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = Void
7 | }
8 |
9 | static let firstly = Firstly()
| |- warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'firstly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:20:16: warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
18 |
19 | /// dynamic metadata values override metadata values.
20 | public var dynamicMetadata: [String: () -> Logger.MetadataValue] = [:]
| |- warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 |
22 | public let label: String
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:24:16: warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Sink' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
22 | public let label: String
23 |
24 | public let sink: Sink
| `- warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:25:16: warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Appender' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
23 |
24 | public let sink: Sink
25 | public let appender: Appender
| `- warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
26 |
27 | private let errorHandler: ((Error) -> Void)?
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:27:17: warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
27 | private let errorHandler: ((Error) -> Void)?
| |- warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | public init(label: String,
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
[35/55] Compiling LogDog LogSinks.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:80:16: warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
78 | // MARK: App
79 |
80 | static let appBuild = LogHook {
| |- warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appBuild' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | $0.parameters["appBuild"] = LogHelper.appBuild
82 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:84:16: warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
82 | }
83 |
84 | static let appName = LogHook {
| |- warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | $0.parameters["appName"] = LogHelper.appName
86 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:88:16: warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
86 | }
87 |
88 | static let appVersion = LogHook {
| |- warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | $0.parameters["appVersion"] = LogHelper.appVersion
90 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:94:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
92 | // MARK: Data
93 |
94 | static let date = LogHook {
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | $0.parameters["date"] = Date()
96 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:100:16: warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
98 | // MARK: Thread
99 |
100 | static let thread = LogHook {
| |- warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'thread' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | $0.parameters["thread"] = LogHelper.thread
102 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/LogSinks.swift:9:16: warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct Firstly: LogSink {
| `- note: consider making struct 'Firstly' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = Void
7 | }
8 |
9 | static let firstly = Firstly()
| |- warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'firstly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:20:16: warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
18 |
19 | /// dynamic metadata values override metadata values.
20 | public var dynamicMetadata: [String: () -> Logger.MetadataValue] = [:]
| |- warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 |
22 | public let label: String
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:24:16: warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Sink' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
22 | public let label: String
23 |
24 | public let sink: Sink
| `- warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:25:16: warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Appender' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
23 |
24 | public let sink: Sink
25 | public let appender: Appender
| `- warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
26 |
27 | private let errorHandler: ((Error) -> Void)?
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:27:17: warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
27 | private let errorHandler: ((Error) -> Void)?
| |- warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | public init(label: String,
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
[36/55] Compiling LogDog SinkOn.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:80:16: warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
78 | // MARK: App
79 |
80 | static let appBuild = LogHook {
| |- warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appBuild' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | $0.parameters["appBuild"] = LogHelper.appBuild
82 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:84:16: warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
82 | }
83 |
84 | static let appName = LogHook {
| |- warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | $0.parameters["appName"] = LogHelper.appName
86 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:88:16: warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
86 | }
87 |
88 | static let appVersion = LogHook {
| |- warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | $0.parameters["appVersion"] = LogHelper.appVersion
90 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:94:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
92 | // MARK: Data
93 |
94 | static let date = LogHook {
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | $0.parameters["date"] = Date()
96 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:100:16: warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
98 | // MARK: Thread
99 |
100 | static let thread = LogHook {
| |- warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'thread' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | $0.parameters["thread"] = LogHelper.thread
102 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/LogSinks.swift:9:16: warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct Firstly: LogSink {
| `- note: consider making struct 'Firstly' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = Void
7 | }
8 |
9 | static let firstly = Firstly()
| |- warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'firstly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:20:16: warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
18 |
19 | /// dynamic metadata values override metadata values.
20 | public var dynamicMetadata: [String: () -> Logger.MetadataValue] = [:]
| |- warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 |
22 | public let label: String
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:24:16: warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Sink' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
22 | public let label: String
23 |
24 | public let sink: Sink
| `- warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:25:16: warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Appender' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
23 |
24 | public let sink: Sink
25 | public let appender: Appender
| `- warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
26 |
27 | private let errorHandler: ((Error) -> Void)?
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:27:17: warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
27 | private let errorHandler: ((Error) -> Void)?
| |- warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | public init(label: String,
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
[37/55] Compiling LogDog SugarLogHandler.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:80:16: warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
78 | // MARK: App
79 |
80 | static let appBuild = LogHook {
| |- warning: static property 'appBuild' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appBuild' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | $0.parameters["appBuild"] = LogHelper.appBuild
82 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:84:16: warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
82 | }
83 |
84 | static let appName = LogHook {
| |- warning: static property 'appName' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | $0.parameters["appName"] = LogHelper.appName
86 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:88:16: warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
86 | }
87 |
88 | static let appVersion = LogHook {
| |- warning: static property 'appVersion' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'appVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | $0.parameters["appVersion"] = LogHelper.appVersion
90 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:94:16: warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
92 | // MARK: Data
93 |
94 | static let date = LogHook {
| |- warning: static property 'date' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'date' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | $0.parameters["date"] = Date()
96 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/Hooks/Hook.swift:100:16: warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // MARK: LogHook
48 |
49 | public struct LogHook {
| `- note: consider making struct 'LogHook' conform to the 'Sendable' protocol
50 | private let body: (inout LogEntry) -> Void
51 |
:
98 | // MARK: Thread
99 |
100 | static let thread = LogHook {
| |- warning: static property 'thread' is not concurrency-safe because non-'Sendable' type 'LogHook' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'thread' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | $0.parameters["thread"] = LogHelper.thread
102 | }
/host/spi-builder-workspace/Sources/LogDog/Sinks/LogSinks.swift:9:16: warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct Firstly: LogSink {
| `- note: consider making struct 'Firstly' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = Void
7 | }
8 |
9 | static let firstly = Firstly()
| |- warning: static property 'firstly' is not concurrency-safe because non-'Sendable' type 'LogSinks.Firstly' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'firstly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:20:16: warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
18 |
19 | /// dynamic metadata values override metadata values.
20 | public var dynamicMetadata: [String: () -> Logger.MetadataValue] = [:]
| |- warning: stored property 'dynamicMetadata' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '[String : () -> Logger.MetadataValue]'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
21 |
22 | public let label: String
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:24:16: warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Sink' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
22 | public let label: String
23 |
24 | public let sink: Sink
| `- warning: stored property 'sink' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Sink'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:25:16: warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public struct SugarLogHandler<Sink, Appender>: LogHandler where Sink: LogSink, Appender: LogAppender, Sink.Input == Void, Sink.Output == Appender.Output {
| `- note: consider making generic parameter 'Appender' conform to the 'Sendable' protocol
15 | public var logLevel: Logger.Level = .trace
16 |
:
23 |
24 | public let sink: Sink
25 | public let appender: Appender
| `- warning: stored property 'appender' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type 'Appender'; this is an error in the Swift 6 language mode
26 |
27 | private let errorHandler: ((Error) -> Void)?
/host/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:27:17: warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
25 | public let appender: Appender
26 |
27 | private let errorHandler: ((Error) -> Void)?
| |- warning: stored property 'errorHandler' of 'Sendable'-conforming generic struct 'SugarLogHandler' has non-sendable type '((any Error) -> Void)?'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 |
29 | public init(label: String,
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:27:23: warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// - `TextLogAppender.stdout`, output to `stdout`.
13 | /// - `TextLogAppender.stderr`, output to `stderr`.
14 | public struct TextLogAppender: LogAppender {
| `- note: consider making struct 'TextLogAppender' conform to the 'Sendable' protocol
15 | public let stream: TextOutputStream
16 |
:
25 | }
26 |
27 | public static let stdout = TextLogAppender(StdOutputStream.out)
| |- warning: static property 'stdout' is not concurrency-safe because non-'Sendable' type 'TextLogAppender' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let stderr = TextLogAppender(StdOutputStream.err)
29 | }
[38/55] Compiling LogDog LogRecord.swift
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:9:24: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
6 |
7 | extension DispatchQueue: LogScheduler {
8 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
9 | async(execute: body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
10 | }
11 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:33:22: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
30 |
31 | extension OperationQueue: LogScheduler {
32 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
33 | addOperation(body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
34 | }
35 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:49:17: warning: capture of 'body' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |
48 | queue.addOperation {
49 | body()
| |- warning: capture of 'body' with non-sendable type '() -> Void' 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'
50 | sema.signal()
51 | }
[39/55] Compiling LogDog LogScheduler.swift
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:9:24: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
6 |
7 | extension DispatchQueue: LogScheduler {
8 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
9 | async(execute: body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
10 | }
11 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:33:22: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
30 |
31 | extension OperationQueue: LogScheduler {
32 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
33 | addOperation(body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
34 | }
35 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:49:17: warning: capture of 'body' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |
48 | queue.addOperation {
49 | body()
| |- warning: capture of 'body' with non-sendable type '() -> Void' 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'
50 | sema.signal()
51 | }
[40/55] Compiling LogDog LogSink.swift
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:9:24: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
6 |
7 | extension DispatchQueue: LogScheduler {
8 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
9 | async(execute: body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
10 | }
11 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:33:22: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
30 |
31 | extension OperationQueue: LogScheduler {
32 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
33 | addOperation(body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
34 | }
35 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:49:17: warning: capture of 'body' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |
48 | queue.addOperation {
49 | body()
| |- warning: capture of 'body' with non-sendable type '() -> Void' 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'
50 | sema.signal()
51 | }
[41/55] Compiling LogDog Logging+.swift
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:9:24: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
6 |
7 | extension DispatchQueue: LogScheduler {
8 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
9 | async(execute: body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
10 | }
11 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:33:22: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
30 |
31 | extension OperationQueue: LogScheduler {
32 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
33 | addOperation(body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
34 | }
35 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:49:17: warning: capture of 'body' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |
48 | queue.addOperation {
49 | body()
| |- warning: capture of 'body' with non-sendable type '() -> Void' 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'
50 | sema.signal()
51 | }
[42/55] Compiling LogDog AnyLogSink.swift
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:9:24: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
6 |
7 | extension DispatchQueue: LogScheduler {
8 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
9 | async(execute: body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
10 | }
11 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:33:22: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
30 |
31 | extension OperationQueue: LogScheduler {
32 | public func schedule(_ body: @escaping () -> Void) {
| `- note: parameter 'body' is implicitly non-sendable
33 | addOperation(body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
34 | }
35 | }
/host/spi-builder-workspace/Sources/LogDog/LogScheduler.swift:49:17: warning: capture of 'body' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |
48 | queue.addOperation {
49 | body()
| |- warning: capture of 'body' with non-sendable type '() -> Void' 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'
50 | sema.signal()
51 | }
[43/55] Compiling LogDog Concat.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:60:16: warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
58 |
59 | public extension LogSinks.BuiltIn {
60 | static let short = LogSinks.BuiltIn(style: .short)
| |- warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'short' with '@MainActor' 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 | static let medium = LogSinks.BuiltIn(style: .medium)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:64:16: warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
62 | static let medium = LogSinks.BuiltIn(style: .medium)
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
| |- warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'long' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:70:24: warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | extension LogSinks.BuiltIn {
70 | private static let underlyingShort: AnyLogSink<Void, String> = .init { record, next in
| |- warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingShort' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | record.sink(next: next) { (record) -> String? in
72 | let level = record.entry.level.initial
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:87:24: warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
85 | }
86 |
87 | private static let underlyingMedium: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingMedium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | $0.parameters[Medium.self] = .init()
89 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:146:16: warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
144 | }
145 |
146 | static let underlyingLong: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingLong' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | $0.parameters[Long.self] = .init()
148 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
[44/55] Compiling LogDog Debug.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:60:16: warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
58 |
59 | public extension LogSinks.BuiltIn {
60 | static let short = LogSinks.BuiltIn(style: .short)
| |- warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'short' with '@MainActor' 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 | static let medium = LogSinks.BuiltIn(style: .medium)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:64:16: warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
62 | static let medium = LogSinks.BuiltIn(style: .medium)
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
| |- warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'long' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:70:24: warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | extension LogSinks.BuiltIn {
70 | private static let underlyingShort: AnyLogSink<Void, String> = .init { record, next in
| |- warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingShort' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | record.sink(next: next) { (record) -> String? in
72 | let level = record.entry.level.initial
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:87:24: warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
85 | }
86 |
87 | private static let underlyingMedium: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingMedium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | $0.parameters[Medium.self] = .init()
89 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:146:16: warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
144 | }
145 |
146 | static let underlyingLong: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingLong' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | $0.parameters[Long.self] = .init()
148 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
[45/55] Compiling LogDog Filter.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:60:16: warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
58 |
59 | public extension LogSinks.BuiltIn {
60 | static let short = LogSinks.BuiltIn(style: .short)
| |- warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'short' with '@MainActor' 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 | static let medium = LogSinks.BuiltIn(style: .medium)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:64:16: warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
62 | static let medium = LogSinks.BuiltIn(style: .medium)
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
| |- warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'long' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:70:24: warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | extension LogSinks.BuiltIn {
70 | private static let underlyingShort: AnyLogSink<Void, String> = .init { record, next in
| |- warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingShort' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | record.sink(next: next) { (record) -> String? in
72 | let level = record.entry.level.initial
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:87:24: warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
85 | }
86 |
87 | private static let underlyingMedium: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingMedium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | $0.parameters[Medium.self] = .init()
89 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:146:16: warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
144 | }
145 |
146 | static let underlyingLong: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingLong' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | $0.parameters[Long.self] = .init()
148 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
[46/55] Compiling LogDog Match.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:60:16: warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
58 |
59 | public extension LogSinks.BuiltIn {
60 | static let short = LogSinks.BuiltIn(style: .short)
| |- warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'short' with '@MainActor' 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 | static let medium = LogSinks.BuiltIn(style: .medium)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:64:16: warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
62 | static let medium = LogSinks.BuiltIn(style: .medium)
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
| |- warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'long' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:70:24: warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | extension LogSinks.BuiltIn {
70 | private static let underlyingShort: AnyLogSink<Void, String> = .init { record, next in
| |- warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingShort' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | record.sink(next: next) { (record) -> String? in
72 | let level = record.entry.level.initial
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:87:24: warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
85 | }
86 |
87 | private static let underlyingMedium: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingMedium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | $0.parameters[Medium.self] = .init()
89 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:146:16: warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
144 | }
145 |
146 | static let underlyingLong: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingLong' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | $0.parameters[Long.self] = .init()
148 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
[47/55] Compiling LogDog BuiltIn.swift
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:60:16: warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
58 |
59 | public extension LogSinks.BuiltIn {
60 | static let short = LogSinks.BuiltIn(style: .short)
| |- warning: static property 'short' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'short' with '@MainActor' 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 | static let medium = LogSinks.BuiltIn(style: .medium)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:62:16: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
60 | static let short = LogSinks.BuiltIn(style: .short)
61 |
62 | static let medium = LogSinks.BuiltIn(style: .medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'medium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:64:16: warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public extension LogSinks {
4 | struct BuiltIn: LogSink {
| `- note: consider making struct 'BuiltIn' conform to the 'Sendable' protocol
5 | public typealias Input = Void
6 | public typealias Output = String
:
62 | static let medium = LogSinks.BuiltIn(style: .medium)
63 |
64 | static let long = LogSinks.BuiltIn(style: .long)
| |- warning: static property 'long' is not concurrency-safe because non-'Sendable' type 'LogSinks.BuiltIn' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'long' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:70:24: warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | extension LogSinks.BuiltIn {
70 | private static let underlyingShort: AnyLogSink<Void, String> = .init { record, next in
| |- warning: static property 'underlyingShort' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingShort' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | record.sink(next: next) { (record) -> String? in
72 | let level = record.entry.level.initial
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:87:24: warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
85 | }
86 |
87 | private static let underlyingMedium: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingMedium' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingMedium' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | $0.parameters[Medium.self] = .init()
89 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
/host/spi-builder-workspace/Sources/LogDog/Sinks/Formatters/BuiltIn.swift:146:16: warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
144 | }
145 |
146 | static let underlyingLong: AnyLogSink<Void, String> = .init {
| |- warning: static property 'underlyingLong' is not concurrency-safe because non-'Sendable' type 'AnyLogSink<Void, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underlyingLong' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | $0.parameters[Long.self] = .init()
148 | } sink: { record, next in
/host/spi-builder-workspace/Sources/LogDog/Sinks/AnyLogSink.swift:7:15: note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
5 | }
6 |
7 | public struct AnyLogSink<Input, Output>: LogSink {
| `- note: consider making generic struct 'AnyLogSink' conform to the 'Sendable' protocol
8 | private let sink: AbstractSink<Input, Output>
9 |
[48/55] Compiling LogDog export.swift
[49/55] Compiling LogDog AnyEncodable.swift
[50/55] Compiling LogDog Lazy.swift
[51/55] Compiling LogDog unwrap.swift
BUILD FAILURE 6.0 linux