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 main (94921f), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 13:41:15 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/q231950/commands
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 94921f2 Remove old and unused  resources
Cloned https://github.com/q231950/commands.git
Revision (git rev-parse @):
94921f2de9262a74e8abe2d218242214df00a2ef
SUCCESS checkout https://github.com/q231950/commands.git at main
========================================
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
[1/666] Fetching commands
Fetched https://github.com/q231950/commands.git from cache (0.85s)
Creating working copy for https://github.com/q231950/commands.git
Working copy of https://github.com/q231950/commands.git resolved at main (94921f2)
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 Command.swift
[6/10] Emitting module Commands
[7/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 |         }
[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.55s)
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.