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 package-concurrency-helpers, reference main (eb5a56), with Swift 6.1 for macOS (SPM) on 1 May 2025 05:14:33 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-concurrency-helpers.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ordo-one/package-concurrency-helpers
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at eb5a564 fix(patch): avoid closure escaping in runSync() (#70)
Cloned https://github.com/ordo-one/package-concurrency-helpers.git
Revision (git rev-parse @):
eb5a5642ad0cbce123e7773b422bfcfce48c5728
SUCCESS checkout https://github.com/ordo-one/package-concurrency-helpers.git at main
Fetching https://github.com/mattgallagher/CwlPreconditionTesting
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-atomics from cache
[1/1257] Fetching cwlpreconditiontesting
[203/3306] Fetching cwlpreconditiontesting, swift-docc-plugin
Fetched https://github.com/apple/swift-atomics from cache (0.78s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting from cache (1.18s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.18s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (1.67s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting
Computed https://github.com/mattgallagher/CwlPreconditionTesting at 2.2.2 (0.55s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/455] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.63s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (1.19s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.54s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.78s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.40s)
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting resolved at 2.2.2
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/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.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
========================================
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": "package-concurrency-helpers",
      "name": "package-concurrency-helpers",
      "url": "https://github.com/ordo-one/package-concurrency-helpers.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/package-concurrency-helpers",
      "dependencies": [
        {
          "identity": "swift-atomics",
          "name": "swift-atomics",
          "url": "https://github.com/apple/swift-atomics",
          "version": "1.2.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/ordo-one/package-concurrency-helpers.git
[1/1298] Fetching package-concurrency-helpers
Fetched https://github.com/ordo-one/package-concurrency-helpers.git from cache (0.83s)
Fetching https://github.com/apple/swift-atomics from cache
Fetched https://github.com/apple/swift-atomics from cache (0.49s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.56s)
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/ordo-one/package-concurrency-helpers.git
Working copy of https://github.com/ordo-one/package-concurrency-helpers.git resolved at main (eb5a564)
warning: '.resolve-product-dependencies': dependency 'package-concurrency-helpers' is not used by any target
Found 1 product dependencies
  - swift-atomics
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ordo-one/package-concurrency-helpers.git
https://github.com/ordo-one/package-concurrency-helpers.git
{
  "dependencies" : [
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "cwlpreconditiontesting",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mattgallagher/CwlPreconditionTesting"
    }
  ],
  "manifest_display_name" : "package-concurrency-helpers",
  "name" : "package-concurrency-helpers",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "PackageConcurrencyHelpers",
      "targets" : [
        "PackageConcurrencyHelpers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Helpers",
      "targets" : [
        "Helpers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "_PauseShims",
      "module_type" : "ClangTarget",
      "name" : "_PauseShims",
      "path" : "Sources/_PauseShims",
      "product_memberships" : [
        "PackageConcurrencyHelpers"
      ],
      "sources" : [
        "_PauseShims.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PackageConcurrencyHelpers",
      "module_type" : "SwiftTarget",
      "name" : "PackageConcurrencyHelpers",
      "path" : "Sources/ConcurrencyHelpers",
      "product_dependencies" : [
        "Atomics"
      ],
      "product_memberships" : [
        "PackageConcurrencyHelpers"
      ],
      "sources" : [
        "ForBlockingCall.swift",
        "Lock.swift",
        "Lockable.swift",
        "NIOSendable.swift",
        "Protected.swift",
        "RunSync.swift",
        "Spinlock.swift",
        "UnsafeSendableWrapper.swift",
        "YieldWithBackPressure.swift"
      ],
      "target_dependencies" : [
        "_PauseShims"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HelpersTests",
      "module_type" : "SwiftTarget",
      "name" : "HelpersTests",
      "path" : "Tests/HelpersTests",
      "sources" : [
        "BoxTests.swift",
        "TimeIntervalCounterTests.swift"
      ],
      "target_dependencies" : [
        "Helpers",
        "PackageConcurrencyHelpers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Helpers",
      "module_type" : "SwiftTarget",
      "name" : "Helpers",
      "path" : "Sources/Helpers",
      "product_memberships" : [
        "Helpers"
      ],
      "sources" : [
        "Box.swift",
        "IsBeingDebugged.swift",
        "MakeStream.swift",
        "NearestPowerOf2.swift",
        "TimeIntervalCounter.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ConcurrencyHelpersTests",
      "module_type" : "SwiftTarget",
      "name" : "ConcurrencyHelpersTests",
      "path" : "Tests/ConcurrencyHelpersTests",
      "product_dependencies" : [
        "CwlPreconditionTesting"
      ],
      "sources" : [
        "ConcurrencyHelpersTests.swift"
      ],
      "target_dependencies" : [
        "PackageConcurrencyHelpers"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/8] Write sources
[5/8] Compiling _PauseShims _PauseShims.c
[6/8] Write swift-version-2F0A5646E1D333AE.txt
[7/8] Compiling _AtomicsShims.c
[9/33] Compiling Atomics UnsafeAtomic.swift
[10/33] Compiling Atomics UnsafeAtomicLazyReference.swift
[11/33] Compiling Atomics ManagedAtomic.swift
[12/33] Compiling Atomics ManagedAtomicLazyReference.swift
[13/35] Compiling Atomics IntegerOperations.swift
[14/35] Compiling Atomics Unmanaged extensions.swift
[15/35] Compiling Atomics AtomicStorage.swift
[16/35] Compiling Atomics AtomicValue.swift
[17/35] Compiling Atomics AtomicBool.swift
[18/35] Compiling Atomics IntegerConformances.swift
[19/35] Compiling Atomics AtomicOptionalWrappable.swift
[20/35] Compiling Atomics AtomicReference.swift
[21/35] Compiling Atomics Primitives.shims.swift
[22/35] Compiling Atomics AtomicInteger.swift
[23/35] Compiling Atomics OptionalRawRepresentable.swift
[24/35] Compiling Atomics RawRepresentable.swift
[25/35] Compiling Atomics AtomicMemoryOrderings.swift
[26/35] Compiling Atomics DoubleWord.swift
[27/35] Compiling Atomics PointerConformances.swift
[28/35] Compiling Atomics Primitives.native.swift
[29/35] Emitting module Atomics
[30/45] Compiling PackageConcurrencyHelpers NIOSendable.swift
[31/45] Compiling PackageConcurrencyHelpers Lockable.swift
[32/45] Emitting module PackageConcurrencyHelpers
/Users/admin/builder/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:22:25: warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
20 | public final class Lock {
21 |     #if os(macOS)
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
   |                         `- warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[33/45] Compiling PackageConcurrencyHelpers Spinlock.swift
[34/45] Compiling PackageConcurrencyHelpers UnsafeSendableWrapper.swift
[35/45] Compiling PackageConcurrencyHelpers YieldWithBackPressure.swift
/Users/admin/builder/spi-builder-workspace/Sources/ConcurrencyHelpers/YieldWithBackPressure.swift:22:35: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
20 |                                            to continuation: AsyncStream<Message>.Continuation) async -> Bool {
21 |     while true {
22 |         let result = continuation.yield(message)
   |                                   |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
   |                                   `- note: task-isolated 'message' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 |         switch result {
24 |         case .terminated:
[36/45] Compiling PackageConcurrencyHelpers Lock.swift
/Users/admin/builder/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:22:25: warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
20 | public final class Lock {
21 |     #if os(macOS)
22 |         fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
   |                         `- warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
23 |     #else
24 |         fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[37/45] Compiling PackageConcurrencyHelpers Protected.swift
[38/45] Compiling PackageConcurrencyHelpers RunSync.swift
[39/45] Compiling PackageConcurrencyHelpers ForBlockingCall.swift
[40/45] Compiling Helpers TimeIntervalCounter.swift
[41/45] Compiling Helpers MakeStream.swift
[42/45] Compiling Helpers NearestPowerOf2.swift
[43/45] Compiling Helpers IsBeingDebugged.swift
[44/45] Emitting module Helpers
[45/45] Compiling Helpers Box.swift
Build complete! (14.28s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "cwlpreconditiontesting",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mattgallagher/CwlPreconditionTesting"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics"
    }
  ],
  "manifest_display_name" : "package-concurrency-helpers",
  "name" : "package-concurrency-helpers",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "PackageConcurrencyHelpers",
      "targets" : [
        "PackageConcurrencyHelpers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Helpers",
      "targets" : [
        "Helpers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "_PauseShims",
      "module_type" : "ClangTarget",
      "name" : "_PauseShims",
      "path" : "Sources/_PauseShims",
      "product_memberships" : [
        "PackageConcurrencyHelpers"
      ],
      "sources" : [
        "_PauseShims.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PackageConcurrencyHelpers",
      "module_type" : "SwiftTarget",
      "name" : "PackageConcurrencyHelpers",
      "path" : "Sources/ConcurrencyHelpers",
      "product_dependencies" : [
        "Atomics"
      ],
      "product_memberships" : [
        "PackageConcurrencyHelpers"
      ],
      "sources" : [
        "ForBlockingCall.swift",
        "Lock.swift",
        "Lockable.swift",
        "NIOSendable.swift",
        "Protected.swift",
        "RunSync.swift",
        "Spinlock.swift",
        "UnsafeSendableWrapper.swift",
        "YieldWithBackPressure.swift"
      ],
      "target_dependencies" : [
        "_PauseShims"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HelpersTests",
      "module_type" : "SwiftTarget",
      "name" : "HelpersTests",
      "path" : "Tests/HelpersTests",
      "sources" : [
        "BoxTests.swift",
        "TimeIntervalCounterTests.swift"
      ],
      "target_dependencies" : [
        "Helpers",
        "PackageConcurrencyHelpers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Helpers",
      "module_type" : "SwiftTarget",
      "name" : "Helpers",
      "path" : "Sources/Helpers",
      "product_memberships" : [
        "Helpers"
      ],
      "sources" : [
        "Box.swift",
        "IsBeingDebugged.swift",
        "MakeStream.swift",
        "NearestPowerOf2.swift",
        "TimeIntervalCounter.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ConcurrencyHelpersTests",
      "module_type" : "SwiftTarget",
      "name" : "ConcurrencyHelpersTests",
      "path" : "Tests/ConcurrencyHelpersTests",
      "product_dependencies" : [
        "CwlPreconditionTesting"
      ],
      "sources" : [
        "ConcurrencyHelpersTests.swift"
      ],
      "target_dependencies" : [
        "PackageConcurrencyHelpers"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.8"
}
Done.