Build Information
Successful build of LogDog, reference master (ee6748
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 13:13:54 UTC.
Swift 6 data race errors: 23
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/luoxiu/LogDog.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/luoxiu/LogDog
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at ee67485 if the metadata value is encodable, encode it
Cloned https://github.com/luoxiu/LogDog.git
Revision (git rev-parse @):
ee67485708a0204a7932e5e46616ad530724af4d
SUCCESS checkout https://github.com/luoxiu/LogDog.git at master
Fetching https://github.com/apple/swift-log.git
[1/3660] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.15s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.0 (0.65s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "logdog",
"name": "LogDog",
"url": "https://github.com/luoxiu/LogDog.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LogDog",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/luoxiu/LogDog.git
[1/1217] Fetching logdog
Fetched https://github.com/luoxiu/LogDog.git from cache (0.89s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.51s)
Creating working copy for https://github.com/luoxiu/LogDog.git
Working copy of https://github.com/luoxiu/LogDog.git resolved at master (ee67485)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
warning: '.resolve-product-dependencies': dependency 'logdog' is not used by any target
Found 1 product dependencies
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/luoxiu/LogDog.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/8] Write sources
[3/8] Write LogDogApp-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/12] Compiling Logging Locks.swift
[7/12] Emitting module Logging
[8/12] Compiling Logging LogHandler.swift
[9/12] Compiling Logging Logging.swift
[10/49] Compiling LogDog LogError.swift
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
[11/49] Compiling LogDog LogHelper.swift
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
[12/49] Compiling LogDog LogParameters.swift
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
[13/49] Compiling LogDog LogRecord.swift
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
[14/52] Compiling LogDog LogSinks.swift
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:2:12: warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// Global shared logger.
2 | public let sugar = Logger.sugar("app")
| |- warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sugar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 |
4 | public extension Logger {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:34:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
32 | /// logger.info("Hello World!")
33 | ///
34 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
35 | @usableFromInline
36 | var handler: LogHandler
/Users/admin/builder/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)
/Users/admin/builder/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 | }
[15/52] Compiling LogDog SinkOn.swift
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:2:12: warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// Global shared logger.
2 | public let sugar = Logger.sugar("app")
| |- warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sugar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 |
4 | public extension Logger {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:34:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
32 | /// logger.info("Hello World!")
33 | ///
34 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
35 | @usableFromInline
36 | var handler: LogHandler
/Users/admin/builder/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)
/Users/admin/builder/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 | }
[16/52] Compiling LogDog SugarLogHandler.swift
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:2:12: warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// Global shared logger.
2 | public let sugar = Logger.sugar("app")
| |- warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sugar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 |
4 | public extension Logger {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:34:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
32 | /// logger.info("Hello World!")
33 | ///
34 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
35 | @usableFromInline
36 | var handler: LogHandler
/Users/admin/builder/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)
/Users/admin/builder/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 | }
[17/52] Compiling LogDog export.swift
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:2:12: warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// Global shared logger.
2 | public let sugar = Logger.sugar("app")
| |- warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sugar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 |
4 | public extension Logger {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:34:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
32 | /// logger.info("Hello World!")
33 | ///
34 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
35 | @usableFromInline
36 | var handler: LogHandler
/Users/admin/builder/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)
/Users/admin/builder/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 | }
[18/52] Compiling LogDog atExit.swift
/Users/admin/builder/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/52] Compiling LogDog LogAppender.swift
/Users/admin/builder/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/52] Compiling LogDog LogEncoder.swift
/Users/admin/builder/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/52] Compiling LogDog LogEntry.swift
/Users/admin/builder/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/52] Compiling LogDog Format.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[23/52] Compiling LogDog Prefix.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[24/52] Compiling LogDog Suffix.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[25/52] Compiling LogDog Hook.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[26/52] Compiling LogDog TextLogAppender.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:34:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
35 | private let stdout = Darwin.stdout
36 | #elseif os(Windows)
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)
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:35:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
35 | private let stdout = Darwin.stdout
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
36 | #elseif os(Windows)
37 | private let stderr = MSVCRT.stderr
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)
/Users/admin/builder/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)
/Users/admin/builder/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 | }
[27/52] Compiling LogDog LogStringify.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:34:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
35 | private let stdout = Darwin.stdout
36 | #elseif os(Windows)
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)
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:35:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
35 | private let stdout = Darwin.stdout
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
36 | #elseif os(Windows)
37 | private let stderr = MSVCRT.stderr
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)
/Users/admin/builder/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)
/Users/admin/builder/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 | }
[28/52] Compiling LogDog LogStringifyCompatible.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:34:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
35 | private let stdout = Darwin.stdout
36 | #elseif os(Windows)
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)
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:35:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
35 | private let stdout = Darwin.stdout
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
36 | #elseif os(Windows)
37 | private let stderr = MSVCRT.stderr
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)
/Users/admin/builder/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)
/Users/admin/builder/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 | }
[29/52] Compiling LogDog Logger.MetadataValue+Any.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:34:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
35 | private let stdout = Darwin.stdout
36 | #elseif os(Windows)
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)
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:35:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
35 | private let stdout = Darwin.stdout
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
36 | #elseif os(Windows)
37 | private let stderr = MSVCRT.stderr
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)
/Users/admin/builder/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)
/Users/admin/builder/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 | }
[30/52] Compiling LogDog Concat.swift
[31/52] Compiling LogDog Debug.swift
[32/52] Compiling LogDog Filter.swift
[33/52] Compiling LogDog Match.swift
[34/52] Compiling LogDog LogScheduler.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[35/52] Compiling LogDog LogSink.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[36/52] Compiling LogDog Logging+.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[37/52] Compiling LogDog AnyLogSink.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[38/52] Compiling LogDog AnyLogAppender.swift
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[39/52] Compiling LogDog MemoryLogAppender.swift
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[40/52] Compiling LogDog MultiplexLogAppender.swift
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[41/52] Compiling LogDog OSLogAppender.swift
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
[42/52] Compiling LogDog BuiltIn.swift
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
[43/52] Compiling LogDog Compress.swift
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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/52] Compiling LogDog Crypto.swift
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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/52] Compiling LogDog Encode.swift
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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/52] Emitting module LogDog
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:34:17: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
35 | private let stdout = Darwin.stdout
36 | #elseif os(Windows)
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)
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/Appenders/TextLogAppender.swift:35:17: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') may have shared mutable state; this is an error in the Swift 6 language mode
33 | #if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
34 | private let stderr = Darwin.stderr
35 | private let stdout = Darwin.stdout
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<__sFILE>') 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
36 | #elseif os(Windows)
37 | private let stderr = MSVCRT.stderr
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)
/Users/admin/builder/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)
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/LogDog/SugarLogHandler.swift:2:12: warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// Global shared logger.
2 | public let sugar = Logger.sugar("app")
| |- warning: let 'sugar' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sugar' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 |
4 | public extension Logger {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:34:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
32 | /// logger.info("Hello World!")
33 | ///
34 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
35 | @usableFromInline
36 | var handler: LogHandler
[47/52] Compiling LogDog AnyEncodable.swift
[48/52] Compiling LogDog Lazy.swift
[49/52] Compiling LogDog unwrap.swift
[50/54] Compiling LogDogApp main.swift
[51/54] Emitting module LogDogApp
[51/54] Write Objects.LinkFileList
[52/54] Linking LogDogApp
[53/54] Applying LogDogApp
Build complete! (13.48s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "LogDog",
"name" : "LogDog",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LogDog",
"targets" : [
"LogDog"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "LogDogApp",
"targets" : [
"LogDogApp"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "LogDogTests",
"module_type" : "SwiftTarget",
"name" : "LogDogTests",
"path" : "Tests/LogDogTests",
"sources" : [
"Appenders/AnyLogAppenderTests.swift",
"Appenders/MemoryLogAppenderTests.swift",
"Appenders/MultiplexLogAppenderTests.swift",
"Appenders/TextLogAppenderTests.swift",
"Features/LogStringifyTests.swift",
"LogHelperTests.swift",
"LogParametersTests.swift",
"LogSchedulerTests.swift",
"Sinks/AnyLogSinkTests.swift",
"Sinks/ConcatTests.swift",
"Sinks/Filters/FilterTests.swift",
"Sinks/Hooks/HookTests.swift",
"Sinks/SinkOnTests.swift",
"SugarTests.swift",
"XCTestManifests.swift",
"helpers/ByteCountFormatter+.swift",
"helpers/LogEntry+fake.swift",
"helpers/LogError.swift",
"helpers/TextStream.swift",
"internal/LazyTests.swift",
"internal/UnwrapTests.swift"
],
"target_dependencies" : [
"LogDog"
],
"type" : "test"
},
{
"c99name" : "LogDogApp",
"module_type" : "SwiftTarget",
"name" : "LogDogApp",
"path" : "Sources/LogDogApp",
"product_memberships" : [
"LogDogApp"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"LogDog"
],
"type" : "executable"
},
{
"c99name" : "LogDog",
"module_type" : "SwiftTarget",
"name" : "LogDog",
"path" : "Sources/LogDog",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"LogDog",
"LogDogApp"
],
"sources" : [
"Appenders/AnyLogAppender.swift",
"Appenders/MemoryLogAppender.swift",
"Appenders/MultiplexLogAppender.swift",
"Appenders/OSLogAppender.swift",
"Appenders/TextLogAppender.swift",
"Features/Stringify/LogStringify.swift",
"Features/Stringify/LogStringifyCompatible.swift",
"Features/Stringify/Logger.MetadataValue+Any.swift",
"Features/atExit.swift",
"LogAppender.swift",
"LogEncoder.swift",
"LogEntry.swift",
"LogError.swift",
"LogHelper.swift",
"LogParameters.swift",
"LogRecord.swift",
"LogScheduler.swift",
"LogSink.swift",
"Logging+.swift",
"Sinks/AnyLogSink.swift",
"Sinks/Concat.swift",
"Sinks/Filters/Debug.swift",
"Sinks/Filters/Filter.swift",
"Sinks/Filters/Match.swift",
"Sinks/Formatters/BuiltIn.swift",
"Sinks/Formatters/Compress.swift",
"Sinks/Formatters/Crypto.swift",
"Sinks/Formatters/Encode.swift",
"Sinks/Formatters/Format.swift",
"Sinks/Formatters/Prefix.swift",
"Sinks/Formatters/Suffix.swift",
"Sinks/Hooks/Hook.swift",
"Sinks/LogSinks.swift",
"Sinks/SinkOn.swift",
"SugarLogHandler.swift",
"export.swift",
"internal/AnyEncodable.swift",
"internal/Lazy.swift",
"internal/unwrap.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.