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 master (513a95), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 06:07:55 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: 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
========================================
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
[1/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 master (513a953)
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/24] Compiling CommandLineKit TextColor.swift
[6/24] Compiling CommandLineKit LineReaderHistory.swift
[7/24] Compiling CommandLineKit Terminal.swift
[8/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,
[9/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.
[10/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.
[11/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,
[12/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,
[13/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,
[14/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,
[15/25] Compiling CommandLineKit Command.swift
[16/25] Compiling CommandLineKit ControlCharacters.swift
[17/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,
[18/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,
[19/25] Compiling CommandLineKit AnsiCodes.swift
[20/25] Compiling CommandLineKit BackgroundColor.swift
[21/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.
[22/25] Compiling CommandLineKit TextStyle.swift
[23/28] Emitting module CommandLineKitDemo
[24/28] Compiling CommandLineKitDemo LinuxMain.swift
[25/28] Compiling CommandLineKitDemo main.swift
[25/28] Write Objects.LinkFileList
[26/28] Linking CommandLineKitDemo
[27/28] Applying CommandLineKitDemo
Build complete! (16.26s)
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.