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 SwiftAsyncSerialQueue, reference 0.2.0 (08eb62), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 06:29:44 UTC.

Swift 6 data race errors: 0

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/dannys42/SwiftAsyncSerialQueue.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dannys42/SwiftAsyncSerialQueue
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 08eb625 Remove unused code
Cloned https://github.com/dannys42/SwiftAsyncSerialQueue.git
Revision (git rev-parse @):
08eb6252d4765a9a94957872aa578b8d7a667429
SUCCESS checkout https://github.com/dannys42/SwiftAsyncSerialQueue.git at 0.2.0
========================================
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": "swiftasyncserialqueue",
      "name": "SwiftAsyncSerialQueue",
      "url": "https://github.com/dannys42/SwiftAsyncSerialQueue.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftAsyncSerialQueue",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dannys42/SwiftAsyncSerialQueue.git
[1/142] Fetching swiftasyncserialqueue
Fetched https://github.com/dannys42/SwiftAsyncSerialQueue.git from cache (0.68s)
Creating working copy for https://github.com/dannys42/SwiftAsyncSerialQueue.git
Working copy of https://github.com/dannys42/SwiftAsyncSerialQueue.git resolved at 0.2.0 (08eb625)
warning: '.resolve-product-dependencies': dependency 'swiftasyncserialqueue' 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/dannys42/SwiftAsyncSerialQueue.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/6] Compiling AsyncSerialQueue SimpleLock.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncSerialQueue/Internal/SimpleLock.swift:25:18: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 20 |
 21 | @propertyWrapper
 22 | struct SimpleLock<Value>: SimpleLockInterface {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 23 |     var wrappedValue: Value {
 24 |         get {
 25 |             self.withLock({ $0 })
    |                  `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 26 |         }
 27 |         set {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncSerialQueue/Internal/SimpleLock.swift:28:34: warning: capture of 'newValue' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 20 |
 21 | @propertyWrapper
 22 | struct SimpleLock<Value>: SimpleLockInterface {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
 23 |     var wrappedValue: Value {
 24 |         get {
    :
 26 |         }
 27 |         set {
 28 |             self.withLock({ $0 = newValue })
    |                                  `- warning: capture of 'newValue' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 |         }
 30 |     }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncSerialQueue/Internal/SimpleLock.swift:73:28: warning: type 'V' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 66 |
 67 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, visionOS 1.0, *)
 68 | final class SimpleUnfairLock<V>: @unchecked Sendable, SimpleLockInterface {
    |                              `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
 69 |
 70 |     private var unfairLock: OSAllocatedUnfairLock<V>
 71 |
 72 |     init(initialState: V) {
 73 |         self.unfairLock = .init(initialState: initialState)
    |                            `- warning: type 'V' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 74 |     }
 75 |
[4/6] Compiling AsyncSerialQueue Executor.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncSerialQueue/Internal/Executor.swift:27:55: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
25 |         self.taskStream = taskStream
26 |
27 |         self.task = Task.detached(priority: priority) {
   |                                                       `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 |             for await closure in taskStream {
29 |                 await closure()
   :
34 |             }
35 |
36 |             await completion()
   |                   `- note: closure captures 'completion' which is accessible to code in the current task
37 |         }
38 |     }
[5/6] Compiling AsyncSerialQueue AsyncSerialQueue.swift
[6/6] Emitting module AsyncSerialQueue
Build complete! (8.16s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftAsyncSerialQueue",
  "name" : "SwiftAsyncSerialQueue",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncSerialQueue",
      "targets" : [
        "AsyncSerialQueue"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncSerialQueueTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncSerialQueueTests",
      "path" : "Tests/AsyncSerialQueueTests",
      "sources" : [
        "ExecutorRetainCycleTests.swift",
        "ReentrancyTests.swift",
        "RetainCycleTests.swift",
        "SwiftAsyncSerialQueueTests.swift",
        "TestConfiguration.swift",
        "Utilities/ArrayExtension.swift",
        "Utilities/DispatchGroupExtension.swift",
        "Utilities/ThreadSafeCounter.swift",
        "Utilities/ThreadSafeIntArray.swift",
        "Utilities/WeakBox.swift"
      ],
      "target_dependencies" : [
        "AsyncSerialQueue"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncSerialQueue",
      "module_type" : "SwiftTarget",
      "name" : "AsyncSerialQueue",
      "path" : "Sources/AsyncSerialQueue",
      "product_memberships" : [
        "AsyncSerialQueue"
      ],
      "sources" : [
        "AsyncSerialQueue.swift",
        "Internal/Executor.swift",
        "Internal/SimpleLock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.