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 master (d68c64), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 04:44:29 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nerdsupremacist/ContextKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nerdsupremacist/ContextKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "contextkit",
      "name": "ContextKit",
      "url": "https://github.com/nerdsupremacist/ContextKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ContextKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/nerdsupremacist/ContextKit.git
[1/41] Fetching contextkit
Fetched https://github.com/nerdsupremacist/ContextKit.git from cache (0.66s)
Creating working copy for https://github.com/nerdsupremacist/ContextKit.git
Working copy of https://github.com/nerdsupremacist/ContextKit.git resolved at master (d68c64d)
warning: '.resolve-product-dependencies': dependency 'contextkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/nerdsupremacist/ContextKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling ContextKit ContextElement.swift
[4/12] Compiling ContextKit Array+ContextProtocol.swift
[5/12] Compiling ContextKit ContextBuilder.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
[6/12] Compiling ContextKit ContextProtocol.swift
[7/12] Emitting module ContextKit
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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]()
[8/12] Compiling ContextKit AnyContextProtocol.swift
[9/12] Compiling ContextKit MutableContext.swift
/Users/admin/builder/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 | }
[10/12] Compiling ContextKit Context.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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]()
[11/12] Compiling ContextKit ContextFactory.swift
/Users/admin/builder/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 ContextKeyAssignment.swift
Build complete! (12.82s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ContextKit",
  "name" : "ContextKit",
  "path" : "/Users/admin/builder/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"
}
Done.