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 WrkstrmLog, reference main (fac456), with Swift 6.1 for Linux on 28 Apr 2025 23:58:30 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wrkstrm/WrkstrmLog.git
Reference: main
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/wrkstrm/WrkstrmLog
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fac4567 Update Log.swift
Cloned https://github.com/wrkstrm/WrkstrmLog.git
Revision (git rev-parse @):
fac4567913a6645d6069c96c168eefe3ac53494b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/wrkstrm/WrkstrmLog.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/wrkstrm/WrkstrmLog.git
https://github.com/wrkstrm/WrkstrmLog.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "WrkstrmLog",
  "name" : "WrkstrmLog",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "WrkstrmLog",
      "targets" : [
        "WrkstrmLog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WrkstrmLogTests",
      "module_type" : "SwiftTarget",
      "name" : "WrkstrmLogTests",
      "path" : "Tests/WrkstrmLogTests",
      "sources" : [
        "WrkstrmLogTests.swift"
      ],
      "target_dependencies" : [
        "WrkstrmLog"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WrkstrmLog",
      "module_type" : "SwiftTarget",
      "name" : "WrkstrmLog",
      "path" : "Sources/WrkstrmLog",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "WrkstrmLog"
      ],
      "sources" : [
        "Level+Emoji.swift",
        "Level+OSLogType.swift",
        "Log+Shared.swift",
        "Log.swift",
        "ProcessInfo+Xcode.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-log.git
[1/2049] Fetching swift-docc-plugin
[227/5885] Fetching swift-docc-plugin, swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.04s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.05s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (1.96s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3377] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.68s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.41s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.52s)
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.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/10] Compiling Logging Logging.swift
[7/10] Compiling Logging Locks.swift
[8/10] Compiling Logging LogHandler.swift
[9/10] Emitting module Logging
[10/10] Compiling Logging MetadataProvider.swift
[12/17] Compiling WrkstrmLog ProcessInfo+Xcode.swift
[13/17] Compiling WrkstrmLog Log.swift
/host/spi-builder-workspace/Sources/WrkstrmLog/Log.swift:52:22: warning: static property 'swiftLoggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 50 |   #endif  // canImport(os)
 51 |
 52 |   private static var swiftLoggers: [Self: Logging.Logger] = [:]
    |                      |- warning: static property 'swiftLoggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'swiftLoggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: add '@MainActor' to make static property 'swiftLoggers' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |
 54 |   #if canImport(os)
[14/17] Compiling WrkstrmLog Level+OSLogType.swift
[15/17] Compiling WrkstrmLog Level+Emoji.swift
[16/17] Emitting module WrkstrmLog
/host/spi-builder-workspace/Sources/WrkstrmLog/Log+Shared.swift:11:21: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  9 |   /// Log.shared.info("Application started")
 10 |   /// ```
 11 |   public static var shared = Log(system: "wrkstrm", category: "shared") {
    |                     |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 12 |     didSet {
 13 |       shared.verbose("New Logger: \(shared)")
/host/spi-builder-workspace/Sources/WrkstrmLog/Log.swift:52:22: warning: static property 'swiftLoggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 50 |   #endif  // canImport(os)
 51 |
 52 |   private static var swiftLoggers: [Self: Logging.Logger] = [:]
    |                      |- warning: static property 'swiftLoggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'swiftLoggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: add '@MainActor' to make static property 'swiftLoggers' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |
 54 |   #if canImport(os)
[17/17] Compiling WrkstrmLog Log+Shared.swift
/host/spi-builder-workspace/Sources/WrkstrmLog/Log+Shared.swift:11:21: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  9 |   /// Log.shared.info("Application started")
 10 |   /// ```
 11 |   public static var shared = Log(system: "wrkstrm", category: "shared") {
    |                     |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 12 |     didSet {
 13 |       shared.verbose("New Logger: \(shared)")
Build complete! (26.76s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "WrkstrmLog",
  "name" : "WrkstrmLog",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "WrkstrmLog",
      "targets" : [
        "WrkstrmLog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WrkstrmLogTests",
      "module_type" : "SwiftTarget",
      "name" : "WrkstrmLogTests",
      "path" : "Tests/WrkstrmLogTests",
      "sources" : [
        "WrkstrmLogTests.swift"
      ],
      "target_dependencies" : [
        "WrkstrmLog"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WrkstrmLog",
      "module_type" : "SwiftTarget",
      "name" : "WrkstrmLog",
      "path" : "Sources/WrkstrmLog",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "WrkstrmLog"
      ],
      "sources" : [
        "Level+Emoji.swift",
        "Level+OSLogType.swift",
        "Log+Shared.swift",
        "Log.swift",
        "ProcessInfo+Xcode.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.