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 main (466d8b), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 06:46:57 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexhunsley/patchouli-core
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 466d8bf Update README.md
Cloned https://github.com/alexhunsley/patchouli-core.git
Revision (git rev-parse @):
466d8bf714654716727c5543853f19ebc73ba532
SUCCESS checkout https://github.com/alexhunsley/patchouli-core.git at main
========================================
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.89s)
Creating working copy for https://github.com/alexhunsley/patchouli-core.git
Working copy of https://github.com/alexhunsley/patchouli-core.git resolved at main (466d8bf)
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 PatchedContent+Reduce.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 PatchType.swift
[6/12] Compiling PatchouliCore Patchable.swift
[7/12] Compiling PatchouliCore AddressedPatchItemsBuilder.swift
[8/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
[9/12] Compiling PatchouliCore DSL+StringPatch.swift
[10/12] Compiling PatchouliCore DSL.swift
[11/12] Compiling PatchouliCore String+Util.swift
[12/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
Build complete! (12.27s)
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.