Build Information
Successful build of Swdifft, reference master (e92c79
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 16:02:01 UTC.
Swift 6 data race errors: 4
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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bannzai/swdifft.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/bannzai/swdifft
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e92c79b Merge pull request #5 from bannzai/enhancement/performance/index
Cloned https://github.com/bannzai/swdifft.git
Revision (git rev-parse @):
e92c79b9da9d2f87b3bfc6411eccf936b72db51e
SUCCESS checkout https://github.com/bannzai/swdifft.git at master
========================================
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": "swdifft",
"name": "Swdifft",
"url": "https://github.com/bannzai/swdifft.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swdifft",
"dependencies": [
]
}
]
}
Fetching https://github.com/bannzai/swdifft.git
[1/140] Fetching swdifft
Fetched https://github.com/bannzai/swdifft.git from cache (0.65s)
Creating working copy for https://github.com/bannzai/swdifft.git
Working copy of https://github.com/bannzai/swdifft.git resolved at master (e92c79b)
warning: '.resolve-product-dependencies': dependency 'swdifft' 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/bannzai/swdifft.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/9] Compiling Swdifft Swdifft.swift
[4/9] Compiling Swdifft StringExtension.swift
[5/9] Compiling Swdifft longestCommonSubsequence.swift
[6/9] Emitting module Swdifft
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:10:12: warning: var 'beginLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public var beginLHSMark = "`"
| |- warning: var 'beginLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'beginLHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'beginLHSMark' 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
11 | public var endLHSMark = "`"
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:11:12: warning: var 'endLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public var beginLHSMark = "`"
11 | public var endLHSMark = "`"
| |- warning: var 'endLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endLHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'endLHSMark' 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 | public var beginRHSMark = "*"
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:13:12: warning: var 'beginRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public var endLHSMark = "`"
12 |
13 | public var beginRHSMark = "*"
| |- warning: var 'beginRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'beginRHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'beginRHSMark' 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
14 | public var endRHSMark = "*"
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:14:12: warning: var 'endRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | public var beginRHSMark = "*"
14 | public var endRHSMark = "*"
| |- warning: var 'endRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endRHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'endRHSMark' 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 |
16 |
[7/9] Compiling Swdifft Marks.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:10:12: warning: var 'beginLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public var beginLHSMark = "`"
| |- warning: var 'beginLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'beginLHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'beginLHSMark' 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
11 | public var endLHSMark = "`"
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:11:12: warning: var 'endLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public var beginLHSMark = "`"
11 | public var endLHSMark = "`"
| |- warning: var 'endLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endLHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'endLHSMark' 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 | public var beginRHSMark = "*"
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:13:12: warning: var 'beginRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public var endLHSMark = "`"
12 |
13 | public var beginRHSMark = "*"
| |- warning: var 'beginRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'beginRHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'beginRHSMark' 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
14 | public var endRHSMark = "*"
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:14:12: warning: var 'endRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | public var beginRHSMark = "*"
14 | public var endRHSMark = "*"
| |- warning: var 'endRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endRHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'endRHSMark' 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 |
16 |
[8/9] Compiling Swdifft InternalDiffFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/InternalDiffFunction.swift:56:33: warning: capture of 'extract(target:commonCharacter:diffWords:beginIndex:)' with non-sendable type '(Content, Character, (begin: String, end: String), inout Int) -> Result' (aka '(String, Character, (begin: String, end: String), inout Int) -> Result') in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | DispatchQueue.global().async {
55 | let r = lcs.reduce("") { (result, commonCharacter) in
56 | return result + extract(target: target, commonCharacter: commonCharacter, diffWords: (begin: diffWords.begin, end: diffWords.end), beginIndex: &beginIndex).stack
| |- warning: capture of 'extract(target:commonCharacter:diffWords:beginIndex:)' with non-sendable type '(Content, Character, (begin: String, end: String), inout Int) -> Result' (aka '(String, Character, (begin: String, end: String), inout Int) -> Result') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
57 | }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/InternalDiffFunction.swift:59:13: warning: capture of 'closure' with non-sendable type '(Content) -> ()' (aka '(String) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 |
59 | closure(r)
| |- warning: capture of 'closure' with non-sendable type '(Content) -> ()' (aka '(String) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/InternalDiffFunction.swift:56:33: warning: capture of 'extract(target:commonCharacter:diffWords:beginIndex:)' with non-sendable type '(Content, Character, (begin: String, end: String), inout Int) -> Result' (aka '(String, Character, (begin: String, end: String), inout Int) -> Result') in an isolated closure; this is an error in the Swift 6 language mode
54 | DispatchQueue.global().async {
55 | let r = lcs.reduce("") { (result, commonCharacter) in
56 | return result + extract(target: target, commonCharacter: commonCharacter, diffWords: (begin: diffWords.begin, end: diffWords.end), beginIndex: &beginIndex).stack
| |- warning: capture of 'extract(target:commonCharacter:diffWords:beginIndex:)' with non-sendable type '(Content, Character, (begin: String, end: String), inout Int) -> Result' (aka '(String, Character, (begin: String, end: String), inout Int) -> Result') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
57 | }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/InternalDiffFunction.swift:20:10: warning: concurrently-executed local function 'extract(target:commonCharacter:diffWords:beginIndex:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
18 | }
19 |
20 | func extract(target: Content, commonCharacter: Character, diffWords: (begin: String, end: String), beginIndex step: inout Int) -> Result {
| `- warning: concurrently-executed local function 'extract(target:commonCharacter:diffWords:beginIndex:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
21 | var result = Result()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/InternalDiffFunction.swift:56:161: warning: mutation of captured var 'beginIndex' in concurrently-executing code; this is an error in the Swift 6 language mode
54 | DispatchQueue.global().async {
55 | let r = lcs.reduce("") { (result, commonCharacter) in
56 | return result + extract(target: target, commonCharacter: commonCharacter, diffWords: (begin: diffWords.begin, end: diffWords.end), beginIndex: &beginIndex).stack
| `- warning: mutation of captured var 'beginIndex' in concurrently-executing code; this is an error in the Swift 6 language mode
57 | }
58 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:10:12: warning: var 'beginLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public var beginLHSMark = "`"
| |- warning: var 'beginLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'beginLHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'beginLHSMark' 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
11 | public var endLHSMark = "`"
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:11:12: warning: var 'endLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public var beginLHSMark = "`"
11 | public var endLHSMark = "`"
| |- warning: var 'endLHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endLHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'endLHSMark' 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 | public var beginRHSMark = "*"
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:13:12: warning: var 'beginRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public var endLHSMark = "`"
12 |
13 | public var beginRHSMark = "*"
| |- warning: var 'beginRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'beginRHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'beginRHSMark' 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
14 | public var endRHSMark = "*"
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Swdifft/Marks.swift:14:12: warning: var 'endRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | public var beginRHSMark = "*"
14 | public var endRHSMark = "*"
| |- warning: var 'endRHSMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'endRHSMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'endRHSMark' 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 |
16 |
[9/9] Compiling Swdifft Formatter.swift
Build complete! (8.06s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Swdifft",
"name" : "Swdifft",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Swdifft",
"targets" : [
"Swdifft"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwdifftTests",
"module_type" : "SwiftTarget",
"name" : "SwdifftTests",
"path" : "Tests/SwdifftTests",
"sources" : [
"SwdifftTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Swdifft"
],
"type" : "test"
},
{
"c99name" : "Swdifft",
"module_type" : "SwiftTarget",
"name" : "Swdifft",
"path" : "Sources/Swdifft",
"product_memberships" : [
"Swdifft"
],
"sources" : [
"Formatter.swift",
"InternalDiffFunction.swift",
"Marks.swift",
"StringExtension.swift",
"Swdifft.swift",
"longestCommonSubsequence.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.