Build Information
Successful build of Http with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 3
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/Balancingrock/Http.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Balancingrock/Http
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 9b48591 Added swift version, platforms and a LICENSE file
Cloned https://github.com/Balancingrock/Http.git
Revision (git rev-parse @):
9b48591b4fe9b7841ee427c29f8df8611107b2c2
SUCCESS checkout https://github.com/Balancingrock/Http.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Balancingrock/Http.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/5] Emitting module Ascii
[5/5] Compiling Ascii Ascii.swift
[6/12] Compiling Http Response.swift
[7/12] Compiling Http Version.swift
/Users/admin/builder/spi-builder-workspace/Sources/Http/Version.swift:63:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
41 | /// This enum encodes the different versions of the HTTP protocol
42 |
43 | public enum Version: String {
| `- note: consider making enum 'Version' conform to the 'Sendable' protocol
44 |
45 |
:
61 | /// If operations are added, be sure to include them in "all".
62 |
63 | public static let all: Array<Version> = [.http1_0, .http1_1, .http1_x]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[8/12] Compiling Http Host.swift
[9/12] Compiling Http Http.swift
[10/12] Emitting module Http
/Users/admin/builder/spi-builder-workspace/Sources/Http/Cookie.swift:56:24: warning: static property 'noCookies' is not concurrency-safe because non-'Sendable' type 'Cookie.Cookies' (aka 'Array<Cookie>') may have shared mutable state; this is an error in the Swift 6 language mode
44 | /// The request cookies consist of a name and value only. The response cookies can have attributes.
45 |
46 | public final class Cookie: CustomStringConvertible {
| `- note: class 'Cookie' does not conform to the 'Sendable' protocol
47 |
48 |
:
54 | // Used when no cookies are present
55 |
56 | private static let noCookies = Cookies()
| |- warning: static property 'noCookies' is not concurrency-safe because non-'Sendable' type 'Cookie.Cookies' (aka 'Array<Cookie>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noCookies' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 |
/Users/admin/builder/spi-builder-workspace/Sources/Http/Request.swift:95:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Request.Method>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | /// The available methods.
54 |
55 | public enum Method: String {
| `- note: consider making enum 'Method' conform to the 'Sendable' protocol
56 |
57 |
:
93 | /// If operations are added, be sure to include them in "allValues".
94 |
95 | public static let all: Array<Method> = [.get, .head, .post, .put, .delete, .trace, .connect]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Request.Method>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Http/Version.swift:63:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
41 | /// This enum encodes the different versions of the HTTP protocol
42 |
43 | public enum Version: String {
| `- note: consider making enum 'Version' conform to the 'Sendable' protocol
44 |
45 |
:
61 | /// If operations are added, be sure to include them in "all".
62 |
63 | public static let all: Array<Version> = [.http1_0, .http1_1, .http1_x]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[11/12] Compiling Http Cookie.swift
/Users/admin/builder/spi-builder-workspace/Sources/Http/Cookie.swift:56:24: warning: static property 'noCookies' is not concurrency-safe because non-'Sendable' type 'Cookie.Cookies' (aka 'Array<Cookie>') may have shared mutable state; this is an error in the Swift 6 language mode
44 | /// The request cookies consist of a name and value only. The response cookies can have attributes.
45 |
46 | public final class Cookie: CustomStringConvertible {
| `- note: class 'Cookie' does not conform to the 'Sendable' protocol
47 |
48 |
:
54 | // Used when no cookies are present
55 |
56 | private static let noCookies = Cookies()
| |- warning: static property 'noCookies' is not concurrency-safe because non-'Sendable' type 'Cookie.Cookies' (aka 'Array<Cookie>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noCookies' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 |
[12/12] Compiling Http Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/Http/Request.swift:95:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Request.Method>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | /// The available methods.
54 |
55 | public enum Method: String {
| `- note: consider making enum 'Method' conform to the 'Sendable' protocol
56 |
57 |
:
93 | /// If operations are added, be sure to include them in "allValues".
94 |
95 | public static let all: Array<Method> = [.get, .head, .post, .put, .delete, .trace, .connect]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Request.Method>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Http/Version.swift:63:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
41 | /// This enum encodes the different versions of the HTTP protocol
42 |
43 | public enum Version: String {
| `- note: consider making enum 'Version' conform to the 'Sendable' protocol
44 |
45 |
:
61 | /// If operations are added, be sure to include them in "all".
62 |
63 | public static let all: Array<Version> = [.http1_0, .http1_1, .http1_x]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Array<Version>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
Build complete! (20.90s)
Fetching https://github.com/Balancingrock/Ascii
[1/99] Fetching ascii
Fetched https://github.com/Balancingrock/Ascii from cache (0.73s)
Computing version for https://github.com/Balancingrock/Ascii
Computed https://github.com/Balancingrock/Ascii at 1.5.2 (0.66s)
Creating working copy for https://github.com/Balancingrock/Ascii
Working copy of https://github.com/Balancingrock/Ascii resolved at 1.5.2
Build complete.
{
"dependencies" : [
{
"identity" : "ascii",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Balancingrock/Ascii"
}
],
"manifest_display_name" : "Http",
"name" : "Http",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "8.0"
}
],
"products" : [
{
"name" : "Http",
"targets" : [
"Http"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"4.2",
"5"
],
"targets" : [
{
"c99name" : "Http",
"module_type" : "SwiftTarget",
"name" : "Http",
"path" : "Sources/Http",
"product_dependencies" : [
"Ascii"
],
"product_memberships" : [
"Http"
],
"sources" : [
"Cookie.swift",
"Host.swift",
"Http.swift",
"Request.swift",
"Response.swift",
"Version.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.