This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of CommandLineKit with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objecthub/swift-commandlinekit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/objecthub/swift-commandlinekit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 513a953 Migrate to Xcode 15. Simplify implementation of CommandLineKitDemo.
Cloned https://github.com/objecthub/swift-commandlinekit.git
Revision (git rev-parse @):
513a953b4483fd0bb686e06eabd076a8e72625da
SUCCESS checkout https://github.com/objecthub/swift-commandlinekit.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/objecthub/swift-commandlinekit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write CommandLineKitDemo-entitlement.plist
[3/7] Write swift-version-6F35C1178C84523A.txt
[5/24] Compiling CommandLineKit TextProperties.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'none' 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 |
 48 |   public init(textColor: TextColor? = nil,
[6/25] Compiling CommandLineKit TextColor.swift
[7/25] Compiling CommandLineKit FlagWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'none' 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 |
 48 |   public init(textColor: TextColor? = nil,
[8/25] Compiling CommandLineKit Flags.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'none' 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 |
 48 |   public init(textColor: TextColor? = nil,
[9/25] Compiling CommandLineKit LineReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'none' 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 |
 48 |   public init(textColor: TextColor? = nil,
[10/25] Compiling CommandLineKit LineReaderError.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'none' 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 |
 48 |   public init(textColor: TextColor? = nil,
[11/25] Compiling CommandLineKit Flag.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 |   /// The description of the error.
44 |   public enum Kind {
   |               `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 |     case unknownFlag(String)
46 |     case missingValue
   :
51 |
52 |   /// The error kind.
53 |   public let kind: Kind
   |              `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 |   /// parsing the command-line as a whole.
57 |   public let flag: Flag?
   |              `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 |   /// Initializes a new flag error from an error kind and a corresponding flag.
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
 44 | /// Method `isOption` can be used to distinguish between options and arguments.
 45 | ///
 46 | public class Flag {
    |              `- note: class 'Flag' does not conform to the 'Sendable' protocol
 47 |
 48 |   /// The short name of the flag.
[12/25] Compiling CommandLineKit FlagError.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 |   /// The description of the error.
44 |   public enum Kind {
   |               `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 |     case unknownFlag(String)
46 |     case missingValue
   :
51 |
52 |   /// The error kind.
53 |   public let kind: Kind
   |              `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 |   /// parsing the command-line as a whole.
57 |   public let flag: Flag?
   |              `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 |   /// Initializes a new flag error from an error kind and a corresponding flag.
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
 44 | /// Method `isOption` can be used to distinguish between options and arguments.
 45 | ///
 46 | public class Flag {
    |              `- note: class 'Flag' does not conform to the 'Sendable' protocol
 47 |
 48 |   /// The short name of the flag.
[13/25] Compiling CommandLineKit LineReaderHistory.swift
[14/25] Compiling CommandLineKit Terminal.swift
[15/25] Compiling CommandLineKit ConvertibleFromString.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'none' 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 |
 48 |   public init(textColor: TextColor? = nil,
[16/25] Compiling CommandLineKit EditState.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'none' 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 |
 48 |   public init(textColor: TextColor? = nil,
[17/25] Emitting module CommandLineKit
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'none' 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 |
 48 |   public init(textColor: TextColor? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 |   /// The description of the error.
44 |   public enum Kind {
   |               `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 |     case unknownFlag(String)
46 |     case missingValue
   :
51 |
52 |   /// The error kind.
53 |   public let kind: Kind
   |              `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 |   /// parsing the command-line as a whole.
57 |   public let flag: Flag?
   |              `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 |   /// Initializes a new flag error from an error kind and a corresponding flag.
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
 44 | /// Method `isOption` can be used to distinguish between options and arguments.
 45 | ///
 46 | public class Flag {
    |              `- note: class 'Flag' does not conform to the 'Sendable' protocol
 47 |
 48 |   /// The short name of the flag.
[18/25] Compiling CommandLineKit Command.swift
[19/25] Compiling CommandLineKit ControlCharacters.swift
[20/25] Compiling CommandLineKit AnsiCodes.swift
[21/25] Compiling CommandLineKit BackgroundColor.swift
[22/25] Compiling CommandLineKit TextStyle.swift
[23/28] Compiling CommandLineKitDemo LinuxMain.swift
[24/28] Compiling CommandLineKitDemo main.swift
[25/28] Emitting module CommandLineKitDemo
[25/28] Write Objects.LinkFileList
[26/28] Linking CommandLineKitDemo
[27/28] Applying CommandLineKitDemo
Build complete! (25.32s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/CommandLineKitDemo/Info.plist
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CommandLineKit",
  "name" : "CommandLineKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "CommandLineKit",
      "targets" : [
        "CommandLineKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CommandLineKitDemo",
      "targets" : [
        "CommandLineKitDemo"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "CommandLineKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineKitTests",
      "path" : "Tests/CommandLineKitTests",
      "sources" : [
        "AnsiCodesTests.swift",
        "EditStateTests.swift",
        "FlagTests.swift",
        "LineReaderHistoryTests.swift"
      ],
      "target_dependencies" : [
        "CommandLineKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommandLineKitDemo",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineKitDemo",
      "path" : "Sources/CommandLineKitDemo",
      "product_memberships" : [
        "CommandLineKitDemo"
      ],
      "sources" : [
        "LinuxMain.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "CommandLineKit"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CommandLineKit",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineKit",
      "path" : "Sources/CommandLineKit",
      "product_memberships" : [
        "CommandLineKit",
        "CommandLineKitDemo"
      ],
      "sources" : [
        "AnsiCodes.swift",
        "BackgroundColor.swift",
        "Command.swift",
        "ControlCharacters.swift",
        "ConvertibleFromString.swift",
        "EditState.swift",
        "Flag.swift",
        "FlagError.swift",
        "FlagWrapper.swift",
        "Flags.swift",
        "LineReader.swift",
        "LineReaderError.swift",
        "LineReaderHistory.swift",
        "Terminal.swift",
        "TextColor.swift",
        "TextProperties.swift",
        "TextStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.