Build Information
Successful build of Console, reference 0.14.1 (9f4946
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 11:35:16 UTC.
Swift 6 data race errors: 6
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/luizzak/console.git
Reference: 0.14.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/luizzak/console
* tag 0.14.1 -> FETCH_HEAD
HEAD is now at 9f49469 Fixes to NO_COLOR detection and adding StandardErrorTextStream/NullOutputStream
Cloned https://github.com/luizzak/console.git
Revision (git rev-parse @):
9f4946929b7aac54ecc642c3ef15ec4fc05618a0
SUCCESS checkout https://github.com/luizzak/console.git at 0.14.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": "console",
"name": "Console",
"url": "https://github.com/luizzak/console.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/console",
"dependencies": [
]
}
]
}
Fetching https://github.com/luizzak/console.git
[1/352] Fetching console
Fetched https://github.com/luizzak/console.git from cache (0.78s)
Creating working copy for https://github.com/luizzak/console.git
Working copy of https://github.com/luizzak/console.git resolved at 0.14.1 (9f49469)
warning: '.resolve-product-dependencies': dependency 'console' 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/luizzak/console.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/17] Compiling Console ConsoleColor.swift
[5/18] Compiling Console ConsoleType.swift
[6/18] Compiling Console ConsoleFormat.swift
[7/18] Compiling Console FileHandle+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Console/Platform/FileHandle+Ext.swift:3:5: warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | var standardError = FileHandle.standardError
| |- warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardError' 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
4 |
5 | extension FileHandle: TextOutputStream {
/Users/admin/builder/spi-builder-workspace/Sources/Console/Platform/FileHandle+Ext.swift:5:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
3 | var standardError = FileHandle.standardError
4 |
5 | extension FileHandle: TextOutputStream {
| |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | public func write(_ string: String) {
7 | guard let data = string.data(using: .utf8) else { return }
[8/18] Compiling Console LinuxSupport.swift
[9/18] Compiling Console String+ConsoleFormatting.swift
[10/18] Compiling Console ConsoleOutputStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/Console/ConsoleOutputStream.swift:20:23: warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Indicates capabilities for `ConsoleOutputStream` types.
9 | public struct ConsoleOutputCapabilityFlag: OptionSet {
| `- note: consider making struct 'ConsoleOutputCapabilityFlag' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
18 | /// Specifies that the output stream supports ANSI control sequences for
19 | /// changing formatting of the text displayed or moving the cursor/screen.
20 | public static let ansiControlSequences: Self = Self(rawValue: 1 << 0)
| |- warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ansiControlSequences' 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
21 | }
22 |
[11/18] Compiling Console ConsoleString.swift
/Users/admin/builder/spi-builder-workspace/Sources/Console/ConsoleOutputStream.swift:20:23: warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Indicates capabilities for `ConsoleOutputStream` types.
9 | public struct ConsoleOutputCapabilityFlag: OptionSet {
| `- note: consider making struct 'ConsoleOutputCapabilityFlag' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
18 | /// Specifies that the output stream supports ANSI control sequences for
19 | /// changing formatting of the text displayed or moving the cursor/screen.
20 | public static let ansiControlSequences: Self = Self(rawValue: 1 << 0)
| |- warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ansiControlSequences' 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
21 | }
22 |
[12/18] Compiling Console ConsoleDataProvider.swift
[13/18] Compiling Console ConsoleMenuController.swift
[14/18] Compiling Console Console+Static.swift
/Users/admin/builder/spi-builder-workspace/Sources/Console/ConsoleOutputStream.swift:20:23: warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Indicates capabilities for `ConsoleOutputStream` types.
9 | public struct ConsoleOutputCapabilityFlag: OptionSet {
| `- note: consider making struct 'ConsoleOutputCapabilityFlag' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
18 | /// Specifies that the output stream supports ANSI control sequences for
19 | /// changing formatting of the text displayed or moving the cursor/screen.
20 | public static let ansiControlSequences: Self = Self(rawValue: 1 << 0)
| |- warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ansiControlSequences' 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
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:17:27: warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
15 |
16 | /// Erase screen control sequence (`\e[2J`)
17 | public static let eraseScreen = eraseInScreen(.all)
| |- warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreen' 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
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:14:27: warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
| |- warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'moveHome' 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 | /// Erase screen control sequence (`\e[2J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:20:27: warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
:
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
20 | public static let eraseScreenAndScrollback = eraseInScreen(.allAndScrollback)
| |- warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreenAndScrollback' 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
21 |
22 | /// Erase entire line control sequence (`\e[2K`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Platform/FileHandle+Ext.swift:3:5: warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | var standardError = FileHandle.standardError
| |- warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardError' 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
4 |
5 | extension FileHandle: TextOutputStream {
[15/18] Compiling Console Console.swift
/Users/admin/builder/spi-builder-workspace/Sources/Console/ConsoleOutputStream.swift:20:23: warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Indicates capabilities for `ConsoleOutputStream` types.
9 | public struct ConsoleOutputCapabilityFlag: OptionSet {
| `- note: consider making struct 'ConsoleOutputCapabilityFlag' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
18 | /// Specifies that the output stream supports ANSI control sequences for
19 | /// changing formatting of the text displayed or moving the cursor/screen.
20 | public static let ansiControlSequences: Self = Self(rawValue: 1 << 0)
| |- warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ansiControlSequences' 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
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:17:27: warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
15 |
16 | /// Erase screen control sequence (`\e[2J`)
17 | public static let eraseScreen = eraseInScreen(.all)
| |- warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreen' 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
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:14:27: warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
| |- warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'moveHome' 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 | /// Erase screen control sequence (`\e[2J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:20:27: warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
:
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
20 | public static let eraseScreenAndScrollback = eraseInScreen(.allAndScrollback)
| |- warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreenAndScrollback' 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
21 |
22 | /// Erase entire line control sequence (`\e[2K`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Platform/FileHandle+Ext.swift:3:5: warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | var standardError = FileHandle.standardError
| |- warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardError' 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
4 |
5 | extension FileHandle: TextOutputStream {
[16/18] Compiling Console Console+Command.swift
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:14:27: warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
| |- warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'moveHome' 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 | /// Erase screen control sequence (`\e[2J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:17:27: warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
15 |
16 | /// Erase screen control sequence (`\e[2J`)
17 | public static let eraseScreen = eraseInScreen(.all)
| |- warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreen' 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
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:20:27: warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
:
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
20 | public static let eraseScreenAndScrollback = eraseInScreen(.allAndScrollback)
| |- warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreenAndScrollback' 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
21 |
22 | /// Erase entire line control sequence (`\e[2K`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:23:27: warning: static property 'eraseLine' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
:
21 |
22 | /// Erase entire line control sequence (`\e[2K`)
23 | public static let eraseLine = eraseInLine(.all)
| |- warning: static property 'eraseLine' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseLine' 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
24 |
25 | /// Move cursor command (`\e[..;..H`)
[17/18] Compiling Console Console+Paging.swift
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:14:27: warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
| |- warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'moveHome' 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 | /// Erase screen control sequence (`\e[2J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:17:27: warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
15 |
16 | /// Erase screen control sequence (`\e[2J`)
17 | public static let eraseScreen = eraseInScreen(.all)
| |- warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreen' 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
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:20:27: warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
:
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
20 | public static let eraseScreenAndScrollback = eraseInScreen(.allAndScrollback)
| |- warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreenAndScrollback' 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
21 |
22 | /// Erase entire line control sequence (`\e[2K`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:23:27: warning: static property 'eraseLine' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
:
21 |
22 | /// Erase entire line control sequence (`\e[2K`)
23 | public static let eraseLine = eraseInLine(.all)
| |- warning: static property 'eraseLine' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseLine' 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
24 |
25 | /// Move cursor command (`\e[..;..H`)
[18/18] Emitting module Console
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:14:27: warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
| |- warning: static property 'moveHome' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'moveHome' 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 | /// Erase screen control sequence (`\e[2J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:17:27: warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
15 |
16 | /// Erase screen control sequence (`\e[2J`)
17 | public static let eraseScreen = eraseInScreen(.all)
| |- warning: static property 'eraseScreen' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreen' 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
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:20:27: warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
:
18 |
19 | /// Erase screen and all scroll control sequence (`\e[3J`)
20 | public static let eraseScreenAndScrollback = eraseInScreen(.allAndScrollback)
| |- warning: static property 'eraseScreenAndScrollback' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseScreenAndScrollback' 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
21 |
22 | /// Erase entire line control sequence (`\e[2K`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/Console+Command.swift:23:27: warning: static property 'eraseLine' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public extension Terminal {
11 | /// Available terminal commands.
12 | enum Command {
| `- note: consider making enum 'Command' conform to the 'Sendable' protocol
13 | /// Move home command (`\e[2J`)
14 | public static let moveHome = move(.home)
:
21 |
22 | /// Erase entire line control sequence (`\e[2K`)
23 | public static let eraseLine = eraseInLine(.all)
| |- warning: static property 'eraseLine' is not concurrency-safe because non-'Sendable' type 'Terminal.Command' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eraseLine' 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
24 |
25 | /// Move cursor command (`\e[..;..H`)
/Users/admin/builder/spi-builder-workspace/Sources/Console/ConsoleOutputStream.swift:20:23: warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Indicates capabilities for `ConsoleOutputStream` types.
9 | public struct ConsoleOutputCapabilityFlag: OptionSet {
| `- note: consider making struct 'ConsoleOutputCapabilityFlag' conform to the 'Sendable' protocol
10 | public var rawValue: Int
11 |
:
18 | /// Specifies that the output stream supports ANSI control sequences for
19 | /// changing formatting of the text displayed or moving the cursor/screen.
20 | public static let ansiControlSequences: Self = Self(rawValue: 1 << 0)
| |- warning: static property 'ansiControlSequences' is not concurrency-safe because non-'Sendable' type 'ConsoleOutputCapabilityFlag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ansiControlSequences' 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
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Console/Platform/FileHandle+Ext.swift:3:5: warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | var standardError = FileHandle.standardError
| |- warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardError' 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
4 |
5 | extension FileHandle: TextOutputStream {
/Users/admin/builder/spi-builder-workspace/Sources/Console/Platform/FileHandle+Ext.swift:5:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
3 | var standardError = FileHandle.standardError
4 |
5 | extension FileHandle: TextOutputStream {
| |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | public func write(_ string: String) {
7 | guard let data = string.data(using: .utf8) else { return }
[19/21] Compiling ConsoleTestHelpers MockConsoleTestAdapterType.swift
[20/21] Emitting module ConsoleTestHelpers
[21/21] Compiling ConsoleTestHelpers MockConsole.swift
Build complete! (12.43s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Console",
"name" : "Console",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Console",
"targets" : [
"Console"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ConsoleTestHelpers",
"targets" : [
"ConsoleTestHelpers"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "ConsoleTests",
"module_type" : "SwiftTarget",
"name" : "ConsoleTests",
"path" : "Tests/ConsoleTests",
"sources" : [
"ConsoleMenuControllerTests.swift",
"ConsoleStringTests.swift",
"ConsoleTestCase.swift",
"Formatting/String+ConsoleFormattingTests.swift",
"PagesTests.swift"
],
"target_dependencies" : [
"Console",
"ConsoleTestHelpers"
],
"type" : "test"
},
{
"c99name" : "ConsoleTestHelpers",
"module_type" : "SwiftTarget",
"name" : "ConsoleTestHelpers",
"path" : "Sources/ConsoleTestHelpers",
"product_memberships" : [
"ConsoleTestHelpers"
],
"sources" : [
"MockConsole.swift",
"MockConsoleTestAdapterType.swift"
],
"target_dependencies" : [
"Console"
],
"type" : "library"
},
{
"c99name" : "Console",
"module_type" : "SwiftTarget",
"name" : "Console",
"path" : "Sources/Console",
"product_memberships" : [
"Console",
"ConsoleTestHelpers"
],
"sources" : [
"Console+Command.swift",
"Console+Paging.swift",
"Console+Static.swift",
"Console.swift",
"ConsoleDataProvider.swift",
"ConsoleMenuController.swift",
"ConsoleOutputStream.swift",
"ConsoleString.swift",
"ConsoleType.swift",
"Formatting/ConsoleColor.swift",
"Formatting/ConsoleFormat.swift",
"Formatting/String+ConsoleFormatting.swift",
"LinuxSupport.swift",
"Platform/FileHandle+Ext.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.