Build Information
Successful build of Rainbow, reference master (f5004e
), with Swift 6.0 for Linux on 3 Nov 2024 13:02:31 UTC.
Swift 6 data race errors: 4
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/onevcat/Rainbow.git
Reference: master
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/onevcat/Rainbow
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at f5004e4 Merge pull request #75 from onevcat/dependabot/bundler/rexml-3.3.9
Cloned https://github.com/onevcat/Rainbow.git
Revision (git rev-parse @):
f5004e438b7e7377466ca5cf8aea97aea8ad2486
SUCCESS checkout https://github.com/onevcat/Rainbow.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/onevcat/Rainbow.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 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
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/18] Compiling Rainbow String+Rainbow.swift
/host/spi-builder-workspace/Sources/Rainbow.swift:101:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | /// Enable `Rainbow` to colorize string or not. Default is `true`, unless the `NO_COLOR` environment variable is set.
101 | public static var enabled = ProcessInfo.processInfo.environment["NO_COLOR"] == nil
| |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enabled' 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
102 |
103 | public static func extractEntry(for string: String) -> Entry {
[5/18] Compiling Rainbow StringGenerator.swift
[6/19] Compiling Rainbow Style.swift
[7/19] Compiling Rainbow ControlCode.swift
[8/19] Compiling Rainbow ModesExtractor.swift
[9/19] Compiling Rainbow OutputTarget.swift
/host/spi-builder-workspace/Sources/OutputTarget.swift:46:16: 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
44 |
45 | /// Detected output target by current environment.
46 | static var current: OutputTarget = {
| |- 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
47 | // Check if we are in any term env and the output is a tty.
48 | let termType = getEnvValue("TERM")
/host/spi-builder-workspace/Sources/OutputTarget.swift:49:72: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
47 | // Check if we are in any term env and the output is a tty.
48 | let termType = getEnvValue("TERM")
49 | if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 | return .console
51 | }
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[10/19] Compiling Rainbow BackgroundColor.swift
[11/19] Compiling Rainbow CodesParser.swift
[12/19] Emitting module Rainbow
/host/spi-builder-workspace/Sources/OutputTarget.swift:46:16: 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
44 |
45 | /// Detected output target by current environment.
46 | static var current: OutputTarget = {
| |- 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
47 | // Check if we are in any term env and the output is a tty.
48 | let termType = getEnvValue("TERM")
/host/spi-builder-workspace/Sources/OutputTarget.swift:49:72: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
47 | // Check if we are in any term env and the output is a tty.
48 | let termType = getEnvValue("TERM")
49 | if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 | return .console
51 | }
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Rainbow.swift:98:23: warning: static property 'outputTarget' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 | /// Output target for `Rainbow`. `Rainbow` should detect correct target itself, so you rarely need to set it.
97 | /// However, if you want the colorized string to be different, or the detection is not correct, you can set it manually.
98 | public static var outputTarget = OutputTarget.current
| |- warning: static property 'outputTarget' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'outputTarget' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'outputTarget' 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
99 |
100 | /// Enable `Rainbow` to colorize string or not. Default is `true`, unless the `NO_COLOR` environment variable is set.
/host/spi-builder-workspace/Sources/Rainbow.swift:101:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | /// Enable `Rainbow` to colorize string or not. Default is `true`, unless the `NO_COLOR` environment variable is set.
101 | public static var enabled = ProcessInfo.processInfo.environment["NO_COLOR"] == nil
| |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enabled' 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
102 |
103 | public static func extractEntry(for string: String) -> Entry {
[13/19] Compiling Rainbow Color.swift
[14/19] Compiling Rainbow ColorApproximation.swift
[15/19] Compiling Rainbow Rainbow.swift
/host/spi-builder-workspace/Sources/Rainbow.swift:98:23: warning: static property 'outputTarget' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 | /// Output target for `Rainbow`. `Rainbow` should detect correct target itself, so you rarely need to set it.
97 | /// However, if you want the colorized string to be different, or the detection is not correct, you can set it manually.
98 | public static var outputTarget = OutputTarget.current
| |- warning: static property 'outputTarget' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'outputTarget' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'outputTarget' 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
99 |
100 | /// Enable `Rainbow` to colorize string or not. Default is `true`, unless the `NO_COLOR` environment variable is set.
/host/spi-builder-workspace/Sources/OutputTarget.swift:46:16: 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
44 |
45 | /// Detected output target by current environment.
46 | static var current: OutputTarget = {
| |- 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
47 | // Check if we are in any term env and the output is a tty.
48 | let termType = getEnvValue("TERM")
/host/spi-builder-workspace/Sources/Rainbow.swift:101:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | /// Enable `Rainbow` to colorize string or not. Default is `true`, unless the `NO_COLOR` environment variable is set.
101 | public static var enabled = ProcessInfo.processInfo.environment["NO_COLOR"] == nil
| |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enabled' 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
102 |
103 | public static func extractEntry(for string: String) -> Entry {
[16/20] Wrapping AST for Rainbow for debugging
[18/22] Compiling RainbowPlayground main.swift
[19/22] Emitting module RainbowPlayground
[20/23] Wrapping AST for RainbowPlayground for debugging
[21/23] Write Objects.LinkFileList
[22/23] Linking RainbowPlayground
Build complete! (11.62s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Rainbow",
"name" : "Rainbow",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Rainbow",
"targets" : [
"Rainbow"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "RainbowPlayground",
"targets" : [
"RainbowPlayground"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "RainbowTests",
"module_type" : "SwiftTarget",
"name" : "RainbowTests",
"path" : "Tests",
"sources" : [
"RainbowTests/ColorApproximatedTests.swift",
"RainbowTests/ColorTests.swift",
"RainbowTests/ConsoleStringTests.swift",
"RainbowTests/ConsoleTextParserTests.swift",
"RainbowTests/RainbowTests.swift"
],
"target_dependencies" : [
"Rainbow"
],
"type" : "test"
},
{
"c99name" : "RainbowPlayground",
"module_type" : "SwiftTarget",
"name" : "RainbowPlayground",
"path" : "Playground",
"product_memberships" : [
"RainbowPlayground"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Rainbow"
],
"type" : "executable"
},
{
"c99name" : "Rainbow",
"module_type" : "SwiftTarget",
"name" : "Rainbow",
"path" : "Sources",
"product_memberships" : [
"Rainbow",
"RainbowPlayground"
],
"sources" : [
"BackgroundColor.swift",
"CodesParser.swift",
"Color.swift",
"ColorApproximation.swift",
"ControlCode.swift",
"ModesExtractor.swift",
"OutputTarget.swift",
"Rainbow.swift",
"String+Rainbow.swift",
"StringGenerator.swift",
"Style.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
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.