Build Information
Successful build of Http with Swift 6.0 for Linux.
Swift 6 data race errors: 3
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
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: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Balancingrock/Http.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/Balancingrock/Ascii
[1/99] Fetching ascii
Fetched https://github.com/Balancingrock/Ascii from cache (0.22s)
Computing version for https://github.com/Balancingrock/Ascii
Computed https://github.com/Balancingrock/Ascii at 1.5.2 (0.53s)
Creating working copy for https://github.com/Balancingrock/Ascii
Working copy of https://github.com/Balancingrock/Ascii resolved at 1.5.2
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Emitting module Ascii
[5/5] Compiling Ascii Ascii.swift
[7/13] Compiling Http Version.swift
/host/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/13] Compiling Http Request.swift
/host/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 |
/host/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 |
[9/13] Compiling Http Http.swift
[10/13] Compiling Http Cookie.swift
/host/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 |
[11/13] Emitting module Http
/host/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 |
/host/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 |
/host/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 |
[12/13] Compiling Http Host.swift
[13/13] Compiling Http Response.swift
Build complete! (15.31s)
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" : "/host/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.