Build Information
Successful build of Chalk, reference 0.2.1 (8a9d33
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 10:04:39 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/luoxiu/Chalk.git
Reference: 0.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/luoxiu/Chalk
* tag 0.2.1 -> FETCH_HEAD
HEAD is now at 8a9d337 remove executable product
Cloned https://github.com/luoxiu/Chalk.git
Revision (git rev-parse @):
8a9d3373bd754fb62f7881d9f639d376f5e4d5a5
SUCCESS checkout https://github.com/luoxiu/Chalk.git at 0.2.1
Fetching https://github.com/luoxiu/Rainbow
[5/234] Fetching rainbow
Fetched https://github.com/luoxiu/Rainbow from cache (0.77s)
Computing version for https://github.com/luoxiu/Rainbow
Computed https://github.com/luoxiu/Rainbow at 0.1.1 (0.67s)
Creating working copy for https://github.com/luoxiu/Rainbow
Working copy of https://github.com/luoxiu/Rainbow resolved at 0.1.1
========================================
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": "chalk",
"name": "Chalk",
"url": "https://github.com/luoxiu/Chalk.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Chalk",
"dependencies": [
{
"identity": "rainbow",
"name": "Rainbow",
"url": "https://github.com/luoxiu/Rainbow",
"version": "0.1.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Rainbow",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/luoxiu/Chalk.git
[1/329] Fetching chalk
Fetched https://github.com/luoxiu/Chalk.git from cache (0.89s)
Fetching https://github.com/luoxiu/Rainbow from cache
Fetched https://github.com/luoxiu/Rainbow from cache (0.51s)
Computing version for https://github.com/luoxiu/Rainbow
Computed https://github.com/luoxiu/Rainbow at 0.1.1 (0.02s)
Creating working copy for https://github.com/luoxiu/Rainbow
Working copy of https://github.com/luoxiu/Rainbow resolved at 0.1.1
Creating working copy for https://github.com/luoxiu/Chalk.git
Working copy of https://github.com/luoxiu/Chalk.git resolved at 0.2.1 (8a9d337)
warning: '.resolve-product-dependencies': dependency 'chalk' is not used by any target
Found 1 product dependencies
- Rainbow
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/luoxiu/Chalk.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/8] Write sources
[3/8] Write chalk-app-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/14] Compiling Rainbow Colors.swift
[7/14] Compiling Rainbow Double.swift
[8/14] Compiling Rainbow Color.swift
[9/14] Compiling Rainbow NSRegularExpression.swift
[10/14] Emitting module Rainbow
[11/14] Compiling Rainbow Color+Cocoa.swift
[12/22] Compiling Chalk TerminalString.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | case ansi16m
20 |
21 | public static var current: TerminalSupportedColor = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
22 | if let color = __preset_supported_color__ {
23 | return color
[13/22] Compiling Chalk TerminalSupportedColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:11:5: warning: var '__preset_supported_color__' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | // test
11 | var __preset_supported_color__: TerminalSupportedColor?
| |- warning: var '__preset_supported_color__' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__preset_supported_color__' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__preset_supported_color__' 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 | // https://github.com/chalk/supports-color
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | case ansi16m
20 |
21 | public static var current: TerminalSupportedColor = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
22 | if let color = __preset_supported_color__ {
23 | return color
[14/22] Compiling Chalk Modifier.swift
[15/22] Compiling Chalk String+RegRxp.swift
[16/22] Compiling Chalk TerminalStringConvertible.swift
[17/22] Emitting module Chalk
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:10:12: warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public let chalk = Style()
| |- warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'chalk' 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 let ck = Style()
12 |
13 | public struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
14 |
15 | public var fgColor: TerminalColor?
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:11:12: warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public let chalk = Style()
11 | public let ck = Style()
| |- warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ck' 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 struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
14 |
15 | public var fgColor: TerminalColor?
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:11:5: warning: var '__preset_supported_color__' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | // test
11 | var __preset_supported_color__: TerminalSupportedColor?
| |- warning: var '__preset_supported_color__' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__preset_supported_color__' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__preset_supported_color__' 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 | // https://github.com/chalk/supports-color
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | case ansi16m
20 |
21 | public static var current: TerminalSupportedColor = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
22 | if let color = __preset_supported_color__ {
23 | return color
[18/22] Compiling Chalk Style.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:10:12: warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public let chalk = Style()
| |- warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'chalk' 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 let ck = Style()
12 |
13 | public struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
14 |
15 | public var fgColor: TerminalColor?
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:11:12: warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public let chalk = Style()
11 | public let ck = Style()
| |- warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ck' 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 struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
14 |
15 | public var fgColor: TerminalColor?
[19/22] Compiling Chalk Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | case ansi16m
20 |
21 | public static var current: TerminalSupportedColor = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
22 | if let color = __preset_supported_color__ {
23 | return color
[20/24] Compiling chalk_app main.swift
[21/24] Emitting module chalk_app
[21/24] Write Objects.LinkFileList
[22/24] Linking chalk-app
[23/24] Applying chalk-app
Build complete! (12.25s)
Build complete.
{
"dependencies" : [
{
"identity" : "rainbow",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/luoxiu/Rainbow"
}
],
"manifest_display_name" : "Chalk",
"name" : "Chalk",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Chalk",
"targets" : [
"Chalk"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "chalk-app",
"targets" : [
"chalk-app"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "chalk_app",
"module_type" : "SwiftTarget",
"name" : "chalk-app",
"path" : "Sources/chalk-app",
"product_memberships" : [
"chalk-app"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Chalk"
],
"type" : "executable"
},
{
"c99name" : "ChalkTests",
"module_type" : "SwiftTarget",
"name" : "ChalkTests",
"path" : "Tests/ChalkTests",
"sources" : [
"ChalkTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Chalk"
],
"type" : "test"
},
{
"c99name" : "Chalk",
"module_type" : "SwiftTarget",
"name" : "Chalk",
"path" : "Sources/Chalk",
"product_dependencies" : [
"Rainbow"
],
"product_memberships" : [
"Chalk",
"chalk-app"
],
"sources" : [
"Color.swift",
"Modifier.swift",
"Style.swift",
"TerminalString.swift",
"TerminalStringConvertible.swift",
"TerminalSupportedColor.swift",
"Utils/String+RegRxp.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.