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 Commands, reference 2.0.0 (24a892), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 13:41:22 UTC.

Swift 6 data race errors: 0

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/q231950/commands.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/q231950/commands
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at 24a8921 Merge pull request #33 from q231950/prepare-2.0.0
Cloned https://github.com/q231950/commands.git
Revision (git rev-parse @):
24a89210f123ae2bb289586ccca2337ede0165a9
SUCCESS checkout https://github.com/q231950/commands.git at 2.0.0
========================================
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": "commands",
      "name": "Commands",
      "url": "https://github.com/q231950/commands.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/commands",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/q231950/commands.git
[7/666] Fetching commands
Fetched https://github.com/q231950/commands.git from cache (0.98s)
Creating working copy for https://github.com/q231950/commands.git
Working copy of https://github.com/q231950/commands.git resolved at 2.0.0 (24a8921)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/q231950/commands.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 CommandsExample-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/10] Compiling Commands CommandExecutor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandExecutor.swift:40:13: warning: capture of 'self' with non-sendable type 'CommandExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public class CommandExecutor {
   |              `- note: class 'CommandExecutor' does not conform to the 'Sendable' protocol
11 |
12 |     public init() {}
   :
38 |         process.standardInput = inputPipe
39 |         process.terminationHandler = { process in
40 |             self.terminationHandler?(process.terminationStatus)
   |             `- warning: capture of 'self' with non-sendable type 'CommandExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 |         }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandExecutor.swift:61:17: warning: capture of 'self' with non-sendable type 'CommandExecutor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public class CommandExecutor {
   |              `- note: class 'CommandExecutor' does not conform to the 'Sendable' protocol
11 |
12 |     public init() {}
   :
59 |             let data = handle.availableData
60 |             if data.count > 0, let output = String(data: data, encoding: .utf8) {
61 |                 self?.outputHandler?(output)
   |                 `- warning: capture of 'self' with non-sendable type 'CommandExecutor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 |             }
63 |         }
[6/10] Emitting module Commands
[7/10] Compiling Commands Command.swift
[8/12] Emitting module CommandsExample
[9/12] Compiling CommandsExample main.swift
[9/12] Write Objects.LinkFileList
[10/12] Linking CommandsExample
[11/12] Applying CommandsExample
Build complete! (6.20s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Commands",
  "name" : "Commands",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CommandsExample",
      "targets" : [
        "CommandsExample"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Commands",
      "targets" : [
        "Commands"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandsTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandsTests",
      "path" : "Tests/CommandsTests",
      "sources" : [
        "CommandExecutorTests.swift",
        "TestHelper.swift"
      ],
      "target_dependencies" : [
        "Commands"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommandsExample",
      "module_type" : "SwiftTarget",
      "name" : "CommandsExample",
      "path" : "Sources/CommandsExample",
      "product_memberships" : [
        "CommandsExample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Commands"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Commands",
      "module_type" : "SwiftTarget",
      "name" : "Commands",
      "path" : "Sources/Commands",
      "product_memberships" : [
        "CommandsExample",
        "Commands"
      ],
      "sources" : [
        "Command.swift",
        "CommandExecutor.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.