This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 shell-kit with Swift 6.0 (beta) for macOS (SPM).

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BinaryBirds/shell-kit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BinaryBirds/shell-kit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7a274bd license
Cloned https://github.com/BinaryBirds/shell-kit.git
Revision (git rev-parse @):
7a274bdb965378befad26085ef52ac3cb2051c8d
SUCCESS checkout https://github.com/BinaryBirds/shell-kit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/BinaryBirds/shell-kit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/4] Emitting module ShellKit
[4/4] Compiling ShellKit Shell.swift
/Users/admin/builder/spi-builder-workspace/Sources/ShellKit/Shell.swift:143:13: warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 54 |
 55 | // a custom shell representation object
 56 | open class Shell {
    |            `- note: class 'Shell' does not conform to the 'Sendable' protocol
 57 |
 58 |     // shell errors
    :
141 |         outputPipe.fileHandleForReading.readabilityHandler = { handler in
142 |             let data = handler.availableData
143 |             self.lockQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 |                 outputData.append(data)
145 |                 self.outputHandler?.handle(data)
/Users/admin/builder/spi-builder-workspace/Sources/ShellKit/Shell.swift:145:17: warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 54 |
 55 | // a custom shell representation object
 56 | open class Shell {
    |            `- note: class 'Shell' does not conform to the 'Sendable' protocol
 57 |
 58 |     // shell errors
    :
143 |             self.lockQueue.async {
144 |                 outputData.append(data)
145 |                 self.outputHandler?.handle(data)
    |                 `- warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |             }
147 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ShellKit/Shell.swift:144:17: warning: mutation of captured var 'outputData' in concurrently-executing code; this is an error in the Swift 6 language mode
142 |             let data = handler.availableData
143 |             self.lockQueue.async {
144 |                 outputData.append(data)
    |                 `- warning: mutation of captured var 'outputData' in concurrently-executing code; this is an error in the Swift 6 language mode
145 |                 self.outputHandler?.handle(data)
146 |             }
/Users/admin/builder/spi-builder-workspace/Sources/ShellKit/Shell.swift:150:13: warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 54 |
 55 | // a custom shell representation object
 56 | open class Shell {
    |            `- note: class 'Shell' does not conform to the 'Sendable' protocol
 57 |
 58 |     // shell errors
    :
148 |         errorPipe.fileHandleForReading.readabilityHandler = { handler in
149 |             let data = handler.availableData
150 |             self.lockQueue.async {
    |             `- warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 |                 errorData.append(data)
152 |                 self.errorHandler?.handle(data)
/Users/admin/builder/spi-builder-workspace/Sources/ShellKit/Shell.swift:152:17: warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 54 |
 55 | // a custom shell representation object
 56 | open class Shell {
    |            `- note: class 'Shell' does not conform to the 'Sendable' protocol
 57 |
 58 |     // shell errors
    :
150 |             self.lockQueue.async {
151 |                 errorData.append(data)
152 |                 self.errorHandler?.handle(data)
    |                 `- warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 |             }
154 |         }
/Users/admin/builder/spi-builder-workspace/Sources/ShellKit/Shell.swift:151:17: warning: mutation of captured var 'errorData' in concurrently-executing code; this is an error in the Swift 6 language mode
149 |             let data = handler.availableData
150 |             self.lockQueue.async {
151 |                 errorData.append(data)
    |                 `- warning: mutation of captured var 'errorData' in concurrently-executing code; this is an error in the Swift 6 language mode
152 |                 self.errorHandler?.handle(data)
153 |             }
/Users/admin/builder/spi-builder-workspace/Sources/ShellKit/Shell.swift:204:34: warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 54 |
 55 | // a custom shell representation object
 56 | open class Shell {
    |            `- note: class 'Shell' does not conform to the 'Sendable' protocol
 57 |
 58 |     // shell errors
    :
202 |         queue.async {
203 |             do {
204 |                 let output = try self.run(command)
    |                                  `- warning: capture of 'self' with non-sendable type 'Shell' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 |                 completion(output, nil)
206 |             }
/Users/admin/builder/spi-builder-workspace/Sources/ShellKit/Shell.swift:205:17: warning: capture of 'completion' with non-sendable type '(String?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 |             do {
204 |                 let output = try self.run(command)
205 |                 completion(output, nil)
    |                 |- warning: capture of 'completion' with non-sendable type '(String?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
206 |             }
207 |             catch {
Build complete! (16.96s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "shell-kit",
  "name" : "shell-kit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ShellKit",
      "targets" : [
        "ShellKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ShellKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ShellKitTests",
      "path" : "Tests/ShellKitTests",
      "sources" : [
        "ShellKitTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ShellKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ShellKit",
      "module_type" : "SwiftTarget",
      "name" : "ShellKit",
      "path" : "Sources/ShellKit",
      "product_memberships" : [
        "ShellKit"
      ],
      "sources" : [
        "Shell.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.