The Swift Package Index logo.Swift Package Index

Build Information

Successful build of JSONPatch, reference v1.0.6 (1eb123), with Swift 6.1 for Linux on 9 May 2026 02:21:00 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/raymccrae/swift-jsonpatch.git
Reference: v1.0.6
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/raymccrae/swift-jsonpatch
 * tag               v1.0.6     -> FETCH_HEAD
HEAD is now at 1eb1236 Merge pull request #7 from chrisschlitt/feature/linux-support
Cloned https://github.com/raymccrae/swift-jsonpatch.git
Revision (git rev-parse @):
1eb12363c1ee681712d2a42d2ee6f0322f92cf31
SUCCESS checkout https://github.com/raymccrae/swift-jsonpatch.git at v1.0.6
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/raymccrae/swift-jsonpatch.git
https://github.com/raymccrae/swift-jsonpatch.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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 swiftpackageindex/spi-images
Digest: sha256:a7bfd71e9384436264431030299dc8a2d42d0664a168cfa1a5dd84c9bc592ccf
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling JSONPatch JSONPatchCodable.swift
[4/12] Compiling JSONPatch JSONPointer.swift
/host/spi-builder-workspace/Sources/JSONPatch/JSONPointer.swift:40:16: warning: static property 'wholeDocument' is not concurrency-safe because non-'Sendable' type 'JSONPointer' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// A JSON Pointer implementation, based on RFC 6901.
 24 | /// https://tools.ietf.org/html/rfc6901
 25 | public struct JSONPointer {
    |               `- note: consider making struct 'JSONPointer' conform to the 'Sendable' protocol
 26 |
 27 |     /// An array of the unescaped components of the json-pointer.
    :
 38 |
 39 |     /// A json-pointer that represents the whole json document.
 40 |     static let wholeDocument: JSONPointer = JSONPointer(components: [])
    |                |- warning: static property 'wholeDocument' is not concurrency-safe because non-'Sendable' type 'JSONPointer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'wholeDocument' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |
 42 |     /// A string representation of the json-pointer.
/host/spi-builder-workspace/Sources/JSONPatch/JSONPointer.swift:186:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSONPointer' to 'Hashable' by implementing 'hash(into:)' instead
184 |     }
185 |     #else
186 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSONPointer' to 'Hashable' by implementing 'hash(into:)' instead
187 |         return components.hashValue
188 |     }
[5/12] Compiling JSONPatch NSArray+DeepCopy.swift
[6/12] Compiling JSONPatch JSONPatchGenerator.swift
[7/12] Compiling JSONPatch JSONPatch.swift
[8/12] Compiling JSONPatch JSONElement.swift
[9/12] Compiling JSONPatch JSONEquality.swift
[10/12] Emitting module JSONPatch
/host/spi-builder-workspace/Sources/JSONPatch/JSONError.swift:30:10: warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
28 |     case unknownPatchOperation
29 |     case missingRequiredPatchField(op: String, index: Int, field: String)
30 |     case patchTestFailed(path: String, expected: Any, found: Any?)
   |          `- warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
31 | }
32 |
/host/spi-builder-workspace/Sources/JSONPatch/JSONError.swift:30:10: warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
28 |     case unknownPatchOperation
29 |     case missingRequiredPatchField(op: String, index: Int, field: String)
30 |     case patchTestFailed(path: String, expected: Any, found: Any?)
   |          `- warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
31 | }
32 |
/host/spi-builder-workspace/Sources/JSONPatch/JSONPointer.swift:40:16: warning: static property 'wholeDocument' is not concurrency-safe because non-'Sendable' type 'JSONPointer' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// A JSON Pointer implementation, based on RFC 6901.
 24 | /// https://tools.ietf.org/html/rfc6901
 25 | public struct JSONPointer {
    |               `- note: consider making struct 'JSONPointer' conform to the 'Sendable' protocol
 26 |
 27 |     /// An array of the unescaped components of the json-pointer.
    :
 38 |
 39 |     /// A json-pointer that represents the whole json document.
 40 |     static let wholeDocument: JSONPointer = JSONPointer(components: [])
    |                |- warning: static property 'wholeDocument' is not concurrency-safe because non-'Sendable' type 'JSONPointer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'wholeDocument' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |
 42 |     /// A string representation of the json-pointer.
/host/spi-builder-workspace/Sources/JSONPatch/JSONPointer.swift:186:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSONPointer' to 'Hashable' by implementing 'hash(into:)' instead
184 |     }
185 |     #else
186 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSONPointer' to 'Hashable' by implementing 'hash(into:)' instead
187 |         return components.hashValue
188 |     }
[11/12] Compiling JSONPatch JSONError.swift
/host/spi-builder-workspace/Sources/JSONPatch/JSONError.swift:30:10: warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
28 |     case unknownPatchOperation
29 |     case missingRequiredPatchField(op: String, index: Int, field: String)
30 |     case patchTestFailed(path: String, expected: Any, found: Any?)
   |          `- warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
31 | }
32 |
/host/spi-builder-workspace/Sources/JSONPatch/JSONError.swift:30:10: warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
28 |     case unknownPatchOperation
29 |     case missingRequiredPatchField(op: String, index: Int, field: String)
30 |     case patchTestFailed(path: String, expected: Any, found: Any?)
   |          `- warning: associated value 'patchTestFailed(path:expected:found:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
31 | }
32 |
[12/12] Compiling JSONPatch NSDictionary+DeepCopy.swift
Build complete! (14.96s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JSONPatch",
  "name" : "JSONPatch",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JSONPatch",
      "targets" : [
        "JSONPatch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONPatchTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONPatchTests",
      "path" : "Tests",
      "sources" : [
        "JSONPatchTests/ArrayTests.swift",
        "JSONPatchTests/Bundle.swift",
        "JSONPatchTests/JSONCodableTests.swift",
        "JSONPatchTests/JSONElementTests.swift",
        "JSONPatchTests/JSONFileTestCase.swift",
        "JSONPatchTests/JSONPatchGeneratorTests.swift",
        "JSONPatchTests/JSONPatchTests.swift",
        "JSONPatchTests/JSONPointerTests.swift",
        "JSONPatchTests/TestFileTestCase.swift"
      ],
      "target_dependencies" : [
        "JSONPatch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONPatch",
      "module_type" : "SwiftTarget",
      "name" : "JSONPatch",
      "path" : "Sources/JSONPatch",
      "product_memberships" : [
        "JSONPatch"
      ],
      "sources" : [
        "JSONElement.swift",
        "JSONEquality.swift",
        "JSONError.swift",
        "JSONPatch.swift",
        "JSONPatchCodable.swift",
        "JSONPatchGenerator.swift",
        "JSONPointer.swift",
        "NSArray+DeepCopy.swift",
        "NSDictionary+DeepCopy.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7bfd71e9384436264431030299dc8a2d42d0664a168cfa1a5dd84c9bc592ccf
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
Done.