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, reference 0.3.5 (c66994), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 06:07:40 UTC.

Swift 6 data race errors: 3

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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objecthub/swift-commandlinekit.git
Reference: 0.3.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/objecthub/swift-commandlinekit
 * tag               0.3.5      -> FETCH_HEAD
HEAD is now at c66994d Improve color detection. Migrate project to Xcode 14.2.
Cloned https://github.com/objecthub/swift-commandlinekit.git
Revision (git rev-parse @):
c66994d36c654fdd4a27863e5f8aaadc101099eb
SUCCESS checkout https://github.com/objecthub/swift-commandlinekit.git at 0.3.5
========================================
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": "swift-commandlinekit",
      "name": "CommandLineKit",
      "url": "https://github.com/objecthub/swift-commandlinekit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-commandlinekit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/objecthub/swift-commandlinekit.git
[4/362] Fetching swift-commandlinekit
Fetched https://github.com/objecthub/swift-commandlinekit.git from cache (0.79s)
Creating working copy for https://github.com/objecthub/swift-commandlinekit.git
Working copy of https://github.com/objecthub/swift-commandlinekit.git resolved at 0.3.5 (c66994d)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/objecthub/swift-commandlinekit.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 -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 CommandLineKitDemo-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/22] Compiling CommandLineKit LineReaderHistory.swift
[6/22] Compiling CommandLineKit TextColor.swift
[7/22] Compiling CommandLineKit Terminal.swift
[8/22] 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,
[9/22] 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,
[10/22] 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,
[11/22] Compiling CommandLineKit ControlCharacters.swift
[12/22] Compiling CommandLineKit ConvertibleFromString.swift
[13/22] Compiling CommandLineKit AnsiCodes.swift
[14/22] Compiling CommandLineKit BackgroundColor.swift
[15/22] 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,
[16/22] Compiling CommandLineKit Flag.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/22] 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.
/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,
[18/22] Compiling CommandLineKit Flags.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.
/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,
[19/22] 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.
[20/23] Compiling CommandLineKit TextStyle.swift
[21/26] Compiling CommandLineKitDemo LinuxMain.swift
[22/26] Emitting module CommandLineKitDemo
[23/26] Compiling CommandLineKitDemo main.swift
[23/26] Write Objects.LinkFileList
[24/26] Linking CommandLineKitDemo
[25/26] Applying CommandLineKitDemo
Build complete! (16.51s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CommandLineKit",
  "name" : "CommandLineKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "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",
        "ControlCharacters.swift",
        "ConvertibleFromString.swift",
        "EditState.swift",
        "Flag.swift",
        "FlagError.swift",
        "Flags.swift",
        "LineReader.swift",
        "LineReaderError.swift",
        "LineReaderHistory.swift",
        "Terminal.swift",
        "TextColor.swift",
        "TextProperties.swift",
        "TextStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.