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.0 for Linux on 31 Oct 2024 23:57:09 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.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.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.0
Building package at path:  $PWD
https://github.com/vknabel/Finite.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/f-meloni/Rocket.git
Fetching https://github.com/nicklockwood/SwiftFormat.git
Fetching https://github.com/shibapm/Komondor.git
[1/509] Fetching komondor
[510/1895] Fetching komondor, rocket
Fetched https://github.com/shibapm/Komondor.git from cache (0.23s)
Fetched https://github.com/f-meloni/Rocket.git from cache (0.23s)
[1/44979] Fetching swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat.git from cache (23.07s)
Computing version for https://github.com/f-meloni/Rocket.git
Computed https://github.com/f-meloni/Rocket.git at 1.3.0 (0.47s)
Fetching https://github.com/jpsim/Yams
Fetching https://github.com/shibapm/PackageConfig.git
Fetching https://github.com/kareman/SwiftShell
Fetching https://github.com/shibapm/Logger
[1/116] Fetching logger
[117/4979] Fetching logger, swiftshell
[118/5559] Fetching logger, swiftshell, packageconfig
Fetched https://github.com/shibapm/PackageConfig.git from cache (0.23s)
[1770/4979] Fetching logger, swiftshell
[1771/14881] Fetching logger, swiftshell, yams
Fetched https://github.com/shibapm/Logger from cache (0.87s)
Fetched https://github.com/kareman/SwiftShell from cache (0.87s)
Fetched https://github.com/jpsim/Yams from cache (0.90s)
Computing version for https://github.com/kareman/SwiftShell
Computed https://github.com/kareman/SwiftShell at 5.1.0 (0.46s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (1.85s)
Computing version for https://github.com/shibapm/PackageConfig.git
Computed https://github.com/shibapm/PackageConfig.git at 1.1.3 (0.45s)
Computing version for https://github.com/shibapm/Komondor.git
Computed https://github.com/shibapm/Komondor.git at 1.1.4 (0.45s)
Fetching https://github.com/JohnSundell/ShellOut.git
Fetching https://github.com/Realm/SwiftLint.git
[1/960] Fetching shellout
[961/142148] Fetching shellout, swiftlint
Fetched https://github.com/JohnSundell/ShellOut.git from cache (25.10s)
Fetched https://github.com/Realm/SwiftLint.git from cache (26.20s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (4.18s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 5.1.3 (0.44s)
Computing version for https://github.com/Realm/SwiftLint.git
Computed https://github.com/Realm/SwiftLint.git at 0.57.0 (0.47s)
Fetching https://github.com/scottrhoyt/SwiftyTextTable.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/jpsim/SourceKitten.git
Fetching https://github.com/JohnSundell/CollectionConcurrencyKit.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/929] Fetching swiftytexttable
[930/1012] Fetching swiftytexttable, collectionconcurrencykit
[1013/13715] Fetching swiftytexttable, collectionconcurrencykit, cryptoswift
[2919/29731] Fetching swiftytexttable, collectionconcurrencykit, cryptoswift, sourcekitten
[8365/42063] Fetching swiftytexttable, collectionconcurrencykit, cryptoswift, sourcekitten, swift-argument-parser
[32918/108451] Fetching swiftytexttable, collectionconcurrencykit, cryptoswift, sourcekitten, swift-argument-parser, swift-syntax
Fetched https://github.com/scottrhoyt/SwiftyTextTable.git from cache (0.95s)
[45106/107522] Fetching collectionconcurrencykit, cryptoswift, sourcekitten, swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.20s)
[40088/95190] Fetching collectionconcurrencykit, cryptoswift, sourcekitten, swift-syntax
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.61s)
[39999/82487] Fetching collectionconcurrencykit, sourcekitten, swift-syntax
Fetched https://github.com/JohnSundell/CollectionConcurrencyKit.git from cache (4.55s)
Fetched https://github.com/jpsim/SourceKitten.git from cache (4.57s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.60s)
Computing version for https://github.com/JohnSundell/CollectionConcurrencyKit.git
Computed https://github.com/JohnSundell/CollectionConcurrencyKit.git at 0.2.0 (0.44s)
Computing version for https://github.com/scottrhoyt/SwiftyTextTable.git
Computed https://github.com/scottrhoyt/SwiftyTextTable.git at 0.9.0 (1.80s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.35.0 (0.45s)
Fetching https://github.com/drmohundro/SWXMLHash.git
[1/2820] Fetching swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (0.30s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 7.0.2 (0.43s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.3 (0.44s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (3.95s)
Computing version for https://github.com/nicklockwood/SwiftFormat.git
Computed https://github.com/nicklockwood/SwiftFormat.git at 0.54.6 (1.71s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.0-prerelease-2024-08-14 (3.60s)
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 7.0.2
Creating working copy for https://github.com/Realm/SwiftLint.git
Working copy of https://github.com/Realm/SwiftLint.git resolved at 0.57.0
Creating working copy for https://github.com/nicklockwood/SwiftFormat.git
Working copy of https://github.com/nicklockwood/SwiftFormat.git resolved at 0.54.6
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/Yams
Working copy of https://github.com/jpsim/Yams resolved at 5.1.3
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/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/shibapm/PackageConfig.git
Working copy of https://github.com/shibapm/PackageConfig.git resolved at 1.1.3
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/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.35.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.0-prerelease-2024-08-14
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/scottrhoyt/SwiftyTextTable.git
Working copy of https://github.com/scottrhoyt/SwiftyTextTable.git resolved at 0.9.0
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.8.3
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/kareman/SwiftShell
Working copy of https://github.com/kareman/SwiftShell resolved at 5.1.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin SwiftFormatPlugin
[3/3] Compiling plugin SwiftLintBuildToolPlugin
[4/4] Compiling plugin SwiftLintCommandPlugin
Building for debugging...
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/11] Compiling Finite Transition.swift
[8/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 |
[9/11] Compiling Finite StateFlow.swift
[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 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 |
Build complete! (94.20s)
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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.