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 HTTPKit, reference master (99a50c), with Swift 6.0 for macOS (SPM) on 9 Oct 2024 02:04:10 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Chandlerdea/HTTPKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Chandlerdea/HTTPKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 99a50c6 Adding convenince methods to URLRequest
Cloned https://github.com/Chandlerdea/HTTPKit.git
Revision (git rev-parse @):
99a50c6d6792b4cb1615e3d1a8658a1c88d257d6
SUCCESS checkout https://github.com/Chandlerdea/HTTPKit.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": "httpkit",
      "name": "HTTPKit",
      "url": "https://github.com/Chandlerdea/HTTPKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HTTPKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Chandlerdea/HTTPKit.git
[4/394] Fetching httpkit
Fetched https://github.com/Chandlerdea/HTTPKit.git from cache (0.77s)
Creating working copy for https://github.com/Chandlerdea/HTTPKit.git
Working copy of https://github.com/Chandlerdea/HTTPKit.git resolved at master (99a50c6)
warning: '.resolve-product-dependencies': dependency 'httpkit' 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/Chandlerdea/HTTPKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.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--4A847ED0836F2485.txt
[3/12] Compiling HTTPKit HTTPRequestBuilder.swift
[4/12] Compiling HTTPKit HTTPResponseStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPKit/HTTPResponseStatus.swift:95:14: warning: associated value 'unexpectedStatus' of 'Sendable'-conforming enum 'BadResponseStatusError' has non-sendable type 'HTTP.ResponseStatus'; this is an error in the Swift 6 language mode
 11 | extension HTTP {
 12 |
 13 |     public enum ResponseStatus: Equatable {
    |                 `- note: consider making enum 'ResponseStatus' conform to the 'Sendable' protocol
 14 |
 15 |         case ok
    :
 93 |     public enum BadResponseStatusError: Error, CustomStringConvertible {
 94 |
 95 |         case unexpectedStatus(ResponseStatus)
    |              `- warning: associated value 'unexpectedStatus' of 'Sendable'-conforming enum 'BadResponseStatusError' has non-sendable type 'HTTP.ResponseStatus'; this is an error in the Swift 6 language mode
 96 |         case unknownResponseCode
 97 |
[5/13] Compiling HTTPKit HTTPModelController.swift
[6/13] Compiling HTTPKit HTTPHeader.swift
[7/13] Compiling HTTPKit HTTPMethod.swift
[8/13] Compiling HTTPKit HTTPContentType.swift
[9/13] Compiling HTTPKit HTTPCacheControl.swift
[10/13] Compiling HTTPKit HTTP.swift
[11/13] Emitting module HTTPKit
/Users/admin/builder/spi-builder-workspace/Sources/HTTPKit/HTTPResponseStatus.swift:95:14: warning: associated value 'unexpectedStatus' of 'Sendable'-conforming enum 'BadResponseStatusError' has non-sendable type 'HTTP.ResponseStatus'; this is an error in the Swift 6 language mode
 11 | extension HTTP {
 12 |
 13 |     public enum ResponseStatus: Equatable {
    |                 `- note: consider making enum 'ResponseStatus' conform to the 'Sendable' protocol
 14 |
 15 |         case ok
    :
 93 |     public enum BadResponseStatusError: Error, CustomStringConvertible {
 94 |
 95 |         case unexpectedStatus(ResponseStatus)
    |              `- warning: associated value 'unexpectedStatus' of 'Sendable'-conforming enum 'BadResponseStatusError' has non-sendable type 'HTTP.ResponseStatus'; this is an error in the Swift 6 language mode
 96 |         case unknownResponseCode
 97 |
[12/13] Compiling HTTPKit HTTPNetworkController.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/HTTPKit/HTTPNetworkController.swift:93:47: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 91 |     ) {
 92 |         let task: URLSessionTask = session.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
 93 |             let result: Result<Data, Error> = self.handleCompletion(request, data, response, error)
    |                                               `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 |             switch result {
 95 |             case .success(let data):
/Users/admin/builder/spi-builder-workspace/Sources/HTTPKit/HTTPNetworkController.swift:99:21: warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |                 do {
 98 |                     let object: T = try decoder.decode(T.self, from: data)
 99 |                     completion(.success(object))
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<T, 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'
100 |                 } catch {
101 |                     completion(.failure(HTTP.ResponseContentError.failureDecodingResponse))
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/HTTPKit/HTTPNetworkController.swift:116:47: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |     ) {
115 |         let task: URLSessionTask = session.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
116 |             let result: Result<Data, Error> = self.handleCompletion(request, data, response, error)
    |                                               `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |             switch result {
118 |             case .success:
/Users/admin/builder/spi-builder-workspace/Sources/HTTPKit/HTTPNetworkController.swift:119:17: warning: capture of 'completion' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |             switch result {
118 |             case .success:
119 |                 completion(.success(()))
    |                 |- warning: capture of 'completion' with non-sendable type '(Result<Void, 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'
120 |             case .failure(let error):
121 |                 completion(.failure(error))
[13/13] Compiling HTTPKit URLRequest+additions.swift
Build complete! (14.68s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "HTTPKit",
  "name" : "HTTPKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "HTTPKit",
      "targets" : [
        "HTTPKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HTTPKitTests",
      "module_type" : "SwiftTarget",
      "name" : "HTTPKitTests",
      "path" : "Tests/HTTPKitTests",
      "sources" : [
        "HTTPHeaderTests.swift",
        "HTTPMethodTests.swift",
        "HTTPModelControllerTests.swift",
        "HTTPNetworkControllerTests.swift",
        "HTTPRequestBuilderTests.swift",
        "HTTPResponseStatusTests.swift",
        "MockNetworkTestable.swift",
        "MockURLProtocol.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "HTTPKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HTTPKit",
      "module_type" : "SwiftTarget",
      "name" : "HTTPKit",
      "path" : "Sources/HTTPKit",
      "product_memberships" : [
        "HTTPKit"
      ],
      "sources" : [
        "HTTP.swift",
        "HTTPCacheControl.swift",
        "HTTPContentType.swift",
        "HTTPHeader.swift",
        "HTTPMethod.swift",
        "HTTPModelController.swift",
        "HTTPNetworkController.swift",
        "HTTPRequestBuilder.swift",
        "HTTPResponseStatus.swift",
        "URLRequest+additions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.