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 CommandShell, reference v2.1.5 (63f783), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 22:33:44 UTC.

Swift 6 data race errors: 1

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/elegantchaos/CommandShell.git
Reference: v2.1.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/CommandShell
 * tag               v2.1.5     -> FETCH_HEAD
HEAD is now at 63f783a Added better version output, and --about command.
Cloned https://github.com/elegantchaos/CommandShell.git
Revision (git rev-parse @):
63f783a6546fed0723b2eb8b8fa12e27277b0ea2
SUCCESS checkout https://github.com/elegantchaos/CommandShell.git at v2.1.5
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/elegantchaos/XCTestExtensions.git
Fetching https://github.com/elegantchaos/Logger.git
Fetching https://github.com/elegantchaos/Matchable.git
Fetching https://github.com/elegantchaos/SemanticVersion.git
[1/2051] Fetching logger
[43/2164] Fetching logger, matchable
[154/2316] Fetching logger, matchable, semanticversion
[380/2887] Fetching logger, matchable, semanticversion, xctestextensions
[1762/15282] Fetching logger, matchable, semanticversion, xctestextensions, swift-argument-parser
Fetched https://github.com/elegantchaos/Matchable.git from cache (1.01s)
Fetched https://github.com/elegantchaos/SemanticVersion.git from cache (1.02s)
Fetched https://github.com/elegantchaos/Logger.git from cache (1.02s)
[695/12966] Fetching xctestextensions, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.61s)
Fetched https://github.com/elegantchaos/XCTestExtensions.git from cache (1.61s)
Computing version for https://github.com/elegantchaos/XCTestExtensions.git
Computed https://github.com/elegantchaos/XCTestExtensions.git at 1.4.9 (0.59s)
Computing version for https://github.com/elegantchaos/SemanticVersion.git
Computed https://github.com/elegantchaos/SemanticVersion.git at 1.1.1 (0.55s)
Computing version for https://github.com/elegantchaos/Logger.git
Computed https://github.com/elegantchaos/Logger.git at 1.8.0 (0.56s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.57s)
Computing version for https://github.com/elegantchaos/Matchable.git
Computed https://github.com/elegantchaos/Matchable.git at 1.0.7 (0.63s)
Creating working copy for https://github.com/elegantchaos/SemanticVersion.git
Working copy of https://github.com/elegantchaos/SemanticVersion.git resolved at 1.1.1
Creating working copy for https://github.com/elegantchaos/XCTestExtensions.git
Working copy of https://github.com/elegantchaos/XCTestExtensions.git resolved at 1.4.9
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Creating working copy for https://github.com/elegantchaos/Logger.git
Working copy of https://github.com/elegantchaos/Logger.git resolved at 1.8.0
Creating working copy for https://github.com/elegantchaos/Matchable.git
Working copy of https://github.com/elegantchaos/Matchable.git resolved at 1.0.7
========================================
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": "commandshell",
      "name": "CommandShell",
      "url": "https://github.com/elegantchaos/CommandShell.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CommandShell",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser",
          "version": "0.5.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        },
        {
          "identity": "logger",
          "name": "Logger",
          "url": "https://github.com/elegantchaos/Logger.git",
          "version": "1.8.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Logger",
          "dependencies": [
          ]
        },
        {
          "identity": "semanticversion",
          "name": "SemanticVersion",
          "url": "https://github.com/elegantchaos/SemanticVersion.git",
          "version": "1.1.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SemanticVersion",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/CommandShell.git
[1/354] Fetching commandshell
Fetched https://github.com/elegantchaos/CommandShell.git from cache (0.76s)
Fetching https://github.com/elegantchaos/Logger.git from cache
Fetching https://github.com/elegantchaos/SemanticVersion.git from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/elegantchaos/Logger.git from cache (0.56s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.56s)
Fetched https://github.com/elegantchaos/SemanticVersion.git from cache (0.56s)
Computing version for https://github.com/elegantchaos/SemanticVersion.git
Computed https://github.com/elegantchaos/SemanticVersion.git at 1.1.2 (0.02s)
Computing version for https://github.com/elegantchaos/Logger.git
Computed https://github.com/elegantchaos/Logger.git at 1.8.2 (0.56s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.02s)
Creating working copy for https://github.com/elegantchaos/Logger.git
Working copy of https://github.com/elegantchaos/Logger.git resolved at 1.8.2
Creating working copy for https://github.com/elegantchaos/CommandShell.git
Working copy of https://github.com/elegantchaos/CommandShell.git resolved at v2.1.5 (63f783a)
Creating working copy for https://github.com/elegantchaos/SemanticVersion.git
Working copy of https://github.com/elegantchaos/SemanticVersion.git resolved at 1.1.2
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Found 3 product dependencies
  - swift-argument-parser
  - Logger
  - SemanticVersion
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/elegantchaos/CommandShell.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/11] Write sources
[4/11] Write CommandShellExample-entitlement.plist
[4/11] Write sources
[7/11] Write swift-version--7754E27361AE5C74.txt
[9/25] Emitting module SemanticVersion
[10/25] Compiling SemanticVersion SemanticVersion.swift
[11/25] Compiling ArgumentParserToolInfo ToolInfo.swift
[12/25] Emitting module ArgumentParserToolInfo
[13/60] Compiling ArgumentParser Argument.swift
[14/60] Compiling ArgumentParser ArgumentHelp.swift
[15/60] Compiling ArgumentParser CompletionKind.swift
[16/60] Compiling ArgumentParser Errors.swift
[17/63] Compiling ArgumentParser CommandConfiguration.swift
[18/63] Compiling ArgumentParser EnumerableFlag.swift
[19/63] Compiling ArgumentParser ExpressibleByArgument.swift
[20/63] Compiling ArgumentParser ParsableArguments.swift
[21/63] Compiling ArgumentParser BashCompletionsGenerator.swift
[22/63] Compiling ArgumentParser CompletionsGenerator.swift
[23/63] Compiling ArgumentParser FishCompletionsGenerator.swift
[24/63] Compiling ArgumentParser ZshCompletionsGenerator.swift
[25/63] Compiling ArgumentParser Flag.swift
[26/63] Compiling ArgumentParser NameSpecification.swift
[27/63] Compiling ArgumentParser Option.swift
[28/63] Compiling ArgumentParser OptionGroup.swift
[29/63] Compiling ArgumentParser SequenceExtensions.swift
[30/63] Compiling ArgumentParser StringExtensions.swift
[31/63] Compiling ArgumentParser Tree.swift
[32/63] Emitting module ArgumentParser
[33/63] Compiling ArgumentParser Parsed.swift
[34/63] Compiling ArgumentParser ParsedValues.swift
[35/63] Compiling ArgumentParser ParserError.swift
[36/63] Compiling ArgumentParser SplitArguments.swift
[37/63] Compiling ArgumentParser ParsableArgumentsValidation.swift
[38/63] Compiling ArgumentParser ParsableCommand.swift
[39/63] Compiling ArgumentParser ArgumentDecoder.swift
[40/63] Compiling ArgumentParser ArgumentDefinition.swift
[41/63] Emitting module Logger
[42/63] Compiling Logger PrintHandler.swift
[43/63] Compiling Logger OSLogHandler.swift
[44/63] Compiling Logger NSLogHandler.swift
[45/63] Compiling Logger UserDefaultsManagerSettings.swift
[46/63] Compiling Logger ManagerSettings.swift
[47/63] Compiling Logger Handler.swift
[48/63] Compiling Logger Channel.swift
[49/63] Compiling Logger Context.swift
[50/63] Compiling Logger Manager.swift
[51/63] Compiling ArgumentParser MessageInfo.swift
[52/63] Compiling ArgumentParser UsageGenerator.swift
[53/63] Compiling ArgumentParser CollectionExtensions.swift
[54/63] Compiling ArgumentParser DumpHelpGenerator.swift
[55/63] Compiling ArgumentParser HelpCommand.swift
[56/63] Compiling ArgumentParser HelpGenerator.swift
[57/63] Compiling ArgumentParser ArgumentSet.swift
[58/63] Compiling ArgumentParser CommandParser.swift
[59/63] Compiling ArgumentParser InputOrigin.swift
[60/63] Compiling ArgumentParser Name.swift
[61/67] Compiling CommandShell CommandShellOptions.swift
[62/67] Compiling CommandShell CommandShell.swift
/Users/admin/builder/spi-builder-workspace/Sources/CommandShell/CommandShell.swift:13:13: warning: var 'commandShellExplicitInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | /// If set, this is the Info.plist dictionary that will be supplied
12 | /// to the shell. If not set, the shell will attempt to load it as a resource.
13 | private var commandShellExplicitInfo: [String:Any]?
   |             |- warning: var 'commandShellExplicitInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'commandShellExplicitInfo' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'commandShellExplicitInfo' 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
14 |
15 | public struct CommandShell<Engine: CommandEngine>: ParsableCommand {
[63/67] Emitting module CommandShell
/Users/admin/builder/spi-builder-workspace/Sources/CommandShell/CommandShell.swift:13:13: warning: var 'commandShellExplicitInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | /// If set, this is the Info.plist dictionary that will be supplied
12 | /// to the shell. If not set, the shell will attempt to load it as a resource.
13 | private var commandShellExplicitInfo: [String:Any]?
   |             |- warning: var 'commandShellExplicitInfo' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'commandShellExplicitInfo' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'commandShellExplicitInfo' 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
14 |
15 | public struct CommandShell<Engine: CommandEngine>: ParsableCommand {
[64/67] Compiling CommandShell CommandEngine.swift
[65/69] Compiling CommandShellExample main.swift
[66/69] Emitting module CommandShellExample
[66/69] Write Objects.LinkFileList
[67/69] Linking CommandShellExample
[68/69] Applying CommandShellExample
Build complete! (11.08s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "logger",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.5",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/Logger.git"
    },
    {
      "identity" : "semanticversion",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/SemanticVersion.git"
    },
    {
      "identity" : "xctestextensions",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/XCTestExtensions.git"
    }
  ],
  "manifest_display_name" : "CommandShell",
  "name" : "CommandShell",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "CommandShell",
      "targets" : [
        "CommandShell"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CommandShellExample",
      "targets" : [
        "CommandShellExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandShellTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandShellTests",
      "path" : "Tests/CommandShellTests",
      "product_dependencies" : [
        "XCTestExtensions"
      ],
      "sources" : [
        "CommandShellTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CommandShell",
        "CommandShellExample"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommandShellExample",
      "module_type" : "SwiftTarget",
      "name" : "CommandShellExample",
      "path" : "Sources/CommandShellExample",
      "product_dependencies" : [
        "SemanticVersion"
      ],
      "product_memberships" : [
        "CommandShellExample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "CommandShell"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CommandShell",
      "module_type" : "SwiftTarget",
      "name" : "CommandShell",
      "path" : "Sources/CommandShell",
      "product_dependencies" : [
        "Logger",
        "SemanticVersion",
        "ArgumentParser"
      ],
      "product_memberships" : [
        "CommandShell",
        "CommandShellExample"
      ],
      "sources" : [
        "CommandEngine.swift",
        "CommandShell.swift",
        "CommandShellOptions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.