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

Failed to build AlecrimAsyncKit, reference master (974e49), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 05:28:24 UTC.

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Alecrim/AlecrimAsyncKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Alecrim/AlecrimAsyncKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 974e49c Merge branch 'release/5.0-beta.2'
Cloned https://github.com/Alecrim/AlecrimAsyncKit.git
Revision (git rev-parse @):
974e49ce5e6ca0543aba4532448e5799e2bba545
SUCCESS checkout https://github.com/Alecrim/AlecrimAsyncKit.git at master
========================================
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": "alecrimasynckit",
      "name": "AlecrimAsyncKit",
      "url": "https://github.com/Alecrim/AlecrimAsyncKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AlecrimAsyncKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Alecrim/AlecrimAsyncKit.git
[1/2504] Fetching alecrimasynckit
Fetched https://github.com/Alecrim/AlecrimAsyncKit.git from cache (1.04s)
Creating working copy for https://github.com/Alecrim/AlecrimAsyncKit.git
Working copy of https://github.com/Alecrim/AlecrimAsyncKit.git resolved at master (974e49c)
warning: '.resolve-product-dependencies': dependency 'alecrimasynckit' 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/Alecrim/AlecrimAsyncKit.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 -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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/9] Compiling AlecrimAsyncKit Error+Extensions.swift
[4/9] Compiling AlecrimAsyncKit Async.swift
[5/9] Compiling AlecrimAsyncKit Cancellation.swift
[6/9] Emitting module AlecrimAsyncKit
[7/9] Compiling AlecrimAsyncKit Await.swift
[8/9] Compiling AlecrimAsyncKit Task.swift
/Users/admin/builder/spi-builder-workspace/Sources/Task.swift:265:20: warning: no calls to throwing functions occur within 'try' expression
263 |     internal func await() -> V {
264 |         if let result = self.result {
265 |             return try! result.get()
    |                    `- warning: no calls to throwing functions occur within 'try' expression
266 |         }
267 |         else if let workItem = self.workItem {
/Users/admin/builder/spi-builder-workspace/Sources/Task.swift:275:20: warning: no calls to throwing functions occur within 'try' expression
273 |             }
274 |
275 |             return try! result.get()
    |                    `- warning: no calls to throwing functions occur within 'try' expression
276 |         }
277 |         else {
[9/9] Compiling AlecrimAsyncKit TaskAwaiter.swift
/Users/admin/builder/spi-builder-workspace/Sources/TaskAwaiter.swift:79:26: error: cannot pass function of type '@Sendable () async -> Void' to parameter expecting synchronous function type
 77 |
 78 |     fileprivate func enqueue() {
 79 |         self.queue.async {
    |                          `- error: cannot pass function of type '@Sendable () async -> Void' to parameter expecting synchronous function type
 80 |             defer {
 81 |                 if let finallyClosure = self.finallyClosure {
    :
 89 |
 90 |             do {
 91 |                 let value = try await(self.task)
    |                                 `- note: 'async' inferred from asynchronous operation used here
 92 |
 93 |                 if let thenClosure = self.thenClosure {
/Users/admin/builder/spi-builder-workspace/Sources/TaskAwaiter.swift:95:37: error: cannot convert value of type 'Task<V, any Error>' to expected argument type 'V'
 93 |                 if let thenClosure = self.thenClosure {
 94 |                     self.callbackQueue.async {
 95 |                         thenClosure(value)
    |                                     `- error: cannot convert value of type 'Task<V, any Error>' to expected argument type 'V'
 96 |                         self.thenClosure = nil
 97 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/TaskAwaiter.swift:126:26: error: cannot pass function of type '@Sendable () async -> Void' to parameter expecting synchronous function type
124 |
125 |     fileprivate func enqueue() {
126 |         self.queue.async {
    |                          `- error: cannot pass function of type '@Sendable () async -> Void' to parameter expecting synchronous function type
127 |             let value = await(self.task)
    |                         `- note: 'async' inferred from asynchronous operation used here
128 |
129 |             if let thenClosure = self.thenClosure {
/Users/admin/builder/spi-builder-workspace/Sources/TaskAwaiter.swift:131:33: error: cannot convert value of type 'Task<V, Never>' to expected argument type 'V'
129 |             if let thenClosure = self.thenClosure {
130 |                 self.callbackQueue.async {
131 |                     thenClosure(value)
    |                                 `- error: cannot convert value of type 'Task<V, Never>' to expected argument type 'V'
132 |                     self.thenClosure = nil
133 |                 }
BUILD FAILURE 6.0 macosSpm