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 LoggingCamp, reference 2.2.1 (08516f), with Swift 6.1 for Linux on 20 May 2025 17:24:53 UTC.

Swift 6 data race errors: 6

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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.61.6
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DariuszGulbicki/Logging-Camp.git
Reference: 2.2.1
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/DariuszGulbicki/Logging-Camp
 * tag               2.2.1      -> FETCH_HEAD
HEAD is now at 08516f7 Added tests and minor improvements to LoggerPool
Cloned https://github.com/DariuszGulbicki/Logging-Camp.git
Revision (git rev-parse @):
08516f7da6dff61cad0663a66a617a7c647032bb
SUCCESS checkout https://github.com/DariuszGulbicki/Logging-Camp.git at 2.2.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/DariuszGulbicki/Logging-Camp.git
https://github.com/DariuszGulbicki/Logging-Camp.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "colorizer",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/DariuszGulbicki/Colorizer"
    }
  ],
  "manifest_display_name" : "LoggingCamp",
  "name" : "LoggingCamp",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LoggingCamp",
      "targets" : [
        "LoggingCamp"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggingCampTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggingCampTests",
      "path" : "Tests/LoggingCampTests",
      "sources" : [
        "LoggingCampTests.swift"
      ],
      "target_dependencies" : [
        "LoggingCamp"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggingCamp",
      "module_type" : "SwiftTarget",
      "name" : "LoggingCamp",
      "path" : "Sources/LoggingCamp",
      "product_dependencies" : [
        "Colorizer"
      ],
      "product_memberships" : [
        "LoggingCamp"
      ],
      "sources" : [
        "LogLevel.swift",
        "Logger.swift",
        "LoggerPool.swift",
        "LoggingCamp.swift",
        "Operators.swift",
        "handlers/ColoredPrintLogHandler.swift",
        "handlers/LogHandler.swift",
        "handlers/PrintLogHandler.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:f193892c0330802c410074518c5e9f2dde15db311d4fc67a93260807f25db4d6
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/DariuszGulbicki/Colorizer
[1/59] Fetching colorizer
Fetched https://github.com/DariuszGulbicki/Colorizer from cache (0.22s)
Computing version for https://github.com/DariuszGulbicki/Colorizer
Computed https://github.com/DariuszGulbicki/Colorizer at 1.2.0 (0.70s)
Creating working copy for https://github.com/DariuszGulbicki/Colorizer
Working copy of https://github.com/DariuszGulbicki/Colorizer resolved at 1.2.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling Colorizer StringEffects.swift
[5/7] Emitting module Colorizer
[6/7] Compiling Colorizer EffectEscapeCode.swift
[7/7] Compiling Colorizer Colorizer.swift
[9/16] Compiling LoggingCamp Logger.swift
[10/17] Emitting module LoggingCamp
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:3:24: warning: static property '_pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | public class LoggerPool {
  2 |
  3 |     private static var _pools: [String:LoggerPool] = [:]
    |                        |- warning: static property '_pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '_pools' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '_pools' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  4 |
  5 |     public static var pools: [String:LoggerPool] {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:3:24: warning: static property 'defaultLoggerPool' is not concurrency-safe because non-'Sendable' type 'LoggerPool' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public class LoggingCamp {
 2 |
 3 |     private static let defaultLoggerPool = LoggerPool();
   |                        |- warning: static property 'defaultLoggerPool' is not concurrency-safe because non-'Sendable' type 'LoggerPool' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: add '@MainActor' to make static property 'defaultLoggerPool' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 4 |
 5 |     private static var _defaultLoggerName: String = "Main";
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:1:14: note: class 'LoggerPool' does not conform to the 'Sendable' protocol
  1 | public class LoggerPool {
    |              `- note: class 'LoggerPool' does not conform to the 'Sendable' protocol
  2 |
  3 |     private static var _pools: [String:LoggerPool] = [:]
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:5:24: warning: static property '_defaultLoggerName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 |     private static let defaultLoggerPool = LoggerPool();
 4 |
 5 |     private static var _defaultLoggerName: String = "Main";
   |                        |- warning: static property '_defaultLoggerName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert '_defaultLoggerName' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property '_defaultLoggerName' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     public static var defaultLoggerName: String {
 7 |         get {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:15:24: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     }
14 |
15 |     private static var handlers: [String:LogHandler] = ["default":ColoredPrintLogHandler()];
   |                        |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     private static var disabledHandlers: [String] = [];
17 |
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:16:24: warning: static property 'disabledHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     private static var handlers: [String:LogHandler] = ["default":ColoredPrintLogHandler()];
16 |     private static var disabledHandlers: [String] = [];
   |                        |- warning: static property 'disabledHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'disabledHandlers' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'disabledHandlers' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     private static var loggingLevel: LogLevel = .INFO;
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:18:24: warning: static property 'loggingLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |     private static var disabledHandlers: [String] = [];
17 |
18 |     private static var loggingLevel: LogLevel = .INFO;
   |                        |- warning: static property 'loggingLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'loggingLevel' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'loggingLevel' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 |     public static func getDefaulLoggerPool() -> LoggerPool {
[11/17] Compiling LoggingCamp LogLevel.swift
[12/17] Compiling LoggingCamp LoggerPool.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:3:24: warning: static property '_pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | public class LoggerPool {
  2 |
  3 |     private static var _pools: [String:LoggerPool] = [:]
    |                        |- warning: static property '_pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '_pools' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '_pools' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  4 |
  5 |     public static var pools: [String:LoggerPool] {
[13/17] Compiling LoggingCamp LogHandler.swift
[14/17] Compiling LoggingCamp Operators.swift
[15/17] Compiling LoggingCamp LoggingCamp.swift
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:3:24: warning: static property 'defaultLoggerPool' is not concurrency-safe because non-'Sendable' type 'LoggerPool' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public class LoggingCamp {
 2 |
 3 |     private static let defaultLoggerPool = LoggerPool();
   |                        |- warning: static property 'defaultLoggerPool' is not concurrency-safe because non-'Sendable' type 'LoggerPool' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: add '@MainActor' to make static property 'defaultLoggerPool' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 4 |
 5 |     private static var _defaultLoggerName: String = "Main";
/host/spi-builder-workspace/Sources/LoggingCamp/LoggerPool.swift:1:14: note: class 'LoggerPool' does not conform to the 'Sendable' protocol
  1 | public class LoggerPool {
    |              `- note: class 'LoggerPool' does not conform to the 'Sendable' protocol
  2 |
  3 |     private static var _pools: [String:LoggerPool] = [:]
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:5:24: warning: static property '_defaultLoggerName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 |     private static let defaultLoggerPool = LoggerPool();
 4 |
 5 |     private static var _defaultLoggerName: String = "Main";
   |                        |- warning: static property '_defaultLoggerName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert '_defaultLoggerName' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property '_defaultLoggerName' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     public static var defaultLoggerName: String {
 7 |         get {
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:15:24: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     }
14 |
15 |     private static var handlers: [String:LogHandler] = ["default":ColoredPrintLogHandler()];
   |                        |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     private static var disabledHandlers: [String] = [];
17 |
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:16:24: warning: static property 'disabledHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     private static var handlers: [String:LogHandler] = ["default":ColoredPrintLogHandler()];
16 |     private static var disabledHandlers: [String] = [];
   |                        |- warning: static property 'disabledHandlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'disabledHandlers' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'disabledHandlers' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     private static var loggingLevel: LogLevel = .INFO;
/host/spi-builder-workspace/Sources/LoggingCamp/LoggingCamp.swift:18:24: warning: static property 'loggingLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |     private static var disabledHandlers: [String] = [];
17 |
18 |     private static var loggingLevel: LogLevel = .INFO;
   |                        |- warning: static property 'loggingLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'loggingLevel' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'loggingLevel' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 |     public static func getDefaulLoggerPool() -> LoggerPool {
[16/17] Compiling LoggingCamp ColoredPrintLogHandler.swift
[17/17] Compiling LoggingCamp PrintLogHandler.swift
Build complete! (7.50s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "colorizer",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/DariuszGulbicki/Colorizer"
    }
  ],
  "manifest_display_name" : "LoggingCamp",
  "name" : "LoggingCamp",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LoggingCamp",
      "targets" : [
        "LoggingCamp"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggingCampTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggingCampTests",
      "path" : "Tests/LoggingCampTests",
      "sources" : [
        "LoggingCampTests.swift"
      ],
      "target_dependencies" : [
        "LoggingCamp"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggingCamp",
      "module_type" : "SwiftTarget",
      "name" : "LoggingCamp",
      "path" : "Sources/LoggingCamp",
      "product_dependencies" : [
        "Colorizer"
      ],
      "product_memberships" : [
        "LoggingCamp"
      ],
      "sources" : [
        "LogLevel.swift",
        "Logger.swift",
        "LoggerPool.swift",
        "LoggingCamp.swift",
        "Operators.swift",
        "handlers/ColoredPrintLogHandler.swift",
        "handlers/LogHandler.swift",
        "handlers/PrintLogHandler.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:f193892c0330802c410074518c5e9f2dde15db311d4fc67a93260807f25db4d6
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.