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 PatchouliCore, reference 0.9.5 (d7e378), with Swift 6.1 for Linux on 29 Apr 2025 00:35:20 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/alexhunsley/patchouli-core.git
Reference: 0.9.5
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/alexhunsley/patchouli-core
 * tag               0.9.5      -> FETCH_HEAD
HEAD is now at d7e3787 Update README.md
Cloned https://github.com/alexhunsley/patchouli-core.git
Revision (git rev-parse @):
d7e37870e5a3eb39a761d2d2c253b6d0cb67386b
SUCCESS checkout https://github.com/alexhunsley/patchouli-core.git at 0.9.5
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/alexhunsley/patchouli-core.git
https://github.com/alexhunsley/patchouli-core.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PatchouliCore",
  "name" : "PatchouliCore",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PatchouliCore",
      "targets" : [
        "PatchouliCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PatchouliCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliCoreTests",
      "path" : "Tests",
      "sources" : [
        "PatchouliCoreTests.swift",
        "PatchouliStringTests.swift",
        "TestHelpers.swift"
      ],
      "target_dependencies" : [
        "PatchouliCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PatchouliCore",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliCore",
      "path" : "Sources",
      "product_memberships" : [
        "PatchouliCore"
      ],
      "sources" : [
        "AddressedPatchItemsBuilder.swift",
        "DSL.swift",
        "PatchType.swift",
        "Patchable/Patchable.swift",
        "PatchedContent+Reduce.swift",
        "PatchouliError.swift",
        "StringPatch/DSL+StringPatch.swift",
        "StringPatch/StringPatchType.swift",
        "Util/String+Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/11] Compiling PatchouliCore DSL+StringPatch.swift
[4/12] Compiling PatchouliCore PatchouliError.swift
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.AddressType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.AddressType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
11 | }
12 |
[5/12] Compiling PatchouliCore StringPatchType.swift
/host/spi-builder-workspace/Sources/StringPatch/StringPatchType.swift:11:23: warning: static property 'emptyContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |     public typealias AddressType = String
10 |
11 |     public static var emptyContent = ""
   |                       |- warning: static property 'emptyContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'emptyContent' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'emptyContent' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     /// The Protocol Witness used by the reducer
/host/spi-builder-workspace/Sources/StringPatch/StringPatchType.swift:14:23: warning: static property 'patcher' is not concurrency-safe because non-'Sendable' type 'Patchable<StringPatchType>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     /// The Protocol Witness used by the reducer
14 |     static public let patcher = Patchable<StringPatchType>(
   |                       |- warning: static property 'patcher' is not concurrency-safe because non-'Sendable' type 'Patchable<StringPatchType>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'patcher' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |         added: { (container: String, content: String, address: String) -> String in
16 |             // We interpret 'add' in string matching to mean "place a copy of content
/host/spi-builder-workspace/Sources/Patchable/Patchable.swift:9:15: note: consider making generic struct 'Patchable' conform to the 'Sendable' protocol
 7 | /// Protocol witness instantiations of this type should lose the
 8 | /// gerund style and be named e.g. 'patcher'.
 9 | public struct Patchable<T: PatchType> {
   |               `- note: consider making generic struct 'Patchable' conform to the 'Sendable' protocol
10 |     public typealias C = T.ContentType
11 |     public typealias A = T.AddressType
[6/12] Compiling PatchouliCore PatchedContent+Reduce.swift
[7/12] Compiling PatchouliCore PatchType.swift
[8/12] Compiling PatchouliCore Patchable.swift
[9/12] Emitting module PatchouliCore
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.AddressType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.AddressType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/StringPatch/StringPatchType.swift:11:23: warning: static property 'emptyContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |     public typealias AddressType = String
10 |
11 |     public static var emptyContent = ""
   |                       |- warning: static property 'emptyContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'emptyContent' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'emptyContent' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     /// The Protocol Witness used by the reducer
/host/spi-builder-workspace/Sources/StringPatch/StringPatchType.swift:14:23: warning: static property 'patcher' is not concurrency-safe because non-'Sendable' type 'Patchable<StringPatchType>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     /// The Protocol Witness used by the reducer
14 |     static public let patcher = Patchable<StringPatchType>(
   |                       |- warning: static property 'patcher' is not concurrency-safe because non-'Sendable' type 'Patchable<StringPatchType>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'patcher' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |         added: { (container: String, content: String, address: String) -> String in
16 |             // We interpret 'add' in string matching to mean "place a copy of content
/host/spi-builder-workspace/Sources/Patchable/Patchable.swift:9:15: note: consider making generic struct 'Patchable' conform to the 'Sendable' protocol
 7 | /// Protocol witness instantiations of this type should lose the
 8 | /// gerund style and be named e.g. 'patcher'.
 9 | public struct Patchable<T: PatchType> {
   |               `- note: consider making generic struct 'Patchable' conform to the 'Sendable' protocol
10 |     public typealias C = T.ContentType
11 |     public typealias A = T.AddressType
[10/12] Compiling PatchouliCore AddressedPatchItemsBuilder.swift
[11/12] Compiling PatchouliCore DSL.swift
[12/12] Compiling PatchouliCore String+Util.swift
Build complete! (25.77s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PatchouliCore",
  "name" : "PatchouliCore",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PatchouliCore",
      "targets" : [
        "PatchouliCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PatchouliCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliCoreTests",
      "path" : "Tests",
      "sources" : [
        "PatchouliCoreTests.swift",
        "PatchouliStringTests.swift",
        "TestHelpers.swift"
      ],
      "target_dependencies" : [
        "PatchouliCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PatchouliCore",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliCore",
      "path" : "Sources",
      "product_memberships" : [
        "PatchouliCore"
      ],
      "sources" : [
        "AddressedPatchItemsBuilder.swift",
        "DSL.swift",
        "PatchType.swift",
        "Patchable/Patchable.swift",
        "PatchedContent+Reduce.swift",
        "PatchouliError.swift",
        "StringPatch/DSL+StringPatch.swift",
        "StringPatch/StringPatchType.swift",
        "Util/String+Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
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.