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 RuleKit, reference master (2d7215), with Swift 6.1 for Linux on 25 Apr 2025 14:55:33 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/apparata/rulekit.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/apparata/rulekit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2d72159 Update Package.swift
Cloned https://github.com/apparata/rulekit.git
Revision (git rev-parse @):
2d7215959d214dd5fadc3ae19167bef5482eaa84
SUCCESS checkout https://github.com/apparata/rulekit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/apparata/rulekit.git
https://github.com/apparata/rulekit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RuleKit",
  "name" : "RuleKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "RuleKit",
      "targets" : [
        "RuleKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RuleKitTests",
      "module_type" : "SwiftTarget",
      "name" : "RuleKitTests",
      "path" : "Tests/RuleKitTests",
      "sources" : [
        "RuleKitTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "RuleKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RuleKit",
      "module_type" : "SwiftTarget",
      "name" : "RuleKit",
      "path" : "Sources/RuleKit",
      "product_memberships" : [
        "RuleKit"
      ],
      "sources" : [
        "Collection Extensions/Collection+Satisfies.swift",
        "Generic Rules/Composite Rules/SatisfyAllRules.swift",
        "Generic Rules/Composite Rules/SatisfyAnyRules.swift",
        "Generic Rules/Composite Rules/SatisfyAtLeastRules.swift",
        "Generic Rules/Composite Rules/SatisfyAtMostRules.swift",
        "Generic Rules/Composite Rules/SatisfyBothRule.swift",
        "Generic Rules/Composite Rules/SatisfyEitherRule.swift",
        "Generic Rules/Composite Rules/SatisfyExactlyOneRule.swift",
        "Generic Rules/Composite Rules/SatisfyExactlyRules.swift",
        "Generic Rules/Composite Rules/SatisfyLessThanRules.swift",
        "Generic Rules/Composite Rules/SatisfyMoreThanRules.swift",
        "Generic Rules/Composite Rules/SatisfyNoRule.swift",
        "Generic Rules/Composite Rules/SatisfyNotRule.swift",
        "Generic Rules/Rule.swift",
        "Generic Rules/Value Rules/SatisfyAtLeast.swift",
        "Generic Rules/Value Rules/SatisfyAtMost.swift",
        "Generic Rules/Value Rules/SatisfyEquals.swift",
        "Generic Rules/Value Rules/SatisfyIdentical.swift",
        "Generic Rules/Value Rules/SatisfyLessThan.swift",
        "Generic Rules/Value Rules/SatisfyMoreThan.swift",
        "Type Specific Rules/Int+Rules.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/22] Emitting module RuleKit
/host/spi-builder-workspace/Sources/RuleKit/Type Specific Rules/Int+Rules.swift:20:16: warning: static property 'even' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | public extension Rule where Value == Int {
19 |
20 |     static let even: Rule = IsEvenIntRule()
   |                |- warning: static property 'even' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'even' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |     static let odd: Rule = .not(.even)
22 | }
/host/spi-builder-workspace/Sources/RuleKit/Generic Rules/Rule.swift:7:14: note: generic class 'Rule' does not conform to the 'Sendable' protocol
 5 | import Foundation
 6 |
 7 | public class Rule<Value> {
   |              `- note: generic class 'Rule' does not conform to the 'Sendable' protocol
 8 |
 9 |     public init() {}
/host/spi-builder-workspace/Sources/RuleKit/Type Specific Rules/Int+Rules.swift:21:16: warning: static property 'odd' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
19 |
20 |     static let even: Rule = IsEvenIntRule()
21 |     static let odd: Rule = .not(.even)
   |                |- warning: static property 'odd' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'odd' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
/host/spi-builder-workspace/Sources/RuleKit/Generic Rules/Rule.swift:7:14: note: generic class 'Rule' does not conform to the 'Sendable' protocol
 5 | import Foundation
 6 |
 7 | public class Rule<Value> {
   |              `- note: generic class 'Rule' does not conform to the 'Sendable' protocol
 8 |
 9 |     public init() {}
[4/24] Compiling RuleKit SatisfyIdentical.swift
[5/24] Compiling RuleKit SatisfyLessThan.swift
[6/24] Compiling RuleKit SatisfyLessThanRules.swift
[7/24] Compiling RuleKit SatisfyMoreThanRules.swift
[8/24] Compiling RuleKit SatisfyNoRule.swift
[9/24] Compiling RuleKit SatisfyMoreThan.swift
/host/spi-builder-workspace/Sources/RuleKit/Type Specific Rules/Int+Rules.swift:20:16: warning: static property 'even' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | public extension Rule where Value == Int {
19 |
20 |     static let even: Rule = IsEvenIntRule()
   |                |- warning: static property 'even' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'even' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |     static let odd: Rule = .not(.even)
22 | }
/host/spi-builder-workspace/Sources/RuleKit/Generic Rules/Rule.swift:7:14: note: generic class 'Rule' does not conform to the 'Sendable' protocol
 5 | import Foundation
 6 |
 7 | public class Rule<Value> {
   |              `- note: generic class 'Rule' does not conform to the 'Sendable' protocol
 8 |
 9 |     public init() {}
/host/spi-builder-workspace/Sources/RuleKit/Type Specific Rules/Int+Rules.swift:21:16: warning: static property 'odd' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
19 |
20 |     static let even: Rule = IsEvenIntRule()
21 |     static let odd: Rule = .not(.even)
   |                |- warning: static property 'odd' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'odd' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
/host/spi-builder-workspace/Sources/RuleKit/Generic Rules/Rule.swift:7:14: note: generic class 'Rule' does not conform to the 'Sendable' protocol
 5 | import Foundation
 6 |
 7 | public class Rule<Value> {
   |              `- note: generic class 'Rule' does not conform to the 'Sendable' protocol
 8 |
 9 |     public init() {}
[10/24] Compiling RuleKit Int+Rules.swift
/host/spi-builder-workspace/Sources/RuleKit/Type Specific Rules/Int+Rules.swift:20:16: warning: static property 'even' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | public extension Rule where Value == Int {
19 |
20 |     static let even: Rule = IsEvenIntRule()
   |                |- warning: static property 'even' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'even' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |     static let odd: Rule = .not(.even)
22 | }
/host/spi-builder-workspace/Sources/RuleKit/Generic Rules/Rule.swift:7:14: note: generic class 'Rule' does not conform to the 'Sendable' protocol
 5 | import Foundation
 6 |
 7 | public class Rule<Value> {
   |              `- note: generic class 'Rule' does not conform to the 'Sendable' protocol
 8 |
 9 |     public init() {}
/host/spi-builder-workspace/Sources/RuleKit/Type Specific Rules/Int+Rules.swift:21:16: warning: static property 'odd' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
19 |
20 |     static let even: Rule = IsEvenIntRule()
21 |     static let odd: Rule = .not(.even)
   |                |- warning: static property 'odd' is not concurrency-safe because non-'Sendable' type 'Rule<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'odd' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
/host/spi-builder-workspace/Sources/RuleKit/Generic Rules/Rule.swift:7:14: note: generic class 'Rule' does not conform to the 'Sendable' protocol
 5 | import Foundation
 6 |
 7 | public class Rule<Value> {
   |              `- note: generic class 'Rule' does not conform to the 'Sendable' protocol
 8 |
 9 |     public init() {}
[11/24] Compiling RuleKit SatisfyNotRule.swift
[12/24] Compiling RuleKit Rule.swift
[13/24] Compiling RuleKit SatisfyAtLeast.swift
[14/24] Compiling RuleKit SatisfyEitherRule.swift
[15/24] Compiling RuleKit SatisfyExactlyOneRule.swift
[16/24] Compiling RuleKit SatisfyExactlyRules.swift
[17/24] Compiling RuleKit SatisfyAtLeastRules.swift
[18/24] Compiling RuleKit SatisfyAtMostRules.swift
[19/24] Compiling RuleKit SatisfyBothRule.swift
[20/24] Compiling RuleKit Collection+Satisfies.swift
[21/24] Compiling RuleKit SatisfyAllRules.swift
[22/24] Compiling RuleKit SatisfyAnyRules.swift
[23/24] Compiling RuleKit SatisfyAtMost.swift
[24/24] Compiling RuleKit SatisfyEquals.swift
Build complete! (13.34s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RuleKit",
  "name" : "RuleKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "RuleKit",
      "targets" : [
        "RuleKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RuleKitTests",
      "module_type" : "SwiftTarget",
      "name" : "RuleKitTests",
      "path" : "Tests/RuleKitTests",
      "sources" : [
        "RuleKitTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "RuleKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RuleKit",
      "module_type" : "SwiftTarget",
      "name" : "RuleKit",
      "path" : "Sources/RuleKit",
      "product_memberships" : [
        "RuleKit"
      ],
      "sources" : [
        "Collection Extensions/Collection+Satisfies.swift",
        "Generic Rules/Composite Rules/SatisfyAllRules.swift",
        "Generic Rules/Composite Rules/SatisfyAnyRules.swift",
        "Generic Rules/Composite Rules/SatisfyAtLeastRules.swift",
        "Generic Rules/Composite Rules/SatisfyAtMostRules.swift",
        "Generic Rules/Composite Rules/SatisfyBothRule.swift",
        "Generic Rules/Composite Rules/SatisfyEitherRule.swift",
        "Generic Rules/Composite Rules/SatisfyExactlyOneRule.swift",
        "Generic Rules/Composite Rules/SatisfyExactlyRules.swift",
        "Generic Rules/Composite Rules/SatisfyLessThanRules.swift",
        "Generic Rules/Composite Rules/SatisfyMoreThanRules.swift",
        "Generic Rules/Composite Rules/SatisfyNoRule.swift",
        "Generic Rules/Composite Rules/SatisfyNotRule.swift",
        "Generic Rules/Rule.swift",
        "Generic Rules/Value Rules/SatisfyAtLeast.swift",
        "Generic Rules/Value Rules/SatisfyAtMost.swift",
        "Generic Rules/Value Rules/SatisfyEquals.swift",
        "Generic Rules/Value Rules/SatisfyIdentical.swift",
        "Generic Rules/Value Rules/SatisfyLessThan.swift",
        "Generic Rules/Value Rules/SatisfyMoreThan.swift",
        "Type Specific Rules/Int+Rules.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.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
Done.