The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of PatchouliJSON, reference main (89b9b1), with Swift 6.0 for Linux on 1 Dec 2024 06:40:21 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexhunsley/patchouli-jsonpatch.git
Reference: main
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/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
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/alexhunsley/patchouli-jsonpatch.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/raymccrae/swift-jsonpatch.git
Fetching https://github.com/alexhunsley/patchouli-core
[1/457] Fetching patchouli-core
[349/1071] Fetching patchouli-core, swift-jsonpatch
Fetched https://github.com/alexhunsley/patchouli-core from cache (0.38s)
[228/614] Fetching swift-jsonpatch
Fetched https://github.com/raymccrae/swift-jsonpatch.git from cache (0.68s)
Computing version for https://github.com/alexhunsley/patchouli-core
Computed https://github.com/alexhunsley/patchouli-core at 0.9.5 (1.23s)
Computing version for https://github.com/raymccrae/swift-jsonpatch.git
Computed https://github.com/raymccrae/swift-jsonpatch.git at 1.0.6 (3.61s)
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.git
Working copy of https://github.com/raymccrae/swift-jsonpatch.git resolved at 1.0.6
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/22] Emitting module JSONPatch
[6/23] Compiling PatchouliCore PatchType.swift
[7/24] Compiling JSONPatch NSArray+DeepCopy.swift
[8/24] Compiling JSONPatch JSONPatchGenerator.swift
[9/24] Compiling JSONPatch JSONPointer.swift
[10/24] Compiling JSONPatch JSONPatchCodable.swift
[11/24] Compiling PatchouliCore StringPatchType.swift
[12/24] Compiling PatchouliCore PatchouliError.swift
[13/24] Compiling PatchouliCore DSL+StringPatch.swift
[14/24] Compiling JSONPatch NSDictionary+DeepCopy.swift
[15/24] Compiling PatchouliCore PatchedContent+Reduce.swift
[16/24] Emitting module PatchouliCore
[17/24] Compiling JSONPatch JSONError.swift
[18/24] Compiling PatchouliCore Patchable.swift
[19/24] Compiling JSONPatch JSONElement.swift
[20/24] Compiling JSONPatch JSONEquality.swift
[21/24] Compiling JSONPatch JSONPatch.swift
[24/25] Compiling PatchouliCore String+Util.swift
[27/32] Compiling PatchouliJSON String+Util.swift
[28/32] Compiling PatchouliJSON ModuleExports.swift
[29/32] Emitting module PatchouliJSON
/host/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: annotate 'null' 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
 16 |
 17 | public typealias PatchedJSON = PatchedContent<JSONPatchType>
/host/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: 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
 31 |         added: { (container: ContentType, addition: ContentType, address: String) throws -> ContentType in
 32 |             let additionStr = try addition.string()
/host/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: annotate 'emptyObjectContent' 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
 89 |     static public var emptyArrayContent: JSONContent = .literal("[]".utf8Data)
 90 |
/host/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: annotate 'emptyArrayContent' 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
 90 |
 91 |     public static var emptyContent: JSONContent = emptyObjectContent
/host/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: 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
 92 | }
 93 |
[30/32] Compiling PatchouliJSON DSL+JSONPatchType.swift
/host/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: annotate 'emptyObjectContent' 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
 89 |     static public var emptyArrayContent: JSONContent = .literal("[]".utf8Data)
 90 |
/host/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: annotate 'emptyArrayContent' 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
 90 |
 91 |     public static var emptyContent: JSONContent = emptyObjectContent
[31/32] Compiling PatchouliJSON JSONSimpleContentBuilder.swift
[32/32] Compiling PatchouliJSON JSONPatchType.swift
/host/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: annotate 'null' 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
 16 |
 17 | public typealias PatchedJSON = PatchedContent<JSONPatchType>
/host/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: 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
 31 |         added: { (container: ContentType, addition: ContentType, address: String) throws -> ContentType in
 32 |             let additionStr = try addition.string()
/host/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: annotate 'emptyObjectContent' 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
 89 |     static public var emptyArrayContent: JSONContent = .literal("[]".utf8Data)
 90 |
/host/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: annotate 'emptyArrayContent' 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
 90 |
 91 |     public static var emptyContent: JSONContent = emptyObjectContent
/host/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: 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
 92 | }
 93 |
Build complete! (41.56s)
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" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.