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 PatchouliJSON, reference main (89b9b1), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 00:41:11 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexhunsley/patchouli-jsonpatch.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexhunsley/patchouli-jsonpatch
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 89b9b1d Update README.md
Cloned https://github.com/alexhunsley/patchouli-jsonpatch.git
Revision (git rev-parse @):
89b9b1d595780f580c4636db082798cd08cc24d1
SUCCESS checkout https://github.com/alexhunsley/patchouli-jsonpatch.git at main
Fetching https://github.com/raymccrae/swift-jsonpatch
Fetching https://github.com/alexhunsley/patchouli-core
[1/457] Fetching patchouli-core
[235/1071] Fetching patchouli-core, swift-jsonpatch
Fetched https://github.com/alexhunsley/patchouli-core from cache (1.18s)
Fetched https://github.com/raymccrae/swift-jsonpatch from cache (1.18s)
Computing version for https://github.com/raymccrae/swift-jsonpatch.git
Computed https://github.com/raymccrae/swift-jsonpatch.git at 1.0.6 (2.26s)
Computing version for https://github.com/alexhunsley/patchouli-core
Computed https://github.com/alexhunsley/patchouli-core at 0.9.5 (0.44s)
Creating working copy for https://github.com/alexhunsley/patchouli-core
Working copy of https://github.com/alexhunsley/patchouli-core resolved at 0.9.5
Creating working copy for https://github.com/raymccrae/swift-jsonpatch
Working copy of https://github.com/raymccrae/swift-jsonpatch resolved at 1.0.6
========================================
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-jsonpatch",
      "name": "PatchouliJSON",
      "url": "https://github.com/alexhunsley/patchouli-jsonpatch.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/patchouli-jsonpatch",
      "dependencies": [
        {
          "identity": "patchouli-core",
          "name": "PatchouliCore",
          "url": "https://github.com/alexhunsley/patchouli-core",
          "version": "0.9.5",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/patchouli-core",
          "dependencies": [
          ]
        },
        {
          "identity": "swift-jsonpatch",
          "name": "JSONPatch",
          "url": "https://github.com/raymccrae/swift-jsonpatch.git",
          "version": "1.0.6",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-jsonpatch",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/alexhunsley/patchouli-jsonpatch.git
[1/365] Fetching patchouli-jsonpatch
Fetched https://github.com/alexhunsley/patchouli-jsonpatch.git from cache (0.97s)
Fetching https://github.com/alexhunsley/patchouli-core from cache
Fetching https://github.com/raymccrae/swift-jsonpatch.git from cache
Fetched https://github.com/alexhunsley/patchouli-core from cache (0.44s)
Fetched https://github.com/raymccrae/swift-jsonpatch.git from cache (0.44s)
Computing version for https://github.com/alexhunsley/patchouli-core
Computed https://github.com/alexhunsley/patchouli-core at 0.9.5 (0.49s)
Computing version for https://github.com/raymccrae/swift-jsonpatch.git
Computed https://github.com/raymccrae/swift-jsonpatch.git at 1.0.6 (0.54s)
Creating working copy for https://github.com/alexhunsley/patchouli-core
Working copy of https://github.com/alexhunsley/patchouli-core resolved at 0.9.5
Creating working copy for https://github.com/alexhunsley/patchouli-jsonpatch.git
Working copy of https://github.com/alexhunsley/patchouli-jsonpatch.git resolved at main (89b9b1d)
Creating working copy for https://github.com/raymccrae/swift-jsonpatch.git
Working copy of https://github.com/raymccrae/swift-jsonpatch.git resolved at 1.0.6
warning: '.resolve-product-dependencies': dependency 'patchouli-jsonpatch' is not used by any target
Found 2 product dependencies
  - PatchouliCore
  - JSONPatch
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/alexhunsley/patchouli-jsonpatch.git
https://github.com/alexhunsley/patchouli-jsonpatch.git
{
  "dependencies" : [
    {
      "identity" : "patchouli-core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.9.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/alexhunsley/patchouli-core"
    },
    {
      "identity" : "swift-jsonpatch",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/raymccrae/swift-jsonpatch.git"
    }
  ],
  "manifest_display_name" : "PatchouliJSON",
  "name" : "PatchouliJSON",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PatchouliJSON",
      "targets" : [
        "PatchouliJSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PatchouliJSONTests",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliJSONTests",
      "path" : "Tests",
      "sources" : [
        "Sources/PatchouliJSONTests.swift",
        "Sources/TestHepers.swift"
      ],
      "target_dependencies" : [
        "PatchouliJSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PatchouliJSON",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliJSON",
      "path" : "Sources",
      "product_dependencies" : [
        "PatchouliCore",
        "JSONPatch"
      ],
      "product_memberships" : [
        "PatchouliJSON"
      ],
      "sources" : [
        "DSL+JSONPatchType.swift",
        "JSONSimpleContentBuilder.swift",
        "ModuleExports.swift",
        "PatchTypes/JSONPatchType.swift",
        "Util/String+Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/24] Compiling PatchouliCore String+Util.swift
[6/24] Compiling PatchouliCore StringPatchType.swift
[7/24] Compiling PatchouliCore PatchedContent+Reduce.swift
[8/24] Compiling PatchouliCore DSL+StringPatch.swift
[9/24] Compiling JSONPatch JSONEquality.swift
[10/24] Emitting module JSONPatch
[11/24] Compiling PatchouliCore PatchType.swift
[12/24] Compiling JSONPatch JSONElement.swift
[13/24] Compiling JSONPatch NSArray+DeepCopy.swift
[14/24] Compiling JSONPatch JSONPointer.swift
[15/24] Compiling JSONPatch JSONError.swift
[16/24] Compiling JSONPatch JSONPatch.swift
[17/24] Compiling JSONPatch JSONPatchCodable.swift
[18/24] Compiling JSONPatch JSONPatchGenerator.swift
[19/24] Compiling JSONPatch NSDictionary+DeepCopy.swift
[20/24] Compiling PatchouliCore Patchable.swift
[21/24] Compiling PatchouliCore PatchouliError.swift
[22/24] Compiling PatchouliCore AddressedPatchItemsBuilder.swift
[23/24] Compiling PatchouliCore DSL.swift
[24/24] Emitting module PatchouliCore
[25/30] Compiling PatchouliJSON String+Util.swift
[26/30] Compiling PatchouliJSON ModuleExports.swift
[27/30] Compiling PatchouliJSON JSONSimpleContentBuilder.swift
[28/30] Compiling PatchouliJSON DSL+JSONPatchType.swift
[29/30] Compiling PatchouliJSON JSONPatchType.swift
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:15:12: warning: let 'null' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
 13 | /// An explicit type for JSON null. Trying to use 'nil' for this would be a bad
 14 | /// idea because our ResultBuilders use nil internally when simplifying.
 15 | public let null: Any? = nil
    |            |- warning: let 'null' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'null' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 | public typealias PatchedJSON = PatchedContent<JSONPatchType>
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:30:23: warning: static property 'patcher' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 |     /// The Protocol Witness used by the reducer
 30 |     static public var patcher = Patchable<JSONPatchType>(
    |                       |- warning: static property 'patcher' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'patcher' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- 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
 31 |         added: { (container: ContentType, addition: ContentType, address: String) throws -> ContentType in
 32 |             let additionStr = try addition.string()
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:88:23: warning: static property 'emptyObjectContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 86 |     )
 87 |
 88 |     static public var emptyObjectContent: JSONContent = .literal("{}".utf8Data)
    |                       |- warning: static property 'emptyObjectContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'emptyObjectContent' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'emptyObjectContent' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 89 |     static public var emptyArrayContent: JSONContent = .literal("[]".utf8Data)
 90 |
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:89:23: warning: static property 'emptyArrayContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 87 |
 88 |     static public var emptyObjectContent: JSONContent = .literal("{}".utf8Data)
 89 |     static public var emptyArrayContent: JSONContent = .literal("[]".utf8Data)
    |                       |- warning: static property 'emptyArrayContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'emptyArrayContent' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'emptyArrayContent' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 90 |
 91 |     public static var emptyContent: JSONContent = emptyObjectContent
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:91: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
 89 |     static public var emptyArrayContent: JSONContent = .literal("[]".utf8Data)
 90 |
 91 |     public static var emptyContent: JSONContent = emptyObjectContent
    |                       |- 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
 92 | }
 93 |
[30/30] Emitting module PatchouliJSON
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:15:12: warning: let 'null' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
 13 | /// An explicit type for JSON null. Trying to use 'nil' for this would be a bad
 14 | /// idea because our ResultBuilders use nil internally when simplifying.
 15 | public let null: Any? = nil
    |            |- warning: let 'null' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: add '@MainActor' to make let 'null' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 | public typealias PatchedJSON = PatchedContent<JSONPatchType>
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:30:23: warning: static property 'patcher' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 |     /// The Protocol Witness used by the reducer
 30 |     static public var patcher = Patchable<JSONPatchType>(
    |                       |- warning: static property 'patcher' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'patcher' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- 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
 31 |         added: { (container: ContentType, addition: ContentType, address: String) throws -> ContentType in
 32 |             let additionStr = try addition.string()
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:88:23: warning: static property 'emptyObjectContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 86 |     )
 87 |
 88 |     static public var emptyObjectContent: JSONContent = .literal("{}".utf8Data)
    |                       |- warning: static property 'emptyObjectContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'emptyObjectContent' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'emptyObjectContent' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 89 |     static public var emptyArrayContent: JSONContent = .literal("[]".utf8Data)
 90 |
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:89:23: warning: static property 'emptyArrayContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 87 |
 88 |     static public var emptyObjectContent: JSONContent = .literal("{}".utf8Data)
 89 |     static public var emptyArrayContent: JSONContent = .literal("[]".utf8Data)
    |                       |- warning: static property 'emptyArrayContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'emptyArrayContent' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'emptyArrayContent' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 90 |
 91 |     public static var emptyContent: JSONContent = emptyObjectContent
/Users/admin/builder/spi-builder-workspace/Sources/PatchTypes/JSONPatchType.swift:91: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
 89 |     static public var emptyArrayContent: JSONContent = .literal("[]".utf8Data)
 90 |
 91 |     public static var emptyContent: JSONContent = emptyObjectContent
    |                       |- 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
 92 | }
 93 |
Build complete! (8.05s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "patchouli-core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.9.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/alexhunsley/patchouli-core"
    },
    {
      "identity" : "swift-jsonpatch",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/raymccrae/swift-jsonpatch.git"
    }
  ],
  "manifest_display_name" : "PatchouliJSON",
  "name" : "PatchouliJSON",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PatchouliJSON",
      "targets" : [
        "PatchouliJSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PatchouliJSONTests",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliJSONTests",
      "path" : "Tests",
      "sources" : [
        "Sources/PatchouliJSONTests.swift",
        "Sources/TestHepers.swift"
      ],
      "target_dependencies" : [
        "PatchouliJSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PatchouliJSON",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliJSON",
      "path" : "Sources",
      "product_dependencies" : [
        "PatchouliCore",
        "JSONPatch"
      ],
      "product_memberships" : [
        "PatchouliJSON"
      ],
      "sources" : [
        "DSL+JSONPatchType.swift",
        "JSONSimpleContentBuilder.swift",
        "ModuleExports.swift",
        "PatchTypes/JSONPatchType.swift",
        "Util/String+Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.