Build Information
Successful build of HttpRequest, reference 0.1.5 (e82b07
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 21:16:19 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/mezhevikin/http-request.git
Reference: 0.1.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mezhevikin/http-request
* tag 0.1.5 -> FETCH_HEAD
HEAD is now at e82b076 Migrate to swift 5.7
Cloned https://github.com/mezhevikin/http-request.git
Revision (git rev-parse @):
e82b076537b98191689a3956178f1eb064b6b7a6
SUCCESS checkout https://github.com/mezhevikin/http-request.git at 0.1.5
========================================
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-request",
"name": "HttpRequest",
"url": "https://github.com/mezhevikin/http-request.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/http-request",
"dependencies": [
]
}
]
}
Fetching https://github.com/mezhevikin/http-request.git
[1/78] Fetching http-request
Fetched https://github.com/mezhevikin/http-request.git from cache (0.68s)
Creating working copy for https://github.com/mezhevikin/http-request.git
Working copy of https://github.com/mezhevikin/http-request.git resolved at 0.1.5 (e82b076)
warning: '.resolve-product-dependencies': dependency 'http-request' 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/mezhevikin/http-request.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/4] Emitting module HttpRequest
[4/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 | }
Build complete! (5.80s)
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.