This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Chandlerdea/HTTPKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/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 |
[4/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))
[5/13] Compiling HTTPKit HTTPRequestBuilder.swift
[6/13] Compiling HTTPKit HTTPContentType.swift
[7/13] Compiling HTTPKit HTTPHeader.swift
[8/13] Compiling HTTPKit HTTPModelController.swift
[9/13] Compiling HTTPKit HTTPMethod.swift
[10/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 |
[11/13] Compiling HTTPKit HTTPCacheControl.swift
[12/13] Compiling HTTPKit HTTP.swift
[13/13] Compiling HTTPKit URLRequest+additions.swift
Build complete! (22.75s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.