The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Finite, reference 4.0.0 (f5376d), with Swift 6.1 for Android on 27 May 2025 17:08:28 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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.63.1
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:         android
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" : [
  ],
  "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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling Finite StateFlow.swift
[4/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 |
[5/7] Compiling Finite Transition.swift
[6/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 |
[7/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 |
Build complete! (4.15s)
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"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.