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.1 for Linux on 30 Apr 2025 06:52:23 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Frizlab/AsyncOperations.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
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
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Frizlab/AsyncOperations.git
https://github.com/Frizlab/AsyncOperations.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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" : "/host/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 ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/happn-app/RetryingOperation.git
[1/395] Fetching retryingoperation
Fetched https://github.com/happn-app/RetryingOperation.git from cache (0.20s)
Computing version for https://github.com/happn-app/RetryingOperation.git
Computed https://github.com/happn-app/RetryingOperation.git at 1.1.8 (0.67s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.37s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.07s)
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.3
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/9] Compiling Logging MetadataProvider.swift
[6/9] Compiling Logging Locks.swift
[7/9] Compiling Logging LogHandler.swift
[8/9] Emitting module Logging
[9/9] Compiling Logging Logging.swift
[11/15] Emitting module RetryingOperation
[12/15] Compiling RetryingOperation RetryHelper.swift
[13/15] Compiling RetryingOperation RetryingOperationConfig.swift
[14/15] Compiling RetryingOperation WrappedRetryingOperation.swift
[15/15] Compiling RetryingOperation RetryingOperation.swift
[17/19] Compiling AsyncOperations AsyncOperation.swift
[18/19] Compiling AsyncOperations AsyncBlockOperation.swift
/host/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
/host/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 | 			}
[19/19] Emitting module AsyncOperations
/host/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! (13.76s)
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" : "/host/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"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.