The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of LoggerKit, reference master (32680c), with Swift 6.1 for Wasm on 28 May 2025 13:27:11 UTC.

Swift 6 data race errors: 8

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/pvieito/LoggerKit.git
https://github.com/pvieito/LoggerKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/onevcat/Rainbow
[1/1196] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (1.80s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 4.1.0 (4.82s)
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 4.1.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/17] Compiling Rainbow ControlCode.swift
[6/17] Compiling Rainbow ModesExtractor.swift
[7/18] Compiling Rainbow String+Rainbow.swift
[8/18] Compiling Rainbow StringGenerator.swift
[9/18] Compiling Rainbow Style.swift
[10/18] Compiling Rainbow Rainbow.swift
[11/18] Compiling Rainbow Color.swift
[12/18] Compiling Rainbow ColorApproximation.swift
[13/18] Compiling Rainbow BackgroundColor.swift
[14/18] Compiling Rainbow CodesParser.swift
[15/18] Emitting module Rainbow
[16/18] Emitting module LoggerKitMac
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
    |                       `- 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: add '@MainActor' to make static property '_maxLogLevel' part of global actor 'MainActor'
    |                        `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logMode' part of global actor 'MainActor'
    |                       `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'isExtendedLogEnabled' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[17/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
    |                       `- 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: add '@MainActor' to make static property '_maxLogLevel' part of global actor 'MainActor'
    |                        `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logMode' part of global actor 'MainActor'
    |                       `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'isExtendedLogEnabled' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[18/18] Compiling Rainbow OutputTarget.swift
[21/22] Emitting module LoggerKit
/host/spi-builder-workspace/LoggerKit/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
    |                       `- 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: add '@MainActor' to make static property '_maxLogLevel' part of global actor 'MainActor'
    |                        `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logMode' part of global actor 'MainActor'
    |                       `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'isExtendedLogEnabled' part of global actor 'MainActor'
    |                        `- 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] Compiling LoggerKit Logger.swift
/host/spi-builder-workspace/LoggerKit/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
    |                       `- 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: add '@MainActor' to make static property '_maxLogLevel' part of global actor 'MainActor'
    |                        `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logMode' part of global actor 'MainActor'
    |                       `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'isExtendedLogEnabled' part of global actor 'MainActor'
    |                        `- 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! (15.03s)
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"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.