The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of BrightFutures, reference master (a4b4cb), with Swift 6.2 (beta) for Linux on 19 Jun 2025 13:54:53 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Thomvis/BrightFutures.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/Thomvis/BrightFutures
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a4b4cb2 Update README.md
Cloned https://github.com/Thomvis/BrightFutures.git
Revision (git rev-parse @):
a4b4cb27ef1525739988184dac73a1a462f9d62d
SUCCESS checkout https://github.com/Thomvis/BrightFutures.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Thomvis/BrightFutures.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/18] Compiling BrightFutures Result+BrightFutures.swift
[4/18] Compiling BrightFutures ResultProtocol.swift
[5/20] Compiling BrightFutures MutableAsyncType+ResultType.swift
[6/20] Compiling BrightFutures MutableAsyncType.swift
[7/20] Compiling BrightFutures NSOperationQueue+BrightFutures.swift
/host/spi-builder-workspace/Sources/BrightFutures/NSOperationQueue+BrightFutures.swift:16:54: warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
13 |     /// Tasks added to the execution context are executed as operations on the queue.
14 |     var context: ExecutionContext {
15 |         return { [weak self] task in
   |                              `- note: parameter 'task' is implicitly non-Sendable
16 |             self?.addOperation(BlockOperation(block: task))
   |                                                      `- warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
17 |         }
18 |     }
[8/20] Compiling BrightFutures Promise.swift
/host/spi-builder-workspace/Sources/BrightFutures/NSOperationQueue+BrightFutures.swift:16:54: warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
13 |     /// Tasks added to the execution context are executed as operations on the queue.
14 |     var context: ExecutionContext {
15 |         return { [weak self] task in
   |                              `- note: parameter 'task' is implicitly non-Sendable
16 |             self?.addOperation(BlockOperation(block: task))
   |                                                      `- warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
17 |         }
18 |     }
[9/20] Compiling BrightFutures Errors.swift
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:60:47: warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |                                                                `- note: parameter 'task' is implicitly non-Sendable
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
   :
58 |
59 |     if previousDepth > Static.maxTaskDepth {
60 |         DispatchQueue.global().async(execute: task)
   |                                               `- warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
61 |     } else {
62 |         localThreadDictionary[Static.taskDepthKey] = previousDepth + 1
[10/20] Compiling BrightFutures ExecutionContext.swift
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:60:47: warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |                                                                `- note: parameter 'task' is implicitly non-Sendable
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
   :
58 |
59 |     if previousDepth > Static.maxTaskDepth {
60 |         DispatchQueue.global().async(execute: task)
   |                                               `- warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
61 |     } else {
62 |         localThreadDictionary[Static.taskDepthKey] = previousDepth + 1
[11/20] Compiling BrightFutures Future.swift
[12/20] Compiling BrightFutures InvalidationToken.swift
[13/20] Emitting module BrightFutures
/host/spi-builder-workspace/Sources/BrightFutures/ExecutionContext.swift:60:47: warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
42 |
43 | /// From https://github.com/BoltsFramework/Bolts-Swift/blob/5fe4df7acb384a93ad93e8595d42e2b431fdc266/Sources/BoltsSwift/Executor.swift#L56
44 | public let maxStackDepthExecutionContext: ExecutionContext = { task in
   |                                                                `- note: parameter 'task' is implicitly non-Sendable
45 |     struct Static {
46 |         static let taskDepthKey = "nl.thomvis.BrightFutures"
   :
58 |
59 |     if previousDepth > Static.maxTaskDepth {
60 |         DispatchQueue.global().async(execute: task)
   |                                               `- warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
61 |     } else {
62 |         localThreadDictionary[Static.taskDepthKey] = previousDepth + 1
[14/20] Compiling BrightFutures Async.swift
[15/20] Compiling BrightFutures AsyncType+Debug.swift
[16/20] Compiling BrightFutures AsyncType+ResultType.swift
[17/20] Compiling BrightFutures AsyncType.swift
/host/spi-builder-workspace/Sources/BrightFutures/AsyncType.swift:73:23: warning: capture of non-Sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
 71 |     /// queue.
 72 |     func delay(_ queue: DispatchQueue, interval: DispatchTimeInterval) -> Self {
 73 |         return Self { complete in
    |                       `- warning: capture of non-Sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
 74 |             onComplete(immediateExecutionContext) { result in
 75 |                 queue.asyncAfter(deadline: DispatchTime.now() + interval) {
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:14:33: warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
11 | public extension DispatchQueue {
12 |     var context: ExecutionContext {
13 |         return { task in
   |                  `- note: parameter 'task' is implicitly non-Sendable
14 |             self.async(execute: task)
   |                                 `- warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
15 |         }
16 |     }
[18/20] Compiling BrightFutures Dispatch+BrightFutures.swift
/host/spi-builder-workspace/Sources/BrightFutures/AsyncType.swift:73:23: warning: capture of non-Sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
 71 |     /// queue.
 72 |     func delay(_ queue: DispatchQueue, interval: DispatchTimeInterval) -> Self {
 73 |         return Self { complete in
    |                       `- warning: capture of non-Sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
 74 |             onComplete(immediateExecutionContext) { result in
 75 |                 queue.asyncAfter(deadline: DispatchTime.now() + interval) {
/host/spi-builder-workspace/Sources/BrightFutures/Dispatch+BrightFutures.swift:14:33: warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
11 | public extension DispatchQueue {
12 |     var context: ExecutionContext {
13 |         return { task in
   |                  `- note: parameter 'task' is implicitly non-Sendable
14 |             self.async(execute: task)
   |                                 `- warning: passing non-Sendable parameter 'task' to function expecting a '@Sendable' closure
15 |         }
16 |     }
[19/20] Compiling BrightFutures SequenceType+BrightFutures.swift
[20/20] Compiling BrightFutures SwiftConcurrency+BrightFutures.swift
Build complete! (14.29s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BrightFutures",
  "name" : "BrightFutures",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BrightFutures",
      "targets" : [
        "BrightFutures"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BrightFuturesTests",
      "module_type" : "SwiftTarget",
      "name" : "BrightFuturesTests",
      "path" : "Tests/BrightFuturesTests",
      "sources" : [
        "BrightFuturesTests.swift",
        "ErrorsTests.swift",
        "ExecutionContextTests.swift",
        "FutureDebugTests.swift",
        "InvalidationTokenTests.swift",
        "NSOperationQueueTests.swift",
        "Number+BrightFutures.swift",
        "PromiseTests.swift",
        "QueueTests.swift",
        "ResultTests.swift",
        "SwiftConcurrencyTests.swift"
      ],
      "target_dependencies" : [
        "BrightFutures"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BrightFutures",
      "module_type" : "SwiftTarget",
      "name" : "BrightFutures",
      "path" : "Sources/BrightFutures",
      "product_memberships" : [
        "BrightFutures"
      ],
      "sources" : [
        "Async.swift",
        "AsyncType+Debug.swift",
        "AsyncType+ResultType.swift",
        "AsyncType.swift",
        "Dispatch+BrightFutures.swift",
        "Errors.swift",
        "ExecutionContext.swift",
        "Future.swift",
        "InvalidationToken.swift",
        "MutableAsyncType+ResultType.swift",
        "MutableAsyncType.swift",
        "NSOperationQueue+BrightFutures.swift",
        "Promise.swift",
        "Result+BrightFutures.swift",
        "ResultProtocol.swift",
        "SequenceType+BrightFutures.swift",
        "SwiftConcurrency+BrightFutures.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Done.