The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Taskig, reference master (8e7e56), with Swift 6.1 for Android on 27 May 2025 08:26:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/stendahls/Taskig.git
Reference: master
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/stendahls/Taskig
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8e7e560 Updated license text
Cloned https://github.com/stendahls/Taskig.git
Revision (git rev-parse @):
8e7e5603d5f14bb2a1b262137d9122ec58c8837a
SUCCESS checkout https://github.com/stendahls/Taskig.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/stendahls/Taskig.git
https://github.com/stendahls/Taskig.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Taskig",
  "name" : "Taskig",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "macos",
      "version" : "10.11"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "Taskig",
      "targets" : [
        "Taskig"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TaskigTests",
      "module_type" : "SwiftTarget",
      "name" : "TaskigTests",
      "path" : "TaskigTests",
      "sources" : [
        "TaskigCancellableTaskTests.swift",
        "TaskigCollectionsTests.swift",
        "TaskigHelpersTests.swift",
        "TaskigTaskTests.swift",
        "TaskigThrowableTaskTests.swift"
      ],
      "target_dependencies" : [
        "Taskig"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Taskig",
      "module_type" : "SwiftTarget",
      "name" : "Taskig",
      "path" : "TaskigSource/Base",
      "product_memberships" : [
        "Taskig"
      ],
      "sources" : [
        "CancellableTaskType.swift",
        "Collections.swift",
        "Helpers.swift",
        "Task.swift",
        "TaskType.swift",
        "ThrowableTask.swift",
        "ThrowableTaskType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling Taskig ThrowableTaskType.swift
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTaskType.swift:46:38: error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
44 |     @discardableResult
45 |     func awaitResult() -> Result<ResultType, Error> {
46 |         precondition((executionQueue == .main && Thread.isMainThread == true) == false)
   |                                      `- error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
47 |
48 |         var result: Result<ResultType, Error>!
Swift.Equatable:1:17: note: where 'Self' = 'DispatchQueue'
1 | public protocol Equatable {
  |                 `- note: where 'Self' = 'DispatchQueue'
2 |     static func == (lhs: Self, rhs: Self) -> Bool
3 | }
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTaskType.swift:54:13: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 |
53 |         executionQueue.async {
54 |             self.action(completion: { (actionResult) in
   |             `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure; this is an error in the Swift 6 language mode
55 |                 result = actionResult
56 |                 group.leave()
Taskig.ThrowableTaskType.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ThrowableTaskType {
2 | Self : Taskig.ThrowableTaskType}
  | `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTaskType.swift:55:17: warning: capture of 'result' with non-sendable type 'Result<Self.ResultType, any Error>?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
53 |         executionQueue.async {
54 |             self.action(completion: { (actionResult) in
55 |                 result = actionResult
   |                 `- warning: capture of 'result' with non-sendable type 'Result<Self.ResultType, any Error>?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
56 |                 group.leave()
57 |             })
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTaskType.swift:55:17: warning: capture of 'result' with non-sendable type 'Result<Self.ResultType, any Error>?' in an isolated closure; this is an error in the Swift 6 language mode
53 |         executionQueue.async {
54 |             self.action(completion: { (actionResult) in
55 |                 result = actionResult
   |                 `- warning: capture of 'result' with non-sendable type 'Result<Self.ResultType, any Error>?' in an isolated closure; this is an error in the Swift 6 language mode
56 |                 group.leave()
57 |             })
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTaskType.swift:55:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
53 |         executionQueue.async {
54 |             self.action(completion: { (actionResult) in
55 |                 result = actionResult
   |                 `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
56 |                 group.leave()
57 |             })
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTaskType.swift:72:13: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 |     func async(delayBy: TimeInterval = 0, completion: @escaping resultHandler) {
71 |         executionQueue.asyncAfter(deadline: .now() + delayBy) {
72 |             self.action(completion: completion)
   |             `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure; this is an error in the Swift 6 language mode
73 |         }
74 |     }
Taskig.ThrowableTaskType.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol ThrowableTaskType {
2 | Self : Taskig.ThrowableTaskType}
  | `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTaskType.swift:72:37: warning: capture of 'completion' with non-sendable type 'Self.resultHandler' (aka '(Result<Self.ResultType, any Error>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
70 |     func async(delayBy: TimeInterval = 0, completion: @escaping resultHandler) {
71 |         executionQueue.asyncAfter(deadline: .now() + delayBy) {
72 |             self.action(completion: completion)
   |                                     |- warning: capture of 'completion' with non-sendable type 'Self.resultHandler' (aka '(Result<Self.ResultType, any Error>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
73 |         }
74 |     }
[4/10] Compiling Taskig TaskType.swift
/host/spi-builder-workspace/TaskigSource/Base/TaskType.swift:44:38: error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
42 |     @discardableResult
43 |     func await() -> ResultType {
44 |         precondition((executionQueue == .main && Thread.isMainThread == true) == false)
   |                                      `- error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
45 |
46 |         var result: ResultType!
Swift.Equatable:1:17: note: where 'Self' = 'DispatchQueue'
1 | public protocol Equatable {
  |                 `- note: where 'Self' = 'DispatchQueue'
2 |     static func == (lhs: Self, rhs: Self) -> Bool
3 | }
/host/spi-builder-workspace/TaskigSource/Base/TaskType.swift:52:13: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure; this is an error in the Swift 6 language mode
50 |
51 |         executionQueue.async {
52 |             self.action(completion: { (actionResult) in
   |             `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure; this is an error in the Swift 6 language mode
53 |                 result = actionResult
54 |                 group.leave()
Taskig.TaskType.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol TaskType {
2 | Self : Taskig.TaskType}
  | `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/host/spi-builder-workspace/TaskigSource/Base/TaskType.swift:53:17: warning: capture of 'result' with non-sendable type 'Self.ResultType?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
51 |         executionQueue.async {
52 |             self.action(completion: { (actionResult) in
53 |                 result = actionResult
   |                 `- warning: capture of 'result' with non-sendable type 'Self.ResultType?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
54 |                 group.leave()
55 |             })
/host/spi-builder-workspace/TaskigSource/Base/TaskType.swift:53:17: warning: capture of 'result' with non-sendable type 'Self.ResultType?' in an isolated closure; this is an error in the Swift 6 language mode
51 |         executionQueue.async {
52 |             self.action(completion: { (actionResult) in
53 |                 result = actionResult
   |                 `- warning: capture of 'result' with non-sendable type 'Self.ResultType?' in an isolated closure; this is an error in the Swift 6 language mode
54 |                 group.leave()
55 |             })
/host/spi-builder-workspace/TaskigSource/Base/TaskType.swift:53:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
51 |         executionQueue.async {
52 |             self.action(completion: { (actionResult) in
53 |                 result = actionResult
   |                 `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
54 |                 group.leave()
55 |             })
/host/spi-builder-workspace/TaskigSource/Base/TaskType.swift:65:13: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 |     func async(delayBy: TimeInterval = 0, completion: @escaping resultHandler) {
64 |         executionQueue.asyncAfter(deadline: .now() + delayBy) {
65 |             self.action(completion: completion)
   |             `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure; this is an error in the Swift 6 language mode
66 |         }
67 |     }
Taskig.TaskType.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol TaskType {
2 | Self : Taskig.TaskType}
  | `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/host/spi-builder-workspace/TaskigSource/Base/TaskType.swift:65:37: warning: capture of 'completion' with non-sendable type 'Self.resultHandler' (aka '(Self.ResultType) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
63 |     func async(delayBy: TimeInterval = 0, completion: @escaping resultHandler) {
64 |         executionQueue.asyncAfter(deadline: .now() + delayBy) {
65 |             self.action(completion: completion)
   |                                     |- warning: capture of 'completion' with non-sendable type 'Self.resultHandler' (aka '(Self.ResultType) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
66 |         }
67 |     }
[5/10] Compiling Taskig ThrowableTask.swift
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:63:13: warning: capture of 'self' with non-sendable type 'ThrowableTask<()>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 27 | import Foundation
 28 |
 29 | public struct ThrowableTask<T>: ThrowableTaskType {
    |               `- note: consider making generic struct 'ThrowableTask' conform to the 'Sendable' protocol
 30 |     public typealias ResultType = T
 31 |
    :
 61 |     func async(delayBy: TimeInterval = 0) {
 62 |         executionQueue.asyncAfter(deadline: .now() + delayBy) {
 63 |             self.action(completion: { (_) in })
    |             `- warning: capture of 'self' with non-sendable type 'ThrowableTask<()>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 64 |         }
 65 |     }
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:71:38: error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
 69 |     @discardableResult
 70 |     public func awaitResult() -> Result<ResultType, Error> {
 71 |         precondition((executionQueue == .main && Thread.isMainThread == true) == false)
    |                                      `- error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
 72 |
 73 |         var result: Result<ResultType, Error>!
Swift.Equatable:1:17: note: where 'Self' = 'DispatchQueue'
1 | public protocol Equatable {
  |                 `- note: where 'Self' = 'DispatchQueue'
2 |     static func == (lhs: Self, rhs: Self) -> Bool
3 | }
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:79:19: warning: capture of 'self' with non-sendable type 'ThrowableTask<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 27 | import Foundation
 28 |
 29 | public struct ThrowableTask<T>: ThrowableTaskType {
    |               `- note: consider making generic struct 'ThrowableTask' conform to the 'Sendable' protocol
 30 |     public typealias ResultType = T
 31 |
    :
 77 |
 78 |         executionQueue.async {
 79 |             guard self.isCancelled == false else {
    |                   `- warning: capture of 'self' with non-sendable type 'ThrowableTask<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 80 |                 result = .failure(CancellableTaskError.taskWasCancelled)
 81 |                 group.leave()
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:80:17: warning: capture of 'result' with non-sendable type 'Result<ThrowableTask<T>.ResultType, any Error>?' (aka 'Optional<Result<T, any Error>>') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 27 | import Foundation
 28 |
 29 | public struct ThrowableTask<T>: ThrowableTaskType {
    |                             `- note: consider making generic parameter 'ThrowableTask<T>.ResultType' (aka 'T') conform to the 'Sendable' protocol
 30 |     public typealias ResultType = T
 31 |
    :
 78 |         executionQueue.async {
 79 |             guard self.isCancelled == false else {
 80 |                 result = .failure(CancellableTaskError.taskWasCancelled)
    |                 `- warning: capture of 'result' with non-sendable type 'Result<ThrowableTask<T>.ResultType, any Error>?' (aka 'Optional<Result<T, any Error>>') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 81 |                 group.leave()
 82 |                 return
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:80:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
 78 |         executionQueue.async {
 79 |             guard self.isCancelled == false else {
 80 |                 result = .failure(CancellableTaskError.taskWasCancelled)
    |                 `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
 81 |                 group.leave()
 82 |                 return
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:86:17: warning: capture of 'result' with non-sendable type 'Result<ThrowableTask<T>.ResultType, any Error>?' (aka 'Optional<Result<T, any Error>>') in an isolated closure; this is an error in the Swift 6 language mode
 27 | import Foundation
 28 |
 29 | public struct ThrowableTask<T>: ThrowableTaskType {
    |                             `- note: consider making generic parameter 'ThrowableTask<T>.ResultType' (aka 'T') conform to the 'Sendable' protocol
 30 |     public typealias ResultType = T
 31 |
    :
 84 |
 85 |             self.action(completion: { (actionResult) in
 86 |                 result = actionResult
    |                 `- warning: capture of 'result' with non-sendable type 'Result<ThrowableTask<T>.ResultType, any Error>?' (aka 'Optional<Result<T, any Error>>') in an isolated closure; this is an error in the Swift 6 language mode
 87 |                 group.leave()
 88 |             })
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:86:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
 84 |
 85 |             self.action(completion: { (actionResult) in
 86 |                 result = actionResult
    |                 `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
 87 |                 group.leave()
 88 |             })
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:98:19: warning: capture of 'self' with non-sendable type 'ThrowableTask<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 27 | import Foundation
 28 |
 29 | public struct ThrowableTask<T>: ThrowableTaskType {
    |               `- note: consider making generic struct 'ThrowableTask' conform to the 'Sendable' protocol
 30 |     public typealias ResultType = T
 31 |
    :
 96 |     public func async(delayBy: TimeInterval = 0, completion: @escaping resultHandler) {
 97 |         executionQueue.asyncAfter(deadline: .now() + delayBy) {
 98 |             guard self.isCancelled == false else {
    |                   `- warning: capture of 'self' with non-sendable type 'ThrowableTask<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 99 |                 completion(.failure(CancellableTaskError.taskWasCancelled))
100 |                 return
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:99:17: warning: capture of 'completion' with non-sendable type 'ThrowableTask<T>.resultHandler' (aka '(Result<T, any Error>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 97 |         executionQueue.asyncAfter(deadline: .now() + delayBy) {
 98 |             guard self.isCancelled == false else {
 99 |                 completion(.failure(CancellableTaskError.taskWasCancelled))
    |                 |- warning: capture of 'completion' with non-sendable type 'ThrowableTask<T>.resultHandler' (aka '(Result<T, any Error>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
100 |                 return
101 |             }
[6/10] Compiling Taskig Collections.swift
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:134:30: warning: capture of 'transform' with non-sendable type '(Element) -> T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
132 |
133 |             queue.async(group: workGroup) {
134 |                 let result = transform(task)
    |                              |- warning: capture of 'transform' with non-sendable type '(Element) -> T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
135 |
136 |                 async_custom_queue.sync {
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:134:40: warning: capture of 'task' with non-sendable type 'Element' in a '@Sendable' closure; this is an error in the Swift 6 language mode
132 |
133 |             queue.async(group: workGroup) {
134 |                 let result = transform(task)
    |                                        `- warning: capture of 'task' with non-sendable type 'Element' in a '@Sendable' closure; this is an error in the Swift 6 language mode
135 |
136 |                 async_custom_queue.sync {
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:137:21: warning: capture of 'completion' with non-sendable type '(T) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
135 |
136 |                 async_custom_queue.sync {
137 |                     completion(result)
    |                     |- warning: capture of 'completion' with non-sendable type '(T) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 |                     workGroup.leave()
139 |                     maxWorkItemsSemaphore.signal()
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:137:21: warning: capture of 'completion' with non-sendable type '(T) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
135 |
136 |                 async_custom_queue.sync {
137 |                     completion(result)
    |                     |- warning: capture of 'completion' with non-sendable type '(T) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 |                     workGroup.leave()
139 |                     maxWorkItemsSemaphore.signal()
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:161:26: warning: capture of 'transform' with non-sendable type '(Element) -> T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
159 |         DispatchQueue.concurrentPerform(iterations: count) {index in
160 |             let _ = maxWorkItemsSemaphore.wait()
161 |             let result = transform(self[index])
    |                          |- warning: capture of 'transform' with non-sendable type '(Element) -> T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
162 |
163 |             async_custom_queue.sync {
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:161:36: warning: capture of 'self' with non-sendable type 'Array<Element>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
159 |         DispatchQueue.concurrentPerform(iterations: count) {index in
160 |             let _ = maxWorkItemsSemaphore.wait()
161 |             let result = transform(self[index])
    |                                    `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
162 |
163 |             async_custom_queue.sync {
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:164:17: warning: capture of 'results' with non-sendable type '[T?]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
145 |     }
146 |
147 |     func concurrentMap<T>(_ queue: DispatchQueue, concurrency: Int, transform: @escaping (Element) -> T) -> [T] {
    |                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
148 |         guard count > 0 else {
149 |             return []
    :
162 |
163 |             async_custom_queue.sync {
164 |                 results[index] = result
    |                 `- warning: capture of 'results' with non-sendable type '[T?]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
165 |                 numberOfCompletedTasks += 1
166 |
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:164:17: warning: capture of 'results' with non-sendable type '[T?]' in an isolated closure; this is an error in the Swift 6 language mode
145 |     }
146 |
147 |     func concurrentMap<T>(_ queue: DispatchQueue, concurrency: Int, transform: @escaping (Element) -> T) -> [T] {
    |                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
148 |         guard count > 0 else {
149 |             return []
    :
162 |
163 |             async_custom_queue.sync {
164 |                 results[index] = result
    |                 `- warning: capture of 'results' with non-sendable type '[T?]' in an isolated closure; this is an error in the Swift 6 language mode
165 |                 numberOfCompletedTasks += 1
166 |
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:164:17: warning: mutation of captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
162 |
163 |             async_custom_queue.sync {
164 |                 results[index] = result
    |                 `- warning: mutation of captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
165 |                 numberOfCompletedTasks += 1
166 |
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:165:17: warning: mutation of captured var 'numberOfCompletedTasks' in concurrently-executing code; this is an error in the Swift 6 language mode
163 |             async_custom_queue.sync {
164 |                 results[index] = result
165 |                 numberOfCompletedTasks += 1
    |                 `- warning: mutation of captured var 'numberOfCompletedTasks' in concurrently-executing code; this is an error in the Swift 6 language mode
166 |
167 |                 if numberOfCompletedTasks == numberOfTasks {
/host/spi-builder-workspace/TaskigSource/Base/Collections.swift:167:20: warning: reference to captured var 'numberOfCompletedTasks' in concurrently-executing code; this is an error in the Swift 6 language mode
165 |                 numberOfCompletedTasks += 1
166 |
167 |                 if numberOfCompletedTasks == numberOfTasks {
    |                    `- warning: reference to captured var 'numberOfCompletedTasks' in concurrently-executing code; this is an error in the Swift 6 language mode
168 |                     finishedAllTasksSemaphore.signal()
169 |                 }
[7/10] Compiling Taskig Task.swift
/host/spi-builder-workspace/TaskigSource/Base/Task.swift:55:72: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
52 |
53 | public extension Task where T == Void {
54 |     static func async(executionQueue: DispatchQueue = .global(), delayBy: TimeInterval = 0, action: @escaping () -> Void) {
   |                                                                                             `- note: parameter 'action' is implicitly non-sendable
55 |         executionQueue.asyncAfter(deadline: .now() + delayBy, execute: action)
   |                                                                        `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
56 |     }
57 |
/host/spi-builder-workspace/TaskigSource/Base/Task.swift:60:13: warning: capture of 'self' with non-sendable type 'Task<()>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
27 | import Foundation
28 |
29 | public struct Task<T>: TaskType {
   |               `- note: consider making generic struct 'Task' conform to the 'Sendable' protocol
30 |     public typealias ResultType = T
31 |
   :
58 |     func async(delayBy: TimeInterval = 0) {
59 |         executionQueue.asyncAfter(deadline: .now() + delayBy) {
60 |             self.action(completion: { (_) in })
   |             `- warning: capture of 'self' with non-sendable type 'Task<()>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
61 |         }
62 |     }
[8/10] Compiling Taskig Helpers.swift
[9/10] Emitting module Taskig
[10/10] Compiling Taskig CancellableTaskType.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling Taskig ThrowableTaskType.swift
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTaskType.swift:46:38: error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
44 |     @discardableResult
45 |     func awaitResult() -> Result<ResultType, Error> {
46 |         precondition((executionQueue == .main && Thread.isMainThread == true) == false)
   |                                      `- error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
47 |
48 |         var result: Result<ResultType, Error>!
Swift.Equatable:1:17: note: where 'Self' = 'DispatchQueue'
1 | public protocol Equatable {
  |                 `- note: where 'Self' = 'DispatchQueue'
2 |     static func == (lhs: Self, rhs: Self) -> Bool
3 | }
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTaskType.swift:55:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
53 |         executionQueue.async {
54 |             self.action(completion: { (actionResult) in
55 |                 result = actionResult
   |                 `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
56 |                 group.leave()
57 |             })
[3/9] Compiling Taskig Task.swift
/host/spi-builder-workspace/TaskigSource/Base/Task.swift:55:72: warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
52 |
53 | public extension Task where T == Void {
54 |     static func async(executionQueue: DispatchQueue = .global(), delayBy: TimeInterval = 0, action: @escaping () -> Void) {
   |                                                                                             `- note: parameter 'action' is implicitly non-sendable
55 |         executionQueue.asyncAfter(deadline: .now() + delayBy, execute: action)
   |                                                                        `- warning: passing non-sendable parameter 'action' to function expecting a @Sendable closure
56 |     }
57 |
[4/9] Compiling Taskig CancellableTaskType.swift
[5/9] Compiling Taskig TaskType.swift
/host/spi-builder-workspace/TaskigSource/Base/TaskType.swift:44:38: error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
42 |     @discardableResult
43 |     func await() -> ResultType {
44 |         precondition((executionQueue == .main && Thread.isMainThread == true) == false)
   |                                      `- error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
45 |
46 |         var result: ResultType!
Swift.Equatable:1:17: note: where 'Self' = 'DispatchQueue'
1 | public protocol Equatable {
  |                 `- note: where 'Self' = 'DispatchQueue'
2 |     static func == (lhs: Self, rhs: Self) -> Bool
3 | }
/host/spi-builder-workspace/TaskigSource/Base/TaskType.swift:53:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
51 |         executionQueue.async {
52 |             self.action(completion: { (actionResult) in
53 |                 result = actionResult
   |                 `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
54 |                 group.leave()
55 |             })
[6/9] Compiling Taskig ThrowableTask.swift
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:71:38: error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
 69 |     @discardableResult
 70 |     public func awaitResult() -> Result<ResultType, Error> {
 71 |         precondition((executionQueue == .main && Thread.isMainThread == true) == false)
    |                                      `- error: referencing operator function '==' on 'Equatable' requires that 'DispatchQueue' conform to 'Equatable'
 72 |
 73 |         var result: Result<ResultType, Error>!
Swift.Equatable:1:17: note: where 'Self' = 'DispatchQueue'
1 | public protocol Equatable {
  |                 `- note: where 'Self' = 'DispatchQueue'
2 |     static func == (lhs: Self, rhs: Self) -> Bool
3 | }
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:80:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
 78 |         executionQueue.async {
 79 |             guard self.isCancelled == false else {
 80 |                 result = .failure(CancellableTaskError.taskWasCancelled)
    |                 `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
 81 |                 group.leave()
 82 |                 return
/host/spi-builder-workspace/TaskigSource/Base/ThrowableTask.swift:86:17: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
 84 |
 85 |             self.action(completion: { (actionResult) in
 86 |                 result = actionResult
    |                 `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
 87 |                 group.leave()
 88 |             })
[7/9] Compiling Taskig Helpers.swift
[8/9] Emitting module Taskig
[9/9] Compiling Taskig Collections.swift
BUILD FAILURE 6.1 android