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 HTTPClientModule, reference main (cc6983), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 05:09:51 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftui-packages/http-client-module.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swiftui-packages/http-client-module
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cc69838 initial commit 🚀
Cloned https://github.com/swiftui-packages/http-client-module.git
Revision (git rev-parse @):
cc69838ebff5a1e7f6d6c0168592277091311395
SUCCESS checkout https://github.com/swiftui-packages/http-client-module.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": "http-client-module",
      "name": "HTTPClientModule",
      "url": "https://github.com/swiftui-packages/http-client-module.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/http-client-module",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/swiftui-packages/http-client-module.git
[1/21] Fetching http-client-module
Fetched https://github.com/swiftui-packages/http-client-module.git from cache (0.65s)
Creating working copy for https://github.com/swiftui-packages/http-client-module.git
Working copy of https://github.com/swiftui-packages/http-client-module.git resolved at main (cc69838)
warning: '.resolve-product-dependencies': dependency 'http-client-module' 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/swiftui-packages/http-client-module.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling HTTPClientModule response-statuses.swift
[4/7] Compiling HTTPClientModule http-methods.swift
[5/7] Compiling HTTPClientModule HTTPClientModule.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientModule/HTTPClientModule.swift:308:21: warning: capture of 'response' with non-sendable type '((status: HTTPClient.ResponseStatus, body: Data)) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
306 |
307 |                 if let error = error as? URLError, error.errorCode == -1009 {
308 |                     response((ResponseStatus.noInternetConnection, Data()))
    |                     |- warning: capture of 'response' with non-sendable type '((status: HTTPClient.ResponseStatus, body: Data)) -> 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'
309 |                 } else if let responseHeader = responseHeader as? HTTPURLResponse, let responseBody = responseBody {
310 |                     response((
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientModule/HTTPClientModule.swift:328:17: warning: capture of 'afterResponse' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
326 |                 }
327 |
328 |                 afterResponse()
    |                 |- warning: capture of 'afterResponse' with non-sendable type '() -> 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'
329 |
330 |             }
[6/7] Emitting module HTTPClientModule
[7/7] Compiling HTTPClientModule form-data-extension.swift
Build complete! (11.47s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "HTTPClientModule",
  "name" : "HTTPClientModule",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "HTTPClientModule",
      "targets" : [
        "HTTPClientModule"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HTTPClientModuleTests",
      "module_type" : "SwiftTarget",
      "name" : "HTTPClientModuleTests",
      "path" : "Tests/HTTPClientModuleTests",
      "sources" : [
        "HTTPClientModuleTests.swift"
      ],
      "target_dependencies" : [
        "HTTPClientModule"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HTTPClientModule",
      "module_type" : "SwiftTarget",
      "name" : "HTTPClientModule",
      "path" : "Sources/HTTPClientModule",
      "product_memberships" : [
        "HTTPClientModule"
      ],
      "sources" : [
        "HTTPClientModule.swift",
        "form-data-extension.swift",
        "http-methods.swift",
        "response-statuses.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.