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 Kyu, reference master (4d439e), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 05:31:54 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/reddavis/Kyu.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/reddavis/Kyu
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4d439ef Add MIT license
Cloned https://github.com/reddavis/Kyu.git
Revision (git rev-parse @):
4d439ef25834eafcd2a10d86d0cbe9db126f8604
SUCCESS checkout https://github.com/reddavis/Kyu.git at master
========================================
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": "kyu",
      "name": "Kyu",
      "url": "https://github.com/reddavis/Kyu.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Kyu",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/reddavis/Kyu.git
[1/96] Fetching kyu
Fetched https://github.com/reddavis/Kyu.git from cache (0.68s)
Creating working copy for https://github.com/reddavis/Kyu.git
Working copy of https://github.com/reddavis/Kyu.git resolved at master (4d439ef)
warning: '.resolve-product-dependencies': dependency 'kyu' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/reddavis/Kyu.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling Kyu Kyu.swift
/Users/admin/builder/spi-builder-workspace/Kyu/Source/Kyu.swift:67:24: warning: sending 'logger' risks causing data races; this is an error in the Swift 6 language mode
65 |         logger.logLevel = logLevel
66 |
67 |         self.runner = .init(
   |                        |- warning: sending 'logger' risks causing data races; this is an error in the Swift 6 language mode
   |                        `- note: sending task-isolated 'logger' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
68 |             pendingDirectory: pendingDirectory,
69 |             completedDirectory: completedDirectory,
/Users/admin/builder/spi-builder-workspace/Kyu/Source/Kyu.swift:67:24: warning: sending 'onWillExecuteJob' risks causing data races; this is an error in the Swift 6 language mode
65 |         logger.logLevel = logLevel
66 |
67 |         self.runner = .init(
   |                        |- warning: sending 'onWillExecuteJob' risks causing data races; this is an error in the Swift 6 language mode
   |                        `- note: sending task-isolated 'onWillExecuteJob' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
68 |             pendingDirectory: pendingDirectory,
69 |             completedDirectory: completedDirectory,
/Users/admin/builder/spi-builder-workspace/Kyu/Source/Kyu.swift:90:31: warning: sending 'job' risks causing data races; this is an error in the Swift 6 language mode
88 |     public func add(job: T) async throws
89 |     {
90 |         try await self.runner.add(job: job)
   |                               |- warning: sending 'job' risks causing data races; this is an error in the Swift 6 language mode
   |                               `- note: sending task-isolated 'job' to actor-isolated instance method 'add(job:)' risks causing data races between actor-isolated and task-isolated uses
91 |     }
92 | }
[4/8] Compiling Kyu Job.swift
[5/8] Compiling Kyu Directory.swift
[6/8] Emitting module Kyu
[7/8] Compiling Kyu Runner.swift
/Users/admin/builder/spi-builder-workspace/Kyu/Source/Runner.swift:109:27: warning: sending 'job' risks causing data races; this is an error in the Swift 6 language mode
107 |             self.logger.info("[Job][\(job.id)] Executing")
108 |
109 |             try await job.execute()
    |                           |- warning: sending 'job' risks causing data races; this is an error in the Swift 6 language mode
    |                           `- note: sending 'self'-isolated 'job' to nonisolated instance method 'execute()' risks causing data races between nonisolated and 'self'-isolated uses
110 |             self.move(job: job, from: self.pendingDirectory, to: self.completedDirectory)
111 |
/Users/admin/builder/spi-builder-workspace/Kyu/Source/Runner.swift:76:14: warning: cannot access property 'jobDirectoryObserver' with a non-sendable type '(any DispatchSourceFileSystemObject)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 74 |     deinit
 75 |     {
 76 |         self.jobDirectoryObserver.cancel()
    |              `- warning: cannot access property 'jobDirectoryObserver' with a non-sendable type '(any DispatchSourceFileSystemObject)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 77 |     }
 78 |
Dispatch.DispatchSourceFileSystemObject:1:17: note: protocol 'DispatchSourceFileSystemObject' does not conform to the 'Sendable' protocol
1 | public protocol DispatchSourceFileSystemObject : DispatchSourceProtocol {
  |                 `- note: protocol 'DispatchSourceFileSystemObject' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Kyu/Source/Runner.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  2 |
  3 |
[8/8] Compiling Kyu Logger.swift
Build complete! (8.42s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Kyu",
  "name" : "Kyu",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "Kyu",
      "targets" : [
        "Kyu"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KyuTests",
      "module_type" : "SwiftTarget",
      "name" : "KyuTests",
      "path" : "KyuTests",
      "sources" : [
        "Source/AppendNewLineJob.swift",
        "Source/Assertions.swift",
        "Source/Tests/DirectoryTests.swift",
        "Source/Tests/KyuTests.swift"
      ],
      "target_dependencies" : [
        "Kyu"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Kyu",
      "module_type" : "SwiftTarget",
      "name" : "Kyu",
      "path" : "Kyu",
      "product_memberships" : [
        "Kyu"
      ],
      "sources" : [
        "Source/Directory.swift",
        "Source/Job.swift",
        "Source/Kyu.swift",
        "Source/Logger.swift",
        "Source/Runner.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.