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 Promis, reference master (cbc7ac), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 06:29:51 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/albertodebortoli/Promis.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/albertodebortoli/Promis
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at cbc7acc Merge pull request #18 from albertodebortoli/fix-whenAll-leak
Cloned https://github.com/albertodebortoli/Promis.git
Revision (git rev-parse @):
cbc7accb649990c1248cf1de7159cf427a932550
SUCCESS checkout https://github.com/albertodebortoli/Promis.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": "promis",
      "name": "Promis",
      "url": "https://github.com/albertodebortoli/Promis.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Promis",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/albertodebortoli/Promis.git
[1/537] Fetching promis
Fetched https://github.com/albertodebortoli/Promis.git from cache (0.78s)
Creating working copy for https://github.com/albertodebortoli/Promis.git
Working copy of https://github.com/albertodebortoli/Promis.git resolved at master (cbc7acc)
warning: '.resolve-product-dependencies': dependency 'promis' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/albertodebortoli/Promis.git
https://github.com/albertodebortoli/Promis.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Promis",
  "name" : "Promis",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Promis",
      "targets" : [
        "Promis"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PromisTests",
      "module_type" : "SwiftTarget",
      "name" : "PromisTests",
      "path" : "Tests/Sources",
      "sources" : [
        "PromisTests.swift"
      ],
      "target_dependencies" : [
        "Promis"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Promis",
      "module_type" : "SwiftTarget",
      "name" : "Promis",
      "path" : "Framework/Sources",
      "product_memberships" : [
        "Promis"
      ],
      "sources" : [
        "Future+Chaining.swift",
        "Future+WhenAll.swift",
        "Future.swift",
        "FutureState.swift",
        "PromisError.swift",
        "Promise.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[3/9] Compiling Promis Promise.swift
[4/9] Compiling Promis Future.swift
[5/9] Compiling Promis Future+WhenAll.swift
[6/9] Compiling Promis FutureState.swift
[7/9] Compiling Promis PromisError.swift
[8/9] Compiling Promis Future+Chaining.swift
/Users/admin/builder/spi-builder-workspace/Framework/Sources/Future+Chaining.swift:27:21: warning: capture of 'block' with non-sendable type '(Future<ResultType>) -> Void' in a '@Sendable' closure
 25 |             if let queue = queue {
 26 |                 queue.async {
 27 |                     block(future)
    |                     |- warning: capture of 'block' with non-sendable type '(Future<ResultType>) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 28 |                 }
 29 |             } else {
/Users/admin/builder/spi-builder-workspace/Framework/Sources/Future+Chaining.swift:27:27: warning: capture of 'future' with non-sendable type 'Future<ResultType>' in a '@Sendable' closure
 25 |             if let queue = queue {
 26 |                 queue.async {
 27 |                     block(future)
    |                           `- warning: capture of 'future' with non-sendable type 'Future<ResultType>' in a '@Sendable' closure
 28 |                 }
 29 |             } else {
/Users/admin/builder/spi-builder-workspace/Framework/Sources/Future.swift:11:14: note: generic class 'Future' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | public class Future<ResultType> {
    |              `- note: generic class 'Future' does not conform to the 'Sendable' protocol
 12 |
 13 |     let cv: NSCondition
[9/9] Emitting module Promis
Build complete! (4.53s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Promis",
  "name" : "Promis",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Promis",
      "targets" : [
        "Promis"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PromisTests",
      "module_type" : "SwiftTarget",
      "name" : "PromisTests",
      "path" : "Tests/Sources",
      "sources" : [
        "PromisTests.swift"
      ],
      "target_dependencies" : [
        "Promis"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Promis",
      "module_type" : "SwiftTarget",
      "name" : "Promis",
      "path" : "Framework/Sources",
      "product_memberships" : [
        "Promis"
      ],
      "sources" : [
        "Future+Chaining.swift",
        "Future+WhenAll.swift",
        "Future.swift",
        "FutureState.swift",
        "PromisError.swift",
        "Promise.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.