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 GitHub, reference main (15da0d), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 12:10:47 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/eneko/github.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/eneko/github
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 15da0d9 Create FUNDING.yml
Cloned https://github.com/eneko/github.git
Revision (git rev-parse @):
15da0d97d49d7fab76a9847c0cf1c2fe4bd49e55
SUCCESS checkout https://github.com/eneko/github.git at main
========================================
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": "github",
      "name": "GitHub",
      "url": "https://github.com/eneko/github.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/github",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/eneko/github.git
[3/90] Fetching github
Fetched https://github.com/eneko/github.git from cache (0.64s)
Creating working copy for https://github.com/eneko/github.git
Working copy of https://github.com/eneko/github.git resolved at main (15da0d9)
warning: '.resolve-product-dependencies': dependency 'github' 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/eneko/github.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 GitHub Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/GitHub/Client.swift:57:17: warning: capture of 'completion' with non-sendable type 'Client.CompletionBlock' (aka '(Optional<Response>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
56 |             guard let data = data else {
57 |                 completion(nil, error)
   |                 |- warning: capture of 'completion' with non-sendable type 'Client.CompletionBlock' (aka '(Optional<Response>, Optional<any Error>) -> ()') 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'
58 |                 return
59 |             }
[4/7] Compiling GitHub GitHub.swift
[5/7] Compiling GitHub Models.swift
[6/7] Compiling GitHub GitHubError.swift
[7/7] Emitting module GitHub
Build complete! (7.75s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GitHub",
  "name" : "GitHub",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "GitHub",
      "targets" : [
        "GitHub"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GitHubTests",
      "module_type" : "SwiftTarget",
      "name" : "GitHubTests",
      "path" : "Tests/GitHubTests",
      "sources" : [
        "GitHubTests.swift"
      ],
      "target_dependencies" : [
        "GitHub"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GitHub",
      "module_type" : "SwiftTarget",
      "name" : "GitHub",
      "path" : "Sources/GitHub",
      "product_memberships" : [
        "GitHub"
      ],
      "sources" : [
        "Client.swift",
        "GitHub.swift",
        "GitHubError.swift",
        "Models.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.