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 ContextKit, reference 0.2.1 (d68c64), with Swift 6.1 for Linux on 25 Apr 2025 22:58:33 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/nerdsupremacist/ContextKit.git
Reference: 0.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/nerdsupremacist/ContextKit
 * tag               0.2.1      -> FETCH_HEAD
HEAD is now at d68c64d Making mutable context use dynamic member lookup
Cloned https://github.com/nerdsupremacist/ContextKit.git
Revision (git rev-parse @):
d68c64dd4ed4c616bb5fd58f9d19d939a1735f20
SUCCESS checkout https://github.com/nerdsupremacist/ContextKit.git at 0.2.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/nerdsupremacist/ContextKit.git
https://github.com/nerdsupremacist/ContextKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ContextKit",
  "name" : "ContextKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "ContextKit",
      "targets" : [
        "ContextKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ContextKit",
      "module_type" : "SwiftTarget",
      "name" : "ContextKit",
      "path" : "Sources/ContextKit",
      "product_memberships" : [
        "ContextKit"
      ],
      "sources" : [
        "AnyContextProtocol.swift",
        "Array+ContextProtocol.swift",
        "Context.swift",
        "ContextBuilder.swift",
        "ContextElement.swift",
        "ContextFactory.swift",
        "ContextKeyAssignment.swift",
        "ContextProtocol.swift",
        "MutableContext.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling ContextKit ContextElement.swift
[4/12] Compiling ContextKit ContextFactory.swift
/host/spi-builder-workspace/Sources/ContextKit/ContextFactory.swift:5:16: warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Foundation
 3 |
 4 | public class ContextKeyPaths {
   |              `- note: class 'ContextKeyPaths' does not conform to the 'Sendable' protocol
 5 |     static let factory = ContextKeyPaths()
   |                |- warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'factory' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     private var keys = [KeyPath<ContextKeyPaths, Context.AnyKey> : Context.AnyKey]()
[5/12] Compiling ContextKit ContextKeyAssignment.swift
[6/12] Compiling ContextKit ContextProtocol.swift
[7/12] Compiling ContextKit MutableContext.swift
[8/12] Compiling ContextKit ContextBuilder.swift
/host/spi-builder-workspace/Sources/ContextKit/ContextBuilder.swift:4:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 2 | import Foundation
 3 |
 4 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 5 | public struct ContextBuilder {
 6 |
[9/12] Compiling ContextKit Context.swift
/host/spi-builder-workspace/Sources/ContextKit/Context.swift:42:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | @dynamicMemberLookup
 5 | public struct Context {
   |               `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 6 |     public class AnyKey: NSObject {
 7 |         fileprivate override init() {
   :
40 | extension Context {
41 |
42 |     public static let empty = Context(dictionary: [:])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | }
[10/12] Emitting module ContextKit
/host/spi-builder-workspace/Sources/ContextKit/ContextBuilder.swift:4:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 2 | import Foundation
 3 |
 4 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 5 | public struct ContextBuilder {
 6 |
/host/spi-builder-workspace/Sources/ContextKit/Context.swift:42:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | @dynamicMemberLookup
 5 | public struct Context {
   |               `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 6 |     public class AnyKey: NSObject {
 7 |         fileprivate override init() {
   :
40 | extension Context {
41 |
42 |     public static let empty = Context(dictionary: [:])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | }
/host/spi-builder-workspace/Sources/ContextKit/ContextFactory.swift:5:16: warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Foundation
 3 |
 4 | public class ContextKeyPaths {
   |              `- note: class 'ContextKeyPaths' does not conform to the 'Sendable' protocol
 5 |     static let factory = ContextKeyPaths()
   |                |- warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'factory' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     private var keys = [KeyPath<ContextKeyPaths, Context.AnyKey> : Context.AnyKey]()
[11/12] Compiling ContextKit AnyContextProtocol.swift
[12/12] Compiling ContextKit Array+ContextProtocol.swift
Build complete! (10.04s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ContextKit",
  "name" : "ContextKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "ContextKit",
      "targets" : [
        "ContextKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ContextKit",
      "module_type" : "SwiftTarget",
      "name" : "ContextKit",
      "path" : "Sources/ContextKit",
      "product_memberships" : [
        "ContextKit"
      ],
      "sources" : [
        "AnyContextProtocol.swift",
        "Array+ContextProtocol.swift",
        "Context.swift",
        "ContextBuilder.swift",
        "ContextElement.swift",
        "ContextFactory.swift",
        "ContextKeyAssignment.swift",
        "ContextProtocol.swift",
        "MutableContext.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.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
Done.