Build Information
Successful build of PatchouliJSON, reference main (89b9b1
), 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-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/alexhunsley/patchouli-core
Fetching https://github.com/raymccrae/swift-jsonpatch
[1/614] Fetching swift-jsonpatch
[2/1071] Fetching swift-jsonpatch, patchouli-core
Fetched https://github.com/alexhunsley/patchouli-core from cache (1.28s)
Fetched https://github.com/raymccrae/swift-jsonpatch from cache (1.28s)
Computing version for https://github.com/raymccrae/swift-jsonpatch.git
Computed https://github.com/raymccrae/swift-jsonpatch.git at 1.0.6 (2.90s)
Computing version for https://github.com/alexhunsley/patchouli-core
Computed https://github.com/alexhunsley/patchouli-core at 0.9.5 (0.43s)
Creating working copy for https://github.com/raymccrae/swift-jsonpatch
Working copy of https://github.com/raymccrae/swift-jsonpatch resolved at 1.0.6
Creating working copy for https://github.com/alexhunsley/patchouli-core
Working copy of https://github.com/alexhunsley/patchouli-core resolved at 0.9.5
========================================
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 (1.06s)
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.52s)
Fetched https://github.com/raymccrae/swift-jsonpatch.git from cache (0.52s)
Computing version for https://github.com/alexhunsley/patchouli-core
Computed https://github.com/alexhunsley/patchouli-core at 0.9.5 (0.02s)
Computing version for https://github.com/raymccrae/swift-jsonpatch.git
Computed https://github.com/raymccrae/swift-jsonpatch.git at 1.0.6 (0.52s)
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
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)
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.0
Building package at path: $PWD
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.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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/24] Compiling JSONPatch NSDictionary+DeepCopy.swift
[6/24] Compiling JSONPatch JSONPointer.swift
[7/24] Compiling JSONPatch JSONPatchCodable.swift
[8/24] Compiling JSONPatch NSArray+DeepCopy.swift
[9/24] Emitting module PatchouliCore
[10/24] Compiling PatchouliCore String+Util.swift
[11/24] Compiling PatchouliCore DSL+StringPatch.swift
[12/24] Compiling PatchouliCore PatchouliError.swift
[13/24] Compiling PatchouliCore PatchedContent+Reduce.swift
[14/24] Compiling PatchouliCore Patchable.swift
[15/24] Compiling PatchouliCore AddressedPatchItemsBuilder.swift
[16/24] Compiling PatchouliCore PatchType.swift
[17/24] Compiling PatchouliCore DSL.swift
[18/24] Compiling PatchouliCore StringPatchType.swift
[19/24] Compiling JSONPatch JSONPatch.swift
[20/24] Compiling JSONPatch JSONElement.swift
[21/24] Emitting module JSONPatch
[22/24] Compiling JSONPatch JSONError.swift
[23/24] Compiling JSONPatch JSONPatchGenerator.swift
[24/24] Compiling JSONPatch JSONEquality.swift
[25/30] Compiling PatchouliJSON String+Util.swift
[26/30] Compiling PatchouliJSON DSL+JSONPatchType.swift
/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: 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 |
/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: 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
[27/30] Compiling PatchouliJSON JSONSimpleContentBuilder.swift
[28/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: 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>
/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: 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()
/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: 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 |
/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: 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
/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: 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 |
[29/30] Compiling PatchouliJSON ModuleExports.swift
[30/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: 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>
/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: 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()
/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: 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 |
/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: 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
/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: 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! (30.83s)
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.