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 master (efcac7), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 20:34:50 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: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mcrich23/packagekit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at efcac72 added public init for Package
Cloned https://github.com/mcrich23/packagekit.git
Revision (git rev-parse @):
efcac720bba4a199255bf09e0bb54a5d48f0cd93
SUCCESS checkout https://github.com/mcrich23/packagekit.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": "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.65s)
Creating working copy for https://github.com/mcrich23/packagekit.git
Working copy of https://github.com/mcrich23/packagekit.git resolved at master (efcac72)
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] Compiling PackageKit PackageKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/PackageKit/PackageKit.swift:149:17: warning: mutation of captured var 'exists' in concurrently-executing code; this is an error in the Swift 6 language mode
147 |             if let httpStatus = (response as? HTTPURLResponse)?.statusCode {
148 |                 // HTTP status code 200 means the file exists, 404 means not found
149 |                 exists = (httpStatus == 200)
    |                 `- warning: mutation of captured var 'exists' in concurrently-executing code; this is an error in the Swift 6 language mode
150 |             }
151 |             semaphore.signal()
[4/4] Emitting module PackageKit
Build complete! (5.95s)
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.