Build Information
Successful build of swift-commands, reference 0.7.0 (ed3de1
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 01:24:46 UTC.
Swift 6 data race errors: 6
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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/QiuZhiFei/swift-commands.git
Reference: 0.7.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/QiuZhiFei/swift-commands
* tag 0.7.0 -> FETCH_HEAD
HEAD is now at ed3de1c chore: version 0.7.0
Cloned https://github.com/QiuZhiFei/swift-commands.git
Revision (git rev-parse @):
ed3de1c1057f4e3a5b0371d0762facd7c9a3dace
SUCCESS checkout https://github.com/QiuZhiFei/swift-commands.git at 0.7.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/QiuZhiFei/swift-commands.git
https://github.com/QiuZhiFei/swift-commands.git
{
"dependencies" : [
],
"manifest_display_name" : "swift-commands",
"name" : "swift-commands",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "Commands",
"targets" : [
"Commands"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Examples",
"targets" : [
"Examples"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Examples",
"module_type" : "SwiftTarget",
"name" : "Examples",
"path" : "Examples",
"product_memberships" : [
"Examples"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Commands"
],
"type" : "executable"
},
{
"c99name" : "CommandsTests",
"module_type" : "SwiftTarget",
"name" : "CommandsTests",
"path" : "Tests/CommandsTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/CommandsTests/Resources/python/main.py",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"RequestParseTests.swift",
"XCTestManifests.swift",
"swift_commandsTests.swift"
],
"target_dependencies" : [
"Commands"
],
"type" : "test"
},
{
"c99name" : "Commands",
"module_type" : "SwiftTarget",
"name" : "Commands",
"path" : "Sources/Commands",
"product_memberships" : [
"Commands",
"Examples"
],
"sources" : [
"Commands.swift",
"CommandsAlias.swift",
"CommandsArguments.swift",
"CommandsDashcTransformer.swift",
"CommandsENV.swift",
"CommandsRequest.swift",
"CommandsResponse.swift",
"CommandsResult.swift",
"CommandsTask.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
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/7] Write sources
[2/7] Write Examples-entitlement.plist
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/17] Compiling Commands CommandsResult.swift
[6/17] Compiling Commands CommandsENV.swift
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsENV.swift:21:21: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | extension Commands.ENV {
21 | public static var global = Commands.ENV()
| |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
[7/17] Compiling Commands CommandsArguments.swift
[8/17] Compiling Commands CommandsRequest.swift
[9/17] Compiling Commands CommandsDashcTransformer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsDashcTransformer.swift:20:22: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | extension Commands.DashcTransformer {
20 | private static var handlers: [CommandsDashcTransformerHandler.Type] = [
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | Bash.self,
22 | Ruby.self,
[10/17] Compiling Commands CommandsTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsTask.swift:63:15: warning: capture of 'output' with non-sendable type '(String) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
61 | let result = String(data: data, encoding: .utf8)?.trimmingCharacters(in: .whitespacesAndNewlines) {
62 | DispatchQueue.main.async {
63 | output(result)
| |- warning: capture of 'output' with non-sendable type '(String) -> Void' 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'
64 | }
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsTask.swift:76:15: warning: capture of 'errorOutput' with non-sendable type '(String) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | let result = String(data: data, encoding: .utf8)?.trimmingCharacters(in: .whitespacesAndNewlines) {
75 | DispatchQueue.main.async {
76 | errorOutput(result)
| |- warning: capture of 'errorOutput' with non-sendable type '(String) -> Void' 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'
77 | }
78 | }
[11/17] Compiling Commands CommandsResponse.swift
[12/17] Compiling Commands Commands.swift
[13/17] Compiling Commands CommandsAlias.swift
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:56:14: warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
54 |
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
| |- warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Bash' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:57:14: warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
| |- warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Ruby' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:58:14: warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
| |- warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Python' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let Node = Commands.Alias("node", dashc: "-e")
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:59:14: warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
| |- warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Node' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | }
61 |
[14/17] Emitting module Commands
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:56:14: warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
54 |
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
| |- warning: static property 'Bash' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Bash' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:57:14: warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
55 | public extension Commands {
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
| |- warning: static property 'Ruby' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Ruby' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:58:14: warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
56 | static let Bash = Commands.Alias("bash", dashc: "-c")
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
| |- warning: static property 'Python' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Python' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let Node = Commands.Alias("node", dashc: "-e")
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsAlias.swift:59:14: warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Commands {
11 | public struct Alias {
| `- note: consider making struct 'Alias' conform to the 'Sendable' protocol
12 | public let executableURL: String
13 | public let dashc: Commands.Arguments?
:
57 | static let Ruby = Commands.Alias("ruby", dashc: "-e")
58 | static let Python = Commands.Alias("python", dashc: "-c")
59 | static let Node = Commands.Alias("node", dashc: "-e")
| |- warning: static property 'Node' is not concurrency-safe because non-'Sendable' type 'Commands.Alias' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Node' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsDashcTransformer.swift:20:22: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | extension Commands.DashcTransformer {
20 | private static var handlers: [CommandsDashcTransformerHandler.Type] = [
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | Bash.self,
22 | Ruby.self,
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandsENV.swift:21:21: warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | extension Commands.ENV {
21 | public static var global = Commands.ENV()
| |- warning: static property 'global' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'global' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | }
23 |
[15/19] Emitting module Examples
[16/19] Compiling Examples main.swift
[16/19] Write Objects.LinkFileList
[17/19] Linking Examples
[18/19] Applying Examples
Build complete! (5.90s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-commands",
"name" : "swift-commands",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "Commands",
"targets" : [
"Commands"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Examples",
"targets" : [
"Examples"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Examples",
"module_type" : "SwiftTarget",
"name" : "Examples",
"path" : "Examples",
"product_memberships" : [
"Examples"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Commands"
],
"type" : "executable"
},
{
"c99name" : "CommandsTests",
"module_type" : "SwiftTarget",
"name" : "CommandsTests",
"path" : "Tests/CommandsTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/CommandsTests/Resources/python/main.py",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"RequestParseTests.swift",
"XCTestManifests.swift",
"swift_commandsTests.swift"
],
"target_dependencies" : [
"Commands"
],
"type" : "test"
},
{
"c99name" : "Commands",
"module_type" : "SwiftTarget",
"name" : "Commands",
"path" : "Sources/Commands",
"product_memberships" : [
"Commands",
"Examples"
],
"sources" : [
"Commands.swift",
"CommandsAlias.swift",
"CommandsArguments.swift",
"CommandsDashcTransformer.swift",
"CommandsENV.swift",
"CommandsRequest.swift",
"CommandsResponse.swift",
"CommandsResult.swift",
"CommandsTask.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.