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

Swift 6 data race errors: 0

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/mezhevikin/http-request.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mezhevikin/http-request
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 40a3808 Add links to README
Cloned https://github.com/mezhevikin/http-request.git
Revision (git rev-parse @):
40a38089750e938d3fc223c53954c9f93f16b261
SUCCESS checkout https://github.com/mezhevikin/http-request.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/mezhevikin/http-request.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/4] Compiling HttpRequest HttpRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:32:13: warning: capture of 'completion' with non-sendable type '(HttpResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |             response.data = data
31 |             response.error = error
32 |             completion(response)
   |             |- warning: capture of 'completion' with non-sendable type '(HttpResponse) -> 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'
33 |         }.resume()
34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:17: warning: capture of 'completion' with non-sendable type '(T?, HttpResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 |             }
49 |             DispatchQueue.main.async {
50 |                 completion(json, response)
   |                 |- warning: capture of 'completion' with non-sendable type '(T?, HttpResponse) -> 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'
51 |             }
52 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:28: warning: capture of 'json' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     func json<T>(
   |               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
37 |         _ type: T.Type,
38 |         completion: @escaping ((T?, HttpResponse) -> Void)
   :
48 |             }
49 |             DispatchQueue.main.async {
50 |                 completion(json, response)
   |                            `- warning: capture of 'json' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 |             }
52 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:34: warning: capture of 'response' with non-sendable type 'HttpResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 |             }
49 |             DispatchQueue.main.async {
50 |                 completion(json, response)
   |                                  `- warning: capture of 'response' with non-sendable type 'HttpResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 |             }
52 |         }
   :
54 | }
55 |
56 | public class HttpResponse {
   |              `- note: class 'HttpResponse' does not conform to the 'Sendable' protocol
57 |     public var original: HTTPURLResponse?
58 |     public var data: Data?
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:28: warning: reference to captured var 'json' in concurrently-executing code; this is an error in the Swift 6 language mode
48 |             }
49 |             DispatchQueue.main.async {
50 |                 completion(json, response)
   |                            `- warning: reference to captured var 'json' in concurrently-executing code; this is an error in the Swift 6 language mode
51 |             }
52 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
48 |             }
49 |             DispatchQueue.main.async {
50 |                 completion(json, response)
   |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
51 |             }
52 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:34: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
48 |             }
49 |             DispatchQueue.main.async {
50 |                 completion(json, response)
   |                                  |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
   |                                  `- note: task-isolated 'response' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
51 |             }
52 |         }
[4/4] Emitting module HttpRequest
Build complete! (16.21s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "HttpRequest",
  "name" : "HttpRequest",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "HttpRequest",
      "targets" : [
        "HttpRequest"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HttpRequestTests",
      "module_type" : "SwiftTarget",
      "name" : "HttpRequestTests",
      "path" : "Tests/HttpRequestTests",
      "sources" : [
        "HttpRequestTests.swift"
      ],
      "target_dependencies" : [
        "HttpRequest"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HttpRequest",
      "module_type" : "SwiftTarget",
      "name" : "HttpRequest",
      "path" : "Sources/HttpRequest",
      "product_memberships" : [
        "HttpRequest"
      ],
      "sources" : [
        "HttpRequest.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.