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 DataOperation, reference master (f09d28), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 04:03:10 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/Mobelux/DataOperation.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Mobelux/DataOperation
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f09d288 Update README.md
Cloned https://github.com/Mobelux/DataOperation.git
Revision (git rev-parse @):
f09d28852af68f1e79f28bf5aef579e7d346ec66
SUCCESS checkout https://github.com/Mobelux/DataOperation.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": "dataoperation",
      "name": "DataOperation",
      "url": "https://github.com/Mobelux/DataOperation.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DataOperation",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Mobelux/DataOperation.git
[1/146] Fetching dataoperation
Fetched https://github.com/Mobelux/DataOperation.git from cache (0.68s)
Creating working copy for https://github.com/Mobelux/DataOperation.git
Working copy of https://github.com/Mobelux/DataOperation.git resolved at master (f09d288)
warning: '.resolve-product-dependencies': dependency 'dataoperation' 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/Mobelux/DataOperation.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/7] Compiling DataOperation Request.swift
[4/7] Compiling DataOperation DataOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:23:20: warning: class 'DataOperation' must restate inherited '@unchecked Sendable' conformance
21 | }
22 |
23 | public final class DataOperation: Operation {
   |                    `- warning: class 'DataOperation' must restate inherited '@unchecked Sendable' conformance
24 |     private let request: Request
25 |     private let session: Session
[5/7] Compiling DataOperation Operation+Utils.swift
[6/7] Emitting module DataOperation
/Users/admin/builder/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:23:20: warning: class 'DataOperation' must restate inherited '@unchecked Sendable' conformance
21 | }
22 |
23 | public final class DataOperation: Operation {
   |                    `- warning: class 'DataOperation' must restate inherited '@unchecked Sendable' conformance
24 |     private let request: Request
25 |     private let session: Session
[7/7] Compiling DataOperation Session.swift
/Users/admin/builder/spi-builder-workspace/Sources/DataOperation/Session.swift:26:59: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
19 |
20 | extension URLSession: Session {
21 |     public func task(with request: Request, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask? {
   |                                             `- note: parameter 'completionHandler' is implicitly non-sendable
22 |         guard let request = request as? URLRequest else {
23 |             return nil
24 |         }
25 |
26 |         return dataTask(with: request, completionHandler: completionHandler)
   |                                                           `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
27 |     }
28 | }
Build complete! (7.70s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DataOperation",
  "name" : "DataOperation",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DataOperation",
      "targets" : [
        "DataOperation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DataOperationTests",
      "module_type" : "SwiftTarget",
      "name" : "DataOperationTests",
      "path" : "Tests/DataOperationTests",
      "sources" : [
        "DataOperationTests.swift"
      ],
      "target_dependencies" : [
        "DataOperation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DataOperation",
      "module_type" : "SwiftTarget",
      "name" : "DataOperation",
      "path" : "Sources/DataOperation",
      "product_memberships" : [
        "DataOperation"
      ],
      "sources" : [
        "DataOperation.swift",
        "Operation+Utils.swift",
        "Request.swift",
        "Session.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.