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 4.0.0 (f5376d), with Swift 6.0 for Linux on 27 Nov 2024 10:24:50 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vknabel/Finite.git
Reference: 4.0.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/vknabel/Finite
 * tag               4.0.0      -> FETCH_HEAD
HEAD is now at f5376dd Version 4.0.0
Cloned https://github.com/vknabel/Finite.git
Revision (git rev-parse @):
f5376dd4fe161d7d9f006247754db64982a5b87b
SUCCESS checkout https://github.com/vknabel/Finite.git at 4.0.0
========================================
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-4606859-1":/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 -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.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling Finite Transition.swift
[4/7] Compiling Finite StateFlow.swift
[5/7] Compiling Finite StateMachine.swift
/host/spi-builder-workspace/Sources/StateMachine.swift:17: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
 13 |
 14 | /// Indicates that a transition failed.
 15 | public enum TransitionError<T: Hashable>: Error {
    |                             `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 16 |     /// Represents a tried transition that is not allowed.
 17 |     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
 18 | }
 19 |
/host/spi-builder-workspace/Sources/StateMachine.swift:17: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
 13 |
 14 | /// Indicates that a transition failed.
 15 | public enum TransitionError<T: Hashable>: Error {
    |                             `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 16 |     /// Represents a tried transition that is not allowed.
 17 |     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
 18 | }
 19 |
[6/7] 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 |
[7/7] 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:17: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
 13 |
 14 | /// Indicates that a transition failed.
 15 | public enum TransitionError<T: Hashable>: Error {
    |                             `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 16 |     /// Represents a tried transition that is not allowed.
 17 |     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
 18 | }
 19 |
/host/spi-builder-workspace/Sources/StateMachine.swift:17: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
 13 |
 14 | /// Indicates that a transition failed.
 15 | public enum TransitionError<T: Hashable>: Error {
    |                             `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 16 |     /// Represents a tried transition that is not allowed.
 17 |     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
 18 | }
 19 |
Build complete! (5.60s)
Build complete.
{
  "dependencies" : [
  ],
  "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",
        "LinuxMain.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.