Build Information
Successful build of swift-talk-shared with Swift 6.0 for Linux.
Swift 6 data race errors: 6
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/objcio/swift-talk-shared.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/objcio/swift-talk-shared
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0238161 sessionid.
Cloned https://github.com/objcio/swift-talk-shared.git
Revision (git rev-parse @):
0238161c1bf1a3db01c6d51b801e6d02656199b4
SUCCESS checkout https://github.com/objcio/swift-talk-shared.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/objcio/swift-talk-shared.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/objcio/tiny-networking
[1/295] Fetching tiny-networking
Fetched https://github.com/objcio/tiny-networking from cache (0.23s)
Computing version for https://github.com/objcio/tiny-networking
Computed https://github.com/objcio/tiny-networking at 0.5.0 (0.51s)
Creating working copy for https://github.com/objcio/tiny-networking
Working copy of https://github.com/objcio/tiny-networking resolved at 0.5.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/8] Emitting module ViewHelpers
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:10:23: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | extension DateFormatter {
10 | static public let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
11 | let dateFormatter = DateFormatter()
12 | dateFormatter.locale = Locale(identifier: "en_US_POSIX")
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | extension Int {
:
8 |
9 | extension DateFormatter {
10 | static public let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
11 | let dateFormatter = DateFormatter()
12 | dateFormatter.locale = Locale(identifier: "en_US_POSIX")
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:57:23: warning: static property 'withYear' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | static public let withYear = DateFormatter(format: "MMM dd yyyy")
| |- warning: static property 'withYear' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withYear' 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
58 |
59 | /// e.g. "November 23, 2018"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:60:23: warning: static property 'fullPretty' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// e.g. "November 23, 2018"
60 | static public let fullPretty = DateFormatter(format: "MMMM dd, yyyy")
| |- warning: static property 'fullPretty' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fullPretty' 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
61 | static public let withoutYear = DateFormatter(format: "MMM dd")
62 | }
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:61:23: warning: static property 'withoutYear' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
59 | /// e.g. "November 23, 2018"
60 | static public let fullPretty = DateFormatter(format: "MMMM dd, yyyy")
61 | static public let withoutYear = DateFormatter(format: "MMM dd")
| |- warning: static property 'withoutYear' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withoutYear' 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
62 | }
63 |
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
[6/8] Compiling ViewHelpers ViewHelpers.swift
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:10:23: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | extension DateFormatter {
10 | static public let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
11 | let dateFormatter = DateFormatter()
12 | dateFormatter.locale = Locale(identifier: "en_US_POSIX")
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | extension Int {
:
8 |
9 | extension DateFormatter {
10 | static public let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' 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
11 | let dateFormatter = DateFormatter()
12 | dateFormatter.locale = Locale(identifier: "en_US_POSIX")
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:57:23: warning: static property 'withYear' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | static public let withYear = DateFormatter(format: "MMM dd yyyy")
| |- warning: static property 'withYear' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withYear' 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
58 |
59 | /// e.g. "November 23, 2018"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:60:23: warning: static property 'fullPretty' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// e.g. "November 23, 2018"
60 | static public let fullPretty = DateFormatter(format: "MMMM dd, yyyy")
| |- warning: static property 'fullPretty' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fullPretty' 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
61 | static public let withoutYear = DateFormatter(format: "MMM dd")
62 | }
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/ViewHelpers/ViewHelpers.swift:61:23: warning: static property 'withoutYear' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
59 | /// e.g. "November 23, 2018"
60 | static public let fullPretty = DateFormatter(format: "MMMM dd, yyyy")
61 | static public let withoutYear = DateFormatter(format: "MMM dd")
| |- warning: static property 'withoutYear' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withoutYear' 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
62 | }
63 |
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
[8/9] Emitting module TinyNetworking
[9/9] Compiling TinyNetworking Endpoint.swift
[11/12] Compiling Model Model.swift
/host/spi-builder-workspace/Sources/Model/Model.swift:4:12: warning: let 'encoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import TinyNetworking
3 |
4 | public let encoder: JSONEncoder = {
| `- warning: let 'encoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 | let r = JSONEncoder()
6 | r.dateEncodingStrategy = .secondsSince1970
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
/host/spi-builder-workspace/Sources/Model/Model.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | import TinyNetworking
3 |
4 | public let encoder: JSONEncoder = {
| |- note: annotate 'encoder' 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
5 | let r = JSONEncoder()
6 | r.dateEncodingStrategy = .secondsSince1970
/host/spi-builder-workspace/Sources/Model/Model.swift:10:12: warning: let 'decoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | }()
9 |
10 | public let decoder: JSONDecoder = {
| |- warning: let 'decoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoder' 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
11 | let r = JSONDecoder()
12 | r.dateDecodingStrategy = .secondsSince1970
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
[12/12] Emitting module Model
/host/spi-builder-workspace/Sources/Model/Model.swift:4:12: warning: let 'encoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import TinyNetworking
3 |
4 | public let encoder: JSONEncoder = {
| `- warning: let 'encoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
5 | let r = JSONEncoder()
6 | r.dateEncodingStrategy = .secondsSince1970
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
1 | open class JSONEncoder {
| `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
2 | public struct OutputFormatting : OptionSet {
3 | public let rawValue: UInt
/host/spi-builder-workspace/Sources/Model/Model.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 | import TinyNetworking
3 |
4 | public let encoder: JSONEncoder = {
| |- note: annotate 'encoder' 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
5 | let r = JSONEncoder()
6 | r.dateEncodingStrategy = .secondsSince1970
/host/spi-builder-workspace/Sources/Model/Model.swift:10:12: warning: let 'decoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
8 | }()
9 |
10 | public let decoder: JSONDecoder = {
| |- warning: let 'decoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoder' 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
11 | let r = JSONDecoder()
12 | r.dateDecodingStrategy = .secondsSince1970
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
| `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
2 | public enum DateDecodingStrategy {
3 | case deferredToDate
Build complete! (14.22s)
Build complete.
{
"dependencies" : [
{
"identity" : "tiny-networking",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/objcio/tiny-networking"
}
],
"manifest_display_name" : "swift-talk-shared",
"name" : "swift-talk-shared",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Model",
"targets" : [
"Model"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ViewHelpers",
"targets" : [
"ViewHelpers"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "swift_talk_sharedTests",
"module_type" : "SwiftTarget",
"name" : "swift-talk-sharedTests",
"path" : "Tests/swift-talk-sharedTests",
"sources" : [
"XCTestManifests.swift",
"swift_talk_sharedTests.swift"
],
"type" : "test"
},
{
"c99name" : "ViewHelpers",
"module_type" : "SwiftTarget",
"name" : "ViewHelpers",
"path" : "Sources/ViewHelpers",
"product_memberships" : [
"ViewHelpers"
],
"sources" : [
"ViewHelpers.swift"
],
"type" : "library"
},
{
"c99name" : "Model",
"module_type" : "SwiftTarget",
"name" : "Model",
"path" : "Sources/Model",
"product_dependencies" : [
"TinyNetworking"
],
"product_memberships" : [
"Model"
],
"sources" : [
"Model.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.