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 B9Condition, reference main (8b7d6f), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 00:54:40 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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/b9swift/Condition.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/b9swift/Condition
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8b7d6f2 Merge branch 'develop'
Cloned https://github.com/b9swift/Condition.git
Revision (git rev-parse @):
8b7d6f223a395d792f1a3f9c869f62eec29a52db
SUCCESS checkout https://github.com/b9swift/Condition.git at main
Fetching https://github.com/b9swift/Action.git
[1/45] Fetching action
Fetched https://github.com/b9swift/Action.git from cache (0.66s)
Computing version for https://github.com/b9swift/Action.git
Computed https://github.com/b9swift/Action.git at 1.1.0 (0.56s)
Creating working copy for https://github.com/b9swift/Action.git
Working copy of https://github.com/b9swift/Action.git resolved at 1.1.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": "condition",
      "name": "B9Condition",
      "url": "https://github.com/b9swift/Condition.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Condition",
      "dependencies": [
        {
          "identity": "action",
          "name": "B9Action",
          "url": "https://github.com/b9swift/Action.git",
          "version": "1.1.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Action",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/b9swift/Condition.git
[1/51] Fetching condition
Fetched https://github.com/b9swift/Condition.git from cache (0.60s)
Fetching https://github.com/b9swift/Action.git from cache
Fetched https://github.com/b9swift/Action.git from cache (0.45s)
Computing version for https://github.com/b9swift/Action.git
Computed https://github.com/b9swift/Action.git at 1.1.0 (0.02s)
Creating working copy for https://github.com/b9swift/Condition.git
Working copy of https://github.com/b9swift/Condition.git resolved at main (8b7d6f2)
Creating working copy for https://github.com/b9swift/Action.git
Working copy of https://github.com/b9swift/Action.git resolved at 1.1.0
warning: '.resolve-product-dependencies': dependency 'condition' is not used by any target
Found 1 product dependencies
  - B9Action
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/b9swift/Condition.git
{
  "dependencies" : [
    {
      "identity" : "action",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/b9swift/Action.git"
    }
  ],
  "manifest_display_name" : "B9Condition",
  "name" : "B9Condition",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "B9Condition",
      "targets" : [
        "B9Condition"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "B9ConditionTests",
      "module_type" : "SwiftTarget",
      "name" : "B9ConditionTests",
      "path" : "Tests/B9ConditionTests",
      "sources" : [
        "B9ConditionTests.swift"
      ],
      "target_dependencies" : [
        "B9Condition"
      ],
      "type" : "test"
    },
    {
      "c99name" : "B9Condition",
      "module_type" : "SwiftTarget",
      "name" : "B9Condition",
      "path" : "Sources/B9Condition",
      "product_dependencies" : [
        "B9Action"
      ],
      "product_memberships" : [
        "B9Condition"
      ],
      "sources" : [
        "B9Condition.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/5] Emitting module B9Action
[5/5] Compiling B9Action B9Action.swift
[6/7] Compiling B9Condition B9Condition.swift
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:107:32: warning: capture of 'self' with non-sendable type 'Condition<T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 |
 28 |  */
 29 | public final class Condition<T: SetAlgebra> {
    |                    `- note: generic class 'Condition' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Create a new Condition instance
    :
105 |         if timeout > 0 {
106 |             queue.asyncAfter(deadline: .now() + timeout) { [weak self, weak observer] in
107 |                 guard let sf = self, let observer = observer else { return }
    |                                `- warning: capture of 'self' with non-sendable type 'Condition<T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |                 sf.remove(observer: observer)
109 |             }
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:107:53: warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 |         if timeout > 0 {
106 |             queue.asyncAfter(deadline: .now() + timeout) { [weak self, weak observer] in
107 |                 guard let sf = self, let observer = observer else { return }
    |                                                     `- warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |                 sf.remove(observer: observer)
109 |             }
    :
149 |     }
150 |
151 |     internal final class Observer: CustomDebugStringConvertible {
    |                          `- note: class 'Observer' does not conform to the 'Sendable' protocol
152 |         let flags: T
153 |         let action: Action
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:135:32: warning: capture of 'self' with non-sendable type 'Condition<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 |
 28 |  */
 29 | public final class Condition<T: SetAlgebra> {
    |                    `- note: generic class 'Condition' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Create a new Condition instance
    :
133 |                         otherQueue.async {
134 |                             // 需临时保持实例
135 |                             if self.meets(observer.flags) {
    |                                `- warning: capture of 'self' with non-sendable type 'Condition<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |                                 self.execute(observer: observer)
137 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:135:43: warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 |                         otherQueue.async {
134 |                             // 需临时保持实例
135 |                             if self.meets(observer.flags) {
    |                                           `- warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |                                 self.execute(observer: observer)
137 |                             }
    :
149 |     }
150 |
151 |     internal final class Observer: CustomDebugStringConvertible {
    |                          `- note: class 'Observer' does not conform to the 'Sendable' protocol
152 |         let flags: T
153 |         let action: Action
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:189:28: warning: capture of 'self' with non-sendable type 'Condition<T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 |
 28 |  */
 29 | public final class Condition<T: SetAlgebra> {
    |                    `- note: generic class 'Condition' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Create a new Condition instance
    :
187 |         lock.unlock()
188 |         (observer.queue ?? queue).async { [weak self, weak observer] in
189 |             guard let sf = self, let observer = observer else { return }
    |                            `- warning: capture of 'self' with non-sendable type 'Condition<T>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
190 |             if sf.meets(observer.flags) {
191 |                 sf.execute(observer: observer)
/Users/admin/builder/spi-builder-workspace/Sources/B9Condition/B9Condition.swift:189:49: warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 |     }
150 |
151 |     internal final class Observer: CustomDebugStringConvertible {
    |                          `- note: class 'Observer' does not conform to the 'Sendable' protocol
152 |         let flags: T
153 |         let action: Action
    :
187 |         lock.unlock()
188 |         (observer.queue ?? queue).async { [weak self, weak observer] in
189 |             guard let sf = self, let observer = observer else { return }
    |                                                 `- warning: capture of 'observer' with non-sendable type 'Condition<T>.Observer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
190 |             if sf.meets(observer.flags) {
191 |                 sf.execute(observer: observer)
[7/7] Emitting module B9Condition
Build complete! (8.94s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "action",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/b9swift/Action.git"
    }
  ],
  "manifest_display_name" : "B9Condition",
  "name" : "B9Condition",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "B9Condition",
      "targets" : [
        "B9Condition"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "B9ConditionTests",
      "module_type" : "SwiftTarget",
      "name" : "B9ConditionTests",
      "path" : "Tests/B9ConditionTests",
      "sources" : [
        "B9ConditionTests.swift"
      ],
      "target_dependencies" : [
        "B9Condition"
      ],
      "type" : "test"
    },
    {
      "c99name" : "B9Condition",
      "module_type" : "SwiftTarget",
      "name" : "B9Condition",
      "path" : "Sources/B9Condition",
      "product_dependencies" : [
        "B9Action"
      ],
      "product_memberships" : [
        "B9Condition"
      ],
      "sources" : [
        "B9Condition.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.