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.0 for Linux on 1 Nov 2024 04:38:10 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.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.56.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.0
Building package at path:  $PWD
https://github.com/nerdsupremacist/ContextKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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 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 |
/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: annotate 'empty' 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
43 |
44 | }
[5/12] Compiling ContextKit ContextProtocol.swift
[6/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: annotate 'factory' 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
 6 |
 7 |     private var keys = [KeyPath<ContextKeyPaths, Context.AnyKey> : Context.AnyKey]()
[7/12] Compiling ContextKit ContextKeyAssignment.swift
[8/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: annotate 'empty' 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
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: annotate 'factory' 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
 6 |
 7 |     private var keys = [KeyPath<ContextKeyPaths, Context.AnyKey> : Context.AnyKey]()
[9/12] Compiling ContextKit AnyContextProtocol.swift
[10/12] Compiling ContextKit Array+ContextProtocol.swift
[11/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: annotate 'empty' 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
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: annotate 'factory' 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
 6 |
 7 |     private var keys = [KeyPath<ContextKeyPaths, Context.AnyKey> : Context.AnyKey]()
[12/12] Compiling ContextKit MutableContext.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: annotate 'empty' 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
43 |
44 | }
Build complete! (13.84s)
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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.