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 PackageKit, reference v1.0.2 (dd553f), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 20:35:13 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/mcrich23/packagekit.git
Reference: v1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mcrich23/packagekit
 * tag               v1.0.2     -> FETCH_HEAD
HEAD is now at dd553fb Downgraded to Swift 5.7
Cloned https://github.com/mcrich23/packagekit.git
Revision (git rev-parse @):
dd553fbe83f50229e2289c6a947ef93e82ee078a
SUCCESS checkout https://github.com/mcrich23/packagekit.git at v1.0.2
========================================
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": "packagekit",
      "name": "PackageKit",
      "url": "https://github.com/mcrich23/packagekit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/packagekit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/mcrich23/packagekit.git
[1/49] Fetching packagekit
Fetched https://github.com/mcrich23/packagekit.git from cache (0.71s)
Creating working copy for https://github.com/mcrich23/packagekit.git
Working copy of https://github.com/mcrich23/packagekit.git resolved at v1.0.2 (dd553fb)
warning: '.resolve-product-dependencies': dependency 'packagekit' 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/mcrich23/packagekit.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/4] Emitting module PackageKit
[4/4] Compiling PackageKit PackageKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/PackageKit/PackageKit.swift:143:17: warning: mutation of captured var 'exists' in concurrently-executing code; this is an error in the Swift 6 language mode
141 |             if let httpStatus = (response as? HTTPURLResponse)?.statusCode {
142 |                 // HTTP status code 200 means the file exists, 404 means not found
143 |                 exists = (httpStatus == 200)
    |                 `- warning: mutation of captured var 'exists' in concurrently-executing code; this is an error in the Swift 6 language mode
144 |             }
145 |             semaphore.signal()
Build complete! (6.35s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PackageKit",
  "name" : "PackageKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PackageKit",
      "targets" : [
        "PackageKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PackageKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PackageKitTests",
      "path" : "Tests",
      "sources" : [
        "PackageKitTests/PackageKitTests.swift"
      ],
      "target_dependencies" : [
        "PackageKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PackageKit",
      "module_type" : "SwiftTarget",
      "name" : "PackageKit",
      "path" : "Sources",
      "product_memberships" : [
        "PackageKit"
      ],
      "sources" : [
        "PackageKit/PackageKit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.