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 16 Sep 2024 07:57:27 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/alexhunsley/patchouli-core.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/12] Compiling PatchouliCore String+Util.swift
[4/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 |
[5/12] Compiling PatchouliCore DSL+StringPatch.swift
[6/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
[7/12] Compiling PatchouliCore PatchType.swift
[8/12] Compiling PatchouliCore PatchedContent+Reduce.swift
[9/12] Compiling PatchouliCore AddressedPatchItemsBuilder.swift
[10/12] Compiling PatchouliCore Patchable.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 DSL.swift
Build complete! (12.56s)
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.