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 AsyncChannelKit, reference main (9d4811), with Swift 6.0 for Linux on 29 Nov 2024 02:29:46 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AsyncSwiftKits/AsyncChannelKit.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/AsyncSwiftKits/AsyncChannelKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9d48113 Update README.md
Cloned https://github.com/AsyncSwiftKits/AsyncChannelKit.git
Revision (git rev-parse @):
9d48113fd79ca8c59b069ef67f8e5f3564c3e144
SUCCESS checkout https://github.com/AsyncSwiftKits/AsyncChannelKit.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/AsyncSwiftKits/AsyncChannelKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/brennanMKE/AsyncTesting.git
[1/362] Fetching asynctesting
Fetched https://github.com/brennanMKE/AsyncTesting.git from cache (0.26s)
Computing version for https://github.com/brennanMKE/AsyncTesting.git
Computed https://github.com/brennanMKE/AsyncTesting.git at 0.0.7 (0.49s)
Creating working copy for https://github.com/brennanMKE/AsyncTesting.git
Working copy of https://github.com/brennanMKE/AsyncTesting.git resolved at 0.0.7
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling AsyncChannelKit AsyncThrowingChannel.swift
/host/spi-builder-workspace/Sources/AsyncChannelKit/AsyncThrowingChannel.swift:17:49: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
 15 |             }
 16 |             do {
 17 |                 let value: Element? = try await withTaskCancellationHandler { [channel] in
    |                                                 |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
    |                                                 `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
 18 |                     Task {
 19 |                         await channel.cancel()
/host/spi-builder-workspace/Sources/AsyncChannelKit/AsyncThrowingChannel.swift:61:15: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
 59 |
 60 |     public func send(_ element: Element) async {
 61 |         await withTaskCancellationHandler {
    |               |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
    |               `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
 62 |             Task {
 63 |                 await terminateAll()
/host/spi-builder-workspace/Sources/AsyncChannelKit/AsyncThrowingChannel.swift:61:15: warning: sending 'self'-isolated value of type '() async -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 59 |
 60 |     public func send(_ element: Element) async {
 61 |         await withTaskCancellationHandler {
    |               `- warning: sending 'self'-isolated value of type '() async -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 62 |             Task {
 63 |                 await terminateAll()
[4/6] Compiling AsyncChannelKit AsyncSequence+forEach.swift
[5/6] Emitting module AsyncChannelKit
[6/6] Compiling AsyncChannelKit AsyncChannel.swift
/host/spi-builder-workspace/Sources/AsyncChannelKit/AsyncChannel.swift:16:41: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
 14 |                 return nil
 15 |             }
 16 |             let value: Element? = await withTaskCancellationHandler { [channel] in
    |                                         |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
    |                                         `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
 17 |                 Task {
 18 |                     await channel.cancel()
/host/spi-builder-workspace/Sources/AsyncChannelKit/AsyncChannel.swift:57:15: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
 55 |     // send should not continue until there is a matched next or task is cancelled
 56 |     public func send(_ element: Element) async {
 57 |         await withTaskCancellationHandler {
    |               |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
    |               `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
 58 |             Task {
 59 |                 await terminateAll()
/host/spi-builder-workspace/Sources/AsyncChannelKit/AsyncChannel.swift:57:15: warning: sending 'self'-isolated value of type '() async -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 55 |     // send should not continue until there is a matched next or task is cancelled
 56 |     public func send(_ element: Element) async {
 57 |         await withTaskCancellationHandler {
    |               `- warning: sending 'self'-isolated value of type '() async -> Void' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
 58 |             Task {
 59 |                 await terminateAll()
Build complete! (10.39s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "asynctesting",
      "requirement" : {
        "exact" : [
          "0.0.7"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/brennanMKE/AsyncTesting.git"
    }
  ],
  "manifest_display_name" : "AsyncChannelKit",
  "name" : "AsyncChannelKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncChannelKit",
      "targets" : [
        "AsyncChannelKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncChannelKitTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncChannelKitTests",
      "path" : "Tests/AsyncChannelKitTests",
      "product_dependencies" : [
        "AsyncTesting"
      ],
      "sources" : [
        "AsyncChannelKitTests.swift"
      ],
      "target_dependencies" : [
        "AsyncChannelKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncChannelKit",
      "module_type" : "SwiftTarget",
      "name" : "AsyncChannelKit",
      "path" : "Sources/AsyncChannelKit",
      "product_memberships" : [
        "AsyncChannelKit"
      ],
      "sources" : [
        "AsyncChannel.swift",
        "AsyncSequence+forEach.swift",
        "AsyncThrowingChannel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.