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 MNISTKit with Swift 6.0 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/octadero/mnistkit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/octadero/mnistkit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 15ba9ba Update DataSetProvider.swift
Cloned https://github.com/octadero/mnistkit.git
Revision (git rev-parse @):
15ba9ba1a7e216ba427fbc994e842bed2137142c
SUCCESS checkout https://github.com/octadero/mnistkit.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/octadero/mnistkit.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/6] Compiling Unarchiver Unarchiver.swift
[5/6] Emitting module Unarchiver
[6/6] Compiling Unarchiver Data.swift
[7/10] Emitting module MNISTKit
/Users/admin/builder/spi-builder-workspace/Sources/MNISTKit/MNISTKit.swift:39:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
 37 |
 38 |     /// Simple, but fast work.
 39 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
 40 |         switch self {
 41 |         case .label(stride: .train):
[8/10] Compiling MNISTKit MNISTKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/MNISTKit/MNISTKit.swift:39:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
 37 |
 38 |     /// Simple, but fast work.
 39 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
 40 |         switch self {
 41 |         case .label(stride: .train):
/Users/admin/builder/spi-builder-workspace/Sources/MNISTKit/MNISTKit.swift:90:21: warning: capture of 'self' with non-sendable type 'MNISTDataset' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |
 75 | /// Represents list of MNIST files in dataset.
 76 | public class MNISTDataset {
    |              `- note: class 'MNISTDataset' does not conform to the 'Sendable' protocol
 77 |     public private(set) var files = [MNISTFile]()
 78 |
    :
 88 |         DispatchQueue.global().async {
 89 |             do {
 90 |                 try self.prepare()
    |                     `- warning: capture of 'self' with non-sendable type 'MNISTDataset' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 91 |             } catch {
 92 |                 self.loadCallback(error)
[9/10] Compiling MNISTKit DataSetProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/MNISTKit/DataSetProvider.swift:55:21: warning: capture of 'callback' with non-sendable type '(String?, URL?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |             let task = urlSession.downloadTask(with: url, completionHandler: { (localFileURL, response, error) in
 54 |                 if let error = error {
 55 |                     callback(path, nil, error)
    |                     |- warning: capture of 'callback' with non-sendable type '(String?, URL?, (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'
 56 |                     return
 57 |                 }
[10/10] Compiling MNISTKit MNISTFile.swift
Build complete! (20.54s)
Fetching https://github.com/Octadero/Unarchiver.git
[1/24] Fetching unarchiver
Fetched https://github.com/Octadero/Unarchiver.git from cache (0.67s)
Computing version for https://github.com/Octadero/Unarchiver.git
Computed https://github.com/Octadero/Unarchiver.git at 0.0.5 (0.65s)
Fetching https://github.com/Octadero/CZlib.git
[1/15] Fetching czlib
Fetched https://github.com/Octadero/CZlib.git from cache (0.60s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (0.66s)
Creating working copy for https://github.com/Octadero/Unarchiver.git
Working copy of https://github.com/Octadero/Unarchiver.git resolved at 0.0.5
Creating working copy for https://github.com/Octadero/CZlib.git
Working copy of https://github.com/Octadero/CZlib.git resolved at 0.0.5
warning: 'czlib': ignoring declared target(s) 'CZlib' in the system package
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: couldn't find pc file for libz
Build complete.
{
  "dependencies" : [
    {
      "identity" : "unarchiver",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Octadero/Unarchiver.git"
    }
  ],
  "manifest_display_name" : "MNISTKit",
  "name" : "MNISTKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MNISTKit",
      "targets" : [
        "MNISTKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MNISTKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MNISTKitTests",
      "path" : "Tests/MNISTKitTests",
      "sources" : [
        "MNISTKitTests.swift"
      ],
      "target_dependencies" : [
        "MNISTKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MNISTKit",
      "module_type" : "SwiftTarget",
      "name" : "MNISTKit",
      "path" : "Sources/MNISTKit",
      "product_dependencies" : [
        "Unarchiver"
      ],
      "product_memberships" : [
        "MNISTKit"
      ],
      "sources" : [
        "DataSetProvider.swift",
        "MNISTFile.swift",
        "MNISTKit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.