Build Information
Successful build of SLLog with Swift 6.0 for Linux.
Swift 6 data race errors: 3
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shial4/LogSwift.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/shial4/LogSwift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d8cded7 Update scheme
Cloned https://github.com/shial4/LogSwift.git
Revision (git rev-parse @):
d8cded7fa03270655bee79304cdabb4a341027f9
SUCCESS checkout https://github.com/shial4/LogSwift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/shial4/LogSwift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Emitting module SLLog
/host/spi-builder-workspace/Sources/SLLog/SLLog.swift:25:36: warning: static property 'providers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public class SLLog {
25 | public private(set) static var providers: [LogProvider] = []
| |- warning: static property 'providers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'providers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'providers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
/host/spi-builder-workspace/Sources/SLLog/SLLog.swift:26:36: warning: static property 'targets' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public class SLLog {
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
| |- warning: static property 'targets' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'targets' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'targets' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
28 | timeZone: "UTC",
/host/spi-builder-workspace/Sources/SLLog/SLLog.swift:27:36: warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
| |- warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormat' with '@MainActor' 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 | timeZone: "UTC",
29 | locale: "en_US_POSIX")
[4/8] Compiling SLLog DateFormatterExtension.swift
[5/8] Compiling SLLog SLLog.swift
/host/spi-builder-workspace/Sources/SLLog/SLLog.swift:25:36: warning: static property 'providers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | public class SLLog {
25 | public private(set) static var providers: [LogProvider] = []
| |- warning: static property 'providers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'providers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'providers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
/host/spi-builder-workspace/Sources/SLLog/SLLog.swift:26:36: warning: static property 'targets' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public class SLLog {
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
| |- warning: static property 'targets' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'targets' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'targets' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
28 | timeZone: "UTC",
/host/spi-builder-workspace/Sources/SLLog/SLLog.swift:27:36: warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
| |- warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormat' with '@MainActor' 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 | timeZone: "UTC",
29 | locale: "en_US_POSIX")
[6/8] Compiling SLLog SLLogConsole.swift
[7/8] Compiling SLLog SLLogFile.swift
/host/spi-builder-workspace/Sources/SLLog/SLLogFile.swift:121:35: warning: capture of 'self' with non-sendable type 'SLLogFile' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Dispatch
10 |
11 | public class SLLogFile {
| `- note: class 'SLLogFile' does not conform to the 'Sendable' protocol
12 | struct LogObject: Codable {
13 | let d: String
:
119 | private func removeFile(_ files: [String]) {
120 | DispatchQueue.global().async {
121 | files.forEach { [weak self] in
| `- warning: capture of 'self' with non-sendable type 'SLLogFile' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | guard let path = self?.path else { return }
123 | let file: String = "\(path)/\($0)"
[8/8] Compiling SLLog Log.swift
/host/spi-builder-workspace/Sources/SLLog/SLLog.swift:27:36: warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
25 | public private(set) static var providers: [LogProvider] = []
26 | public private(set) static var targets: [LogHandler] = []
27 | public private(set) static var dateFormat: DateFormatter = DateFormatter(dateFormat: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
| |- warning: static property 'dateFormat' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dateFormat' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dateFormat' with '@MainActor' 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 | timeZone: "UTC",
29 | locale: "en_US_POSIX")
Build complete! (9.22s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SLLog",
"name" : "SLLog",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SLLog",
"targets" : [
"SLLog"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SLLogTests",
"module_type" : "SwiftTarget",
"name" : "SLLogTests",
"path" : "Tests/SLLogTests",
"sources" : [
"SLLogConsoleTests.swift",
"SLLogFileTests.swift",
"SLLogTests.swift"
],
"target_dependencies" : [
"SLLog"
],
"type" : "test"
},
{
"c99name" : "SLLog",
"module_type" : "SwiftTarget",
"name" : "SLLog",
"path" : "Sources/SLLog",
"product_memberships" : [
"SLLog"
],
"sources" : [
"Extensions/DateFormatterExtension.swift",
"Log.swift",
"SLLog.swift",
"SLLogConsole.swift",
"SLLogFile.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.