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 v4.0.9 (3eaafd), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 03:40:53 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/benoit-pereira-da-silva/CommandLine.git
Reference: v4.0.9
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/benoit-pereira-da-silva/CommandLine
 * tag               v4.0.9     -> FETCH_HEAD
HEAD is now at 3eaafd5 Removed CommandBase
Cloned https://github.com/benoit-pereira-da-silva/CommandLine.git
Revision (git rev-parse @):
3eaafd5941e359f025a411e3b5947f96d82d1bc9
SUCCESS checkout https://github.com/benoit-pereira-da-silva/CommandLine.git at v4.0.9
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/benoit-pereira-da-silva/CommandLine.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/6] Compiling CommandLineKit Option.swift
[4/6] Compiling CommandLineKit StringExtensions.swift
[5/6] Emitting module CommandLineKit
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/CommandLine.swift:159:10: warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
157 |
158 |     /** Thrown if the value for an Option is invalid (e.g. a string is passed to an IntOption) */
159 |     case invalidValueForOption(Option, [String])
    |          `- warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
160 |
161 |     /** Thrown if an Option with required: true is missing */
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/Option.swift:21:12: note: class 'Option' does not conform to the 'Sendable' protocol
 19 |  * The base class for a command-line option.
 20 |  */
 21 | open class Option {
    |            `- note: class 'Option' does not conform to the 'Sendable' protocol
 22 |   public let shortFlag: String?
 23 |   public let longFlag: String?
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/CommandLine.swift:162:10: warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
160 |
161 |     /** Thrown if an Option with required: true is missing */
162 |     case missingRequiredOptions([Option])
    |          `- warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
163 |
164 |     public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/Option.swift:21:12: note: class 'Option' does not conform to the 'Sendable' protocol
 19 |  * The base class for a command-line option.
 20 |  */
 21 | open class Option {
    |            `- note: class 'Option' does not conform to the 'Sendable' protocol
 22 |   public let shortFlag: String?
 23 |   public let longFlag: String?
[6/6] Compiling CommandLineKit CommandLine.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/CommandLine.swift:159:10: warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
157 |
158 |     /** Thrown if the value for an Option is invalid (e.g. a string is passed to an IntOption) */
159 |     case invalidValueForOption(Option, [String])
    |          `- warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
160 |
161 |     /** Thrown if an Option with required: true is missing */
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/Option.swift:21:12: note: class 'Option' does not conform to the 'Sendable' protocol
 19 |  * The base class for a command-line option.
 20 |  */
 21 | open class Option {
    |            `- note: class 'Option' does not conform to the 'Sendable' protocol
 22 |   public let shortFlag: String?
 23 |   public let longFlag: String?
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/CommandLine.swift:162:10: warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
160 |
161 |     /** Thrown if an Option with required: true is missing */
162 |     case missingRequiredOptions([Option])
    |          `- warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
163 |
164 |     public var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/CommandLineKit/Option.swift:21:12: note: class 'Option' does not conform to the 'Sendable' protocol
 19 |  * The base class for a command-line option.
 20 |  */
 21 | open class Option {
    |            `- note: class 'Option' does not conform to the 'Sendable' protocol
 22 |   public let shortFlag: String?
 23 |   public let longFlag: String?
Build complete! (5.90s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CommandLineKit",
  "name" : "CommandLineKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CommandLineKit",
      "targets" : [
        "CommandLineKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandLineKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineKitTests",
      "path" : "Tests/CommandLineKitTests",
      "sources" : [
        "CommandLineTests.swift",
        "StringExtensionTests.swift"
      ],
      "target_dependencies" : [
        "CommandLineKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommandLineKit",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineKit",
      "path" : "Sources/CommandLineKit",
      "product_memberships" : [
        "CommandLineKit"
      ],
      "sources" : [
        "CommandLine.swift",
        "Option.swift",
        "StringExtensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.