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 Fuse, reference 1.4.0 (26ba86), with Swift 6.1 for Linux on 25 Apr 2025 15:18:11 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/krisk/fuse-swift.git
Reference: 1.4.0
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/krisk/fuse-swift
 * tag               1.4.0      -> FETCH_HEAD
HEAD is now at 26ba868 Updated version
Cloned https://github.com/krisk/fuse-swift.git
Revision (git rev-parse @):
26ba868691b2d8b7bf2b1322951eb591be70ccca
SUCCESS checkout https://github.com/krisk/fuse-swift.git at 1.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/krisk/fuse-swift.git
https://github.com/krisk/fuse-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Fuse",
  "name" : "Fuse",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "Fuse",
      "targets" : [
        "Fuse"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Fuse",
      "module_type" : "SwiftTarget",
      "name" : "Fuse",
      "path" : "Fuse",
      "product_memberships" : [
        "Fuse"
      ],
      "sources" : [
        "Classes/Fuse.swift",
        "Classes/FuseUtilities.swift",
        "Classes/String+Fuse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Fuse FuseUtilities.swift
[4/6] Compiling Fuse Fuse.swift
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:369:37: warning: capture of 'self' with non-sendable type 'Fuse' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public class Fuse {
    |              `- note: class 'Fuse' does not conform to the 'Sendable' protocol
 30 |     private var location: Int
 31 |     private var distance: Int
    :
367 |
368 |                 for (index, item) in chunk.enumerated() {
369 |                     if let result = self.search(pattern, in: item) {
    |                                     `- warning: capture of 'self' with non-sendable type 'Fuse' in a '@Sendable' closure; this is an error in the Swift 6 language mode
370 |                         chunkItems.append((offset + index, result.score, result.ranges))
371 |                     }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:375:21: warning: mutation of captured var 'items' in concurrently-executing code; this is an error in the Swift 6 language mode
373 |
374 |                 itemsQueue.async {
375 |                     items.append(contentsOf: chunkItems)
    |                     `- warning: mutation of captured var 'items' in concurrently-executing code; this is an error in the Swift 6 language mode
376 |                     group.leave()
377 |                 }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:375:46: warning: reference to captured var 'chunkItems' in concurrently-executing code; this is an error in the Swift 6 language mode
373 |
374 |                 itemsQueue.async {
375 |                     items.append(contentsOf: chunkItems)
    |                                              `- warning: reference to captured var 'chunkItems' in concurrently-executing code; this is an error in the Swift 6 language mode
376 |                     group.leave()
377 |                 }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:521:38: warning: capture of 'chunk' with non-sendable type '[any Fuseable]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 23 | }
 24 |
 25 | public protocol Fuseable {
    |                 `- note: protocol 'Fuseable' does not conform to the 'Sendable' protocol
 26 |     var properties: [FuseProperty] { get }
 27 | }
    :
519 |                 var chunkResult = [FusableSearchResult]()
520 |
521 |                 for (index, item) in chunk.enumerated() {
    |                                      `- warning: capture of 'chunk' with non-sendable type '[any Fuseable]' in a '@Sendable' closure; this is an error in the Swift 6 language mode
522 |                     var scores = [Double]()
523 |                     var totalScore = 0.0
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:531:41: warning: capture of 'self' with non-sendable type 'Fuse' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public class Fuse {
    |              `- note: class 'Fuse' does not conform to the 'Sendable' protocol
 30 |     private var location: Int
 31 |     private var distance: Int
    :
529 |                         let value = property.name
530 |
531 |                         if let result = self.search(pattern, in: value) {
    |                                         `- warning: capture of 'self' with non-sendable type 'Fuse' in a '@Sendable' closure; this is an error in the Swift 6 language mode
532 |                             let weight = property.weight == 1 ? 1 : 1 - property.weight
533 |                             let score = result.score * weight
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:531:41: warning: capture of 'self' with non-sendable type 'Fuse' in an isolated closure; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public class Fuse {
    |              `- note: class 'Fuse' does not conform to the 'Sendable' protocol
 30 |     private var location: Int
 31 |     private var distance: Int
    :
529 |                         let value = property.name
530 |
531 |                         if let result = self.search(pattern, in: value) {
    |                                         `- warning: capture of 'self' with non-sendable type 'Fuse' in an isolated closure; this is an error in the Swift 6 language mode
532 |                             let weight = property.weight == 1 ? 1 : 1 - property.weight
533 |                             let score = result.score * weight
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:554:21: warning: mutation of captured var 'collectionResult' in concurrently-executing code; this is an error in the Swift 6 language mode
552 |
553 |                 collectionResultQueue.async {
554 |                     collectionResult.append(contentsOf: chunkResult)
    |                     `- warning: mutation of captured var 'collectionResult' in concurrently-executing code; this is an error in the Swift 6 language mode
555 |                     group.leave()
556 |                 }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:554:57: warning: reference to captured var 'chunkResult' in concurrently-executing code; this is an error in the Swift 6 language mode
552 |
553 |                 collectionResultQueue.async {
554 |                     collectionResult.append(contentsOf: chunkResult)
    |                                                         `- warning: reference to captured var 'chunkResult' in concurrently-executing code; this is an error in the Swift 6 language mode
555 |                     group.leave()
556 |                 }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:386:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
384 |             let sorted = items.sorted { $0.score < $1.score }
385 |             DispatchQueue.main.async {
386 |                 completion(sorted)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
387 |             }
388 |         }
/host/spi-builder-workspace/Fuse/Classes/Fuse.swift:565:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
563 |             let sorted = collectionResult.sorted { $0.score < $1.score }
564 |             DispatchQueue.main.async {
565 |                 completion(sorted)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
566 |             }
567 |         }
[5/6] Compiling Fuse String+Fuse.swift
[6/6] Emitting module Fuse
Build complete! (7.10s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Fuse",
  "name" : "Fuse",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "Fuse",
      "targets" : [
        "Fuse"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Fuse",
      "module_type" : "SwiftTarget",
      "name" : "Fuse",
      "path" : "Fuse",
      "product_memberships" : [
        "Fuse"
      ],
      "sources" : [
        "Classes/Fuse.swift",
        "Classes/FuseUtilities.swift",
        "Classes/String+Fuse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.