This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of LoggerKit with Swift 6.0 for Linux.

Swift 6 data race errors: 8

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/pvieito/LoggerKit.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/pvieito/LoggerKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 32680ce [LoggerKit] Updated Rainbow package
Cloned https://github.com/pvieito/LoggerKit.git
Revision (git rev-parse @):
32680ce247721c879d3797c329904d3db720e551
SUCCESS checkout https://github.com/pvieito/LoggerKit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/pvieito/LoggerKit.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
Fetching https://github.com/onevcat/Rainbow
[1/1118] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.23s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 4.0.1 (1.07s)
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 4.0.1
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/17] Compiling Rainbow StringGenerator.swift
[6/18] Compiling Rainbow String+Rainbow.swift
[7/18] Compiling Rainbow Style.swift
[8/18] Compiling Rainbow Rainbow.swift
[9/18] Emitting module LoggerKitMac
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' 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 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logLevel' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate '_maxLogLevel' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' 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 'logMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logMode' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 | }
 71 |
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' 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 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isExtendedLogEnabled' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[10/18] Compiling LoggerKitMac Logger.swift
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' 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 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logLevel' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate '_maxLogLevel' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' 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 'logMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logMode' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 | }
 71 |
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' 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 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isExtendedLogEnabled' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[11/19] Compiling Rainbow ControlCode.swift
[12/19] Compiling Rainbow ModesExtractor.swift
[13/19] Compiling Rainbow OutputTarget.swift
[14/19] Compiling Rainbow BackgroundColor.swift
[15/19] Compiling Rainbow CodesParser.swift
[16/19] Compiling Rainbow Color.swift
[17/19] Compiling Rainbow ColorApproximation.swift
[18/19] Emitting module Rainbow
[21/22] Compiling LoggerKit Logger.swift
/host/spi-builder-workspace/LoggerKit/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' 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 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logLevel' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/host/spi-builder-workspace/LoggerKit/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate '_maxLogLevel' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/host/spi-builder-workspace/LoggerKit/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' 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 'logMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logMode' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 | }
 71 |
/host/spi-builder-workspace/LoggerKit/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' 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 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isExtendedLogEnabled' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[22/22] Emitting module LoggerKit
/host/spi-builder-workspace/LoggerKit/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' 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 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logLevel' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/host/spi-builder-workspace/LoggerKit/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate '_maxLogLevel' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/host/spi-builder-workspace/LoggerKit/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' 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 'logMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logMode' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 | }
 71 |
/host/spi-builder-workspace/LoggerKit/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' 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 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isExtendedLogEnabled' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
Build complete! (12.95s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "rainbow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/onevcat/Rainbow"
    }
  ],
  "manifest_display_name" : "LoggerKit",
  "name" : "LoggerKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LoggerKit",
      "targets" : [
        "LoggerKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "LoggerKitMac",
      "targets" : [
        "LoggerKitMac"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggerKitTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggerKitTests",
      "path" : "Tests/LoggerKitTests",
      "sources" : [
        "LoggerKitTests.swift"
      ],
      "target_dependencies" : [
        "LoggerKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggerKitMac",
      "module_type" : "SwiftTarget",
      "name" : "LoggerKitMac",
      "path" : "LoggerKitMac",
      "product_memberships" : [
        "LoggerKitMac"
      ],
      "sources" : [
        "Logger.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "LoggerKit",
      "module_type" : "SwiftTarget",
      "name" : "LoggerKit",
      "path" : "LoggerKit",
      "product_dependencies" : [
        "Rainbow"
      ],
      "product_memberships" : [
        "LoggerKit"
      ],
      "sources" : [
        "Logger.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.