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.0 for macOS (SPM) on 1 Dec 2024 06:46:35 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexhunsley/patchouli-core.git
Reference: 0.9.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "patchouli-core",
      "name": "PatchouliCore",
      "url": "https://github.com/alexhunsley/patchouli-core.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/patchouli-core",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/alexhunsley/patchouli-core.git
[1/457] Fetching patchouli-core
Fetched https://github.com/alexhunsley/patchouli-core.git from cache (0.79s)
Creating working copy for https://github.com/alexhunsley/patchouli-core.git
Working copy of https://github.com/alexhunsley/patchouli-core.git resolved at 0.9.5 (d7e3787)
warning: '.resolve-product-dependencies': dependency 'patchouli-core' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/alexhunsley/patchouli-core.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PatchouliCore",
  "name" : "PatchouliCore",
  "path" : "/Users/admin/builder/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 ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling PatchouliCore StringPatchType.swift
/Users/admin/builder/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: annotate 'emptyContent' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     /// The Protocol Witness used by the reducer
/Users/admin/builder/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: annotate 'patcher' with '@MainActor' if property should only be accessed from the main actor
   |                       `- 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
/Users/admin/builder/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
[4/12] Compiling PatchouliCore String+Util.swift
[5/12] Compiling PatchouliCore PatchouliError.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
[6/12] Compiling PatchouliCore DSL+StringPatch.swift
[7/12] Compiling PatchouliCore PatchedContent+Reduce.swift
[8/12] Compiling PatchouliCore Patchable.swift
[9/12] Compiling PatchouliCore DSL.swift
[10/12] Compiling PatchouliCore AddressedPatchItemsBuilder.swift
[11/12] Emitting module PatchouliCore
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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: annotate 'emptyContent' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     /// The Protocol Witness used by the reducer
/Users/admin/builder/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: annotate 'patcher' with '@MainActor' if property should only be accessed from the main actor
   |                       `- 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
/Users/admin/builder/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
[12/12] Compiling PatchouliCore PatchType.swift
Build complete! (13.33s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PatchouliCore",
  "name" : "PatchouliCore",
  "path" : "/Users/admin/builder/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"
}
Done.