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 Finite, reference master (cbd5de), with Swift 6.1 for Linux on 25 Apr 2025 19:10:56 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/vknabel/Finite.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/vknabel/Finite
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at cbd5de6 Improvements for Swift 5.3
Cloned https://github.com/vknabel/Finite.git
Revision (git rev-parse @):
cbd5de6ebbabfb39a730d1357c1c3659f4301c45
SUCCESS checkout https://github.com/vknabel/Finite.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vknabel/Finite.git
https://github.com/vknabel/Finite.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "komondor",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/shibapm/Komondor.git"
    },
    {
      "identity" : "swiftformat",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.43.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/SwiftFormat.git"
    },
    {
      "identity" : "rocket",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/f-meloni/Rocket.git"
    }
  ],
  "manifest_display_name" : "Finite",
  "name" : "Finite",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Finite",
      "targets" : [
        "Finite"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FiniteTests",
      "module_type" : "SwiftTarget",
      "name" : "FiniteTests",
      "path" : "Tests",
      "sources" : [
        "FiniteTests/StateFlowTests.swift",
        "FiniteTests/StateMachine.swift",
        "FiniteTests/SwiftShim.swift",
        "FiniteTests/TransitionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Finite"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Finite",
      "module_type" : "SwiftTarget",
      "name" : "Finite",
      "path" : "Sources",
      "product_memberships" : [
        "Finite"
      ],
      "sources" : [
        "Ref.swift",
        "StateFlow.swift",
        "StateMachine.swift",
        "Transition.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
Fetching https://github.com/shibapm/Komondor.git
Fetching https://github.com/f-meloni/Rocket.git
Fetching https://github.com/nicklockwood/SwiftFormat.git
[1/509] Fetching komondor
[510/1895] Fetching komondor, rocket
Fetched https://github.com/f-meloni/Rocket.git from cache (0.25s)
[1/46730] Fetching swiftformat
Fetched https://github.com/shibapm/Komondor.git from cache (19.20s)
Fetched https://github.com/nicklockwood/SwiftFormat.git from cache (19.83s)
Computing version for https://github.com/f-meloni/Rocket.git
Computed https://github.com/f-meloni/Rocket.git at 1.3.0 (20.29s)
Fetching https://github.com/kareman/SwiftShell
Fetching https://github.com/shibapm/Logger
Fetching https://github.com/shibapm/PackageConfig.git
Fetching https://github.com/jpsim/Yams
[1/4863] Fetching swiftshell
[1071/4979] Fetching swiftshell, logger
[1868/5559] Fetching swiftshell, logger, packageconfig
Fetched https://github.com/shibapm/Logger from cache (0.25s)
[1/10289] Fetching yams
Fetched https://github.com/shibapm/PackageConfig.git from cache (1.10s)
Fetched https://github.com/kareman/SwiftShell from cache (1.10s)
Fetched https://github.com/jpsim/Yams from cache (1.13s)
Computing version for https://github.com/kareman/SwiftShell
Computed https://github.com/kareman/SwiftShell at 5.1.0 (1.59s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (1.95s)
Computing version for https://github.com/shibapm/PackageConfig.git
Computed https://github.com/shibapm/PackageConfig.git at 1.1.3 (0.46s)
Computing version for https://github.com/shibapm/Komondor.git
Computed https://github.com/shibapm/Komondor.git at 1.1.4 (0.49s)
Fetching https://github.com/Realm/SwiftLint.git
Fetching https://github.com/JohnSundell/ShellOut.git
[1/960] Fetching shellout
[961/150853] Fetching shellout, swiftlint
Fetched https://github.com/JohnSundell/ShellOut.git from cache (20.09s)
Fetched https://github.com/Realm/SwiftLint.git from cache (21.59s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (27.15s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 5.3.1 (1.87s)
Computing version for https://github.com/Realm/SwiftLint.git
Computed https://github.com/Realm/SwiftLint.git at 0.59.1 (0.73s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/scottrhoyt/SwiftyTextTable.git
Fetching https://github.com/jpsim/SourceKitten.git
Fetching https://github.com/JohnSundell/CollectionConcurrencyKit.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/929] Fetching swiftytexttable
[930/13863] Fetching swiftytexttable, cryptoswift
[931/29975] Fetching swiftytexttable, cryptoswift, sourcekitten
[16185/44888] Fetching swiftytexttable, cryptoswift, sourcekitten, swift-argument-parser
[18583/44972] Fetching swiftytexttable, cryptoswift, sourcekitten, swift-argument-parser, collectionconcurrencykit
[35532/115167] Fetching swiftytexttable, cryptoswift, sourcekitten, swift-argument-parser, collectionconcurrencykit, swift-syntax
Fetched https://github.com/JohnSundell/CollectionConcurrencyKit.git from cache (1.37s)
[71563/115083] Fetching swiftytexttable, cryptoswift, sourcekitten, swift-argument-parser, swift-syntax
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.39s)
[59331/102149] Fetching swiftytexttable, sourcekitten, swift-argument-parser, swift-syntax
Fetched https://github.com/scottrhoyt/SwiftyTextTable.git from cache (3.96s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (3.97s)
Fetched https://github.com/jpsim/SourceKitten.git from cache (3.98s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.01s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.4 (4.48s)
Computing version for https://github.com/JohnSundell/CollectionConcurrencyKit.git
Computed https://github.com/JohnSundell/CollectionConcurrencyKit.git at 0.2.0 (0.46s)
Computing version for https://github.com/scottrhoyt/SwiftyTextTable.git
Computed https://github.com/scottrhoyt/SwiftyTextTable.git at 0.9.0 (1.84s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.37.0 (0.46s)
Fetching https://github.com/drmohundro/SWXMLHash.git
[1/2820] Fetching swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (0.27s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.0 (0.87s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 7.0.2 (0.46s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (0.43s)
Computing version for https://github.com/nicklockwood/SwiftFormat.git
Computed https://github.com/nicklockwood/SwiftFormat.git at 0.55.5 (0.46s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.8.4
Creating working copy for https://github.com/nicklockwood/SwiftFormat.git
Working copy of https://github.com/nicklockwood/SwiftFormat.git resolved at 0.55.5
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.0
Creating working copy for https://github.com/Realm/SwiftLint.git
Working copy of https://github.com/Realm/SwiftLint.git resolved at 0.59.1
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.0
Creating working copy for https://github.com/f-meloni/Rocket.git
Working copy of https://github.com/f-meloni/Rocket.git resolved at 1.3.0
Creating working copy for https://github.com/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.37.0
Creating working copy for https://github.com/shibapm/Logger
Working copy of https://github.com/shibapm/Logger resolved at 0.2.3
Creating working copy for https://github.com/shibapm/PackageConfig.git
Working copy of https://github.com/shibapm/PackageConfig.git resolved at 1.1.3
Creating working copy for https://github.com/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 5.3.1
Creating working copy for https://github.com/shibapm/Komondor.git
Working copy of https://github.com/shibapm/Komondor.git resolved at 1.1.4
Creating working copy for https://github.com/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
Creating working copy for https://github.com/JohnSundell/CollectionConcurrencyKit.git
Working copy of https://github.com/JohnSundell/CollectionConcurrencyKit.git resolved at 0.2.0
Creating working copy for https://github.com/scottrhoyt/SwiftyTextTable.git
Working copy of https://github.com/scottrhoyt/SwiftyTextTable.git resolved at 0.9.0
Creating working copy for https://github.com/kareman/SwiftShell
Working copy of https://github.com/kareman/SwiftShell resolved at 5.1.0
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 7.0.2
[1/1] Compiling plugin SwiftFormatPlugin
[2/2] Compiling plugin SwiftLintCommandPlugin
[3/3] Compiling plugin SwiftLintBuildToolPlugin
[4/4] Compiling plugin GenerateManual
Building for debugging...
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/11] Compiling Finite StateMachine.swift
/host/spi-builder-workspace/Sources/StateMachine.swift:12:10: warning: associated value 'denied(from:to:)' of 'Sendable'-conforming generic enum 'TransitionError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
  8 |
  9 | /// Indicates that a transition failed.
 10 | public enum TransitionError<T: Hashable>: Error {
    |                             `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 11 |     /// Represents a tried transition that is not allowed.
 12 |     case denied(from: T, to: T)
    |          `- warning: associated value 'denied(from:to:)' of 'Sendable'-conforming generic enum 'TransitionError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
 13 | }
 14 |
/host/spi-builder-workspace/Sources/StateMachine.swift:12:10: warning: associated value 'denied(from:to:)' of 'Sendable'-conforming generic enum 'TransitionError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
  8 |
  9 | /// Indicates that a transition failed.
 10 | public enum TransitionError<T: Hashable>: Error {
    |                             `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 11 |     /// Represents a tried transition that is not allowed.
 12 |     case denied(from: T, to: T)
    |          `- warning: associated value 'denied(from:to:)' of 'Sendable'-conforming generic enum 'TransitionError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
 13 | }
 14 |
[8/11] Compiling Finite Transition.swift
[9/11] Compiling Finite Ref.swift
/host/spi-builder-workspace/Sources/Ref.swift:37:25: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | internal class Ref<T> {
   |                    `- note: 'T' previously declared here
 8 |     private var value: () -> T?
 9 |
   :
35 |     }
36 |
37 |     private struct Weak<T> {
   |                         `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 |         fileprivate weak var value: Box<T>?
39 |     }
/host/spi-builder-workspace/Sources/Ref.swift:41:23: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | internal class Ref<T> {
   |                    `- note: 'T' previously declared here
 8 |     private var value: () -> T?
 9 |
   :
39 |     }
40 |
41 |     private class Box<T>: ReferenceDisposable {
   |                       `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
42 |         var value: T?
43 |
[10/11] Emitting module Finite
/host/spi-builder-workspace/Sources/Ref.swift:37:25: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | internal class Ref<T> {
   |                    `- note: 'T' previously declared here
 8 |     private var value: () -> T?
 9 |
   :
35 |     }
36 |
37 |     private struct Weak<T> {
   |                         `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
38 |         fileprivate weak var value: Box<T>?
39 |     }
/host/spi-builder-workspace/Sources/Ref.swift:41:23: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | internal class Ref<T> {
   |                    `- note: 'T' previously declared here
 8 |     private var value: () -> T?
 9 |
   :
39 |     }
40 |
41 |     private class Box<T>: ReferenceDisposable {
   |                       `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
42 |         var value: T?
43 |
/host/spi-builder-workspace/Sources/StateMachine.swift:12:10: warning: associated value 'denied(from:to:)' of 'Sendable'-conforming generic enum 'TransitionError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
  8 |
  9 | /// Indicates that a transition failed.
 10 | public enum TransitionError<T: Hashable>: Error {
    |                             `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 11 |     /// Represents a tried transition that is not allowed.
 12 |     case denied(from: T, to: T)
    |          `- warning: associated value 'denied(from:to:)' of 'Sendable'-conforming generic enum 'TransitionError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
 13 | }
 14 |
/host/spi-builder-workspace/Sources/StateMachine.swift:12:10: warning: associated value 'denied(from:to:)' of 'Sendable'-conforming generic enum 'TransitionError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
  8 |
  9 | /// Indicates that a transition failed.
 10 | public enum TransitionError<T: Hashable>: Error {
    |                             `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 11 |     /// Represents a tried transition that is not allowed.
 12 |     case denied(from: T, to: T)
    |          `- warning: associated value 'denied(from:to:)' of 'Sendable'-conforming generic enum 'TransitionError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
 13 | }
 14 |
[11/11] Compiling Finite StateFlow.swift
Build complete! (79.02s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "komondor",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/shibapm/Komondor.git"
    },
    {
      "identity" : "swiftformat",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.43.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/SwiftFormat.git"
    },
    {
      "identity" : "rocket",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/f-meloni/Rocket.git"
    }
  ],
  "manifest_display_name" : "Finite",
  "name" : "Finite",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Finite",
      "targets" : [
        "Finite"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FiniteTests",
      "module_type" : "SwiftTarget",
      "name" : "FiniteTests",
      "path" : "Tests",
      "sources" : [
        "FiniteTests/StateFlowTests.swift",
        "FiniteTests/StateMachine.swift",
        "FiniteTests/SwiftShim.swift",
        "FiniteTests/TransitionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Finite"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Finite",
      "module_type" : "SwiftTarget",
      "name" : "Finite",
      "path" : "Sources",
      "product_memberships" : [
        "Finite"
      ],
      "sources" : [
        "Ref.swift",
        "StateFlow.swift",
        "StateMachine.swift",
        "Transition.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.