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 AsyncOperations, reference main (176a80), with Swift 6.0 for macOS (SPM) on 5 Jan 2025 09:48:04 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Frizlab/AsyncOperations.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Frizlab/AsyncOperations
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 176a804 Use Task.sleep to sleep in async context
Cloned https://github.com/Frizlab/AsyncOperations.git
Revision (git rev-parse @):
176a804c0825e2ce72adc779dd3cd605ffb80ed7
SUCCESS checkout https://github.com/Frizlab/AsyncOperations.git at main
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/happn-app/RetryingOperation.git
[1/395] Fetching retryingoperation
[396/4127] Fetching retryingoperation, swift-log
Fetched https://github.com/happn-app/RetryingOperation.git from cache (1.21s)
Fetched https://github.com/apple/swift-log.git from cache (1.21s)
Computing version for https://github.com/happn-app/RetryingOperation.git
Computed https://github.com/happn-app/RetryingOperation.git at 1.1.7 (0.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.2 (0.54s)
Creating working copy for https://github.com/happn-app/RetryingOperation.git
Working copy of https://github.com/happn-app/RetryingOperation.git resolved at 1.1.7
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.2
========================================
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": "asyncoperations",
      "name": "AsyncOperations",
      "url": "https://github.com/Frizlab/AsyncOperations.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AsyncOperations",
      "dependencies": [
        {
          "identity": "retryingoperation",
          "name": "RetryingOperation",
          "url": "https://github.com/happn-app/RetryingOperation.git",
          "version": "1.1.8",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RetryingOperation",
          "dependencies": [
            {
              "identity": "swift-log",
              "name": "swift-log",
              "url": "https://github.com/apple/swift-log.git",
              "version": "1.6.2",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Frizlab/AsyncOperations.git
[1/31] Fetching asyncoperations
Fetched https://github.com/Frizlab/AsyncOperations.git from cache (0.56s)
Fetching https://github.com/happn-app/RetryingOperation.git from cache
Fetched https://github.com/happn-app/RetryingOperation.git from cache (0.49s)
Computing version for https://github.com/happn-app/RetryingOperation.git
Computed https://github.com/happn-app/RetryingOperation.git at 1.1.8 (0.54s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.41s)
Creating working copy for https://github.com/happn-app/RetryingOperation.git
Working copy of https://github.com/happn-app/RetryingOperation.git resolved at 1.1.8
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Creating working copy for https://github.com/Frizlab/AsyncOperations.git
Working copy of https://github.com/Frizlab/AsyncOperations.git resolved at main (176a804)
warning: '.resolve-product-dependencies': dependency 'asyncoperations' is not used by any target
Found 1 product dependencies
  - RetryingOperation
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Frizlab/AsyncOperations.git
https://github.com/Frizlab/AsyncOperations.git
{
  "dependencies" : [
    {
      "identity" : "retryingoperation",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.7",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/happn-app/RetryingOperation.git"
    }
  ],
  "manifest_display_name" : "AsyncOperations",
  "name" : "AsyncOperations",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncOperations",
      "targets" : [
        "AsyncOperations"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncOperationsTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncOperationsTests",
      "path" : "Tests/AsyncOperationsTests",
      "sources" : [
        "AsyncOperationsTests.swift"
      ],
      "target_dependencies" : [
        "AsyncOperations"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncOperations",
      "module_type" : "SwiftTarget",
      "name" : "AsyncOperations",
      "path" : "Sources/AsyncOperations",
      "product_dependencies" : [
        "RetryingOperation"
      ],
      "product_memberships" : [
        "AsyncOperations"
      ],
      "sources" : [
        "AsyncBlockOperation.swift",
        "AsyncOperation.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/4] Write sources
[3/4] Write swift-version-5BDAB9E9C0126B9D.txt
[5/8] Compiling Logging LogHandler.swift
[6/8] Emitting module Logging
[7/8] Compiling Logging Locks.swift
[8/8] Compiling Logging Logging.swift
[9/13] Compiling RetryingOperation RetryingOperationConfig.swift
[10/13] Compiling RetryingOperation WrappedRetryingOperation.swift
[11/13] Compiling RetryingOperation RetryHelper.swift
[12/13] Emitting module RetryingOperation
[13/13] Compiling RetryingOperation RetryingOperation.swift
[14/16] Compiling AsyncOperations AsyncOperation.swift
[15/16] Compiling AsyncOperations AsyncBlockOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncOperations/AsyncBlockOperation.swift:13:14: warning: class 'AsyncBlockOperation' must restate inherited '@unchecked Sendable' conformance
11 |
12 |  See ``addAsyncBlock(startHandler:)`` in the OperationQueue extension for more information. */
13 | public class AsyncBlockOperation : RetryingOperation {
   |              `- warning: class 'AsyncBlockOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	public typealias StartHandler = (_ stopHandler: @escaping () -> Void) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/AsyncOperations/AsyncBlockOperation.swift:23:8: 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
21 | 	public init(asyncBlock: @escaping () async -> Void) {
22 | 		startHandler = { stopHandler in
23 | 			Task{
   |        `- 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
24 | 				await asyncBlock()
   |           `- note: closure captures 'asyncBlock' which is accessible to code in the current task
25 | 				stopHandler()
26 | 			}
[16/16] Emitting module AsyncOperations
/Users/admin/builder/spi-builder-workspace/Sources/AsyncOperations/AsyncBlockOperation.swift:13:14: warning: class 'AsyncBlockOperation' must restate inherited '@unchecked Sendable' conformance
11 |
12 |  See ``addAsyncBlock(startHandler:)`` in the OperationQueue extension for more information. */
13 | public class AsyncBlockOperation : RetryingOperation {
   |              `- warning: class 'AsyncBlockOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	public typealias StartHandler = (_ stopHandler: @escaping () -> Void) -> Void
Build complete! (11.31s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "retryingoperation",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.7",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/happn-app/RetryingOperation.git"
    }
  ],
  "manifest_display_name" : "AsyncOperations",
  "name" : "AsyncOperations",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncOperations",
      "targets" : [
        "AsyncOperations"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncOperationsTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncOperationsTests",
      "path" : "Tests/AsyncOperationsTests",
      "sources" : [
        "AsyncOperationsTests.swift"
      ],
      "target_dependencies" : [
        "AsyncOperations"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncOperations",
      "module_type" : "SwiftTarget",
      "name" : "AsyncOperations",
      "path" : "Sources/AsyncOperations",
      "product_dependencies" : [
        "RetryingOperation"
      ],
      "product_memberships" : [
        "AsyncOperations"
      ],
      "sources" : [
        "AsyncBlockOperation.swift",
        "AsyncOperation.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.