Build Information
Successful build of SimpleCoders with Swift 6.0 for Linux.
Swift 6 data race errors: 4
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/dankinsoid/SimpleCoders.git
Reference: main
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/dankinsoid/SimpleCoders
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2561ced generic
Cloned https://github.com/dankinsoid/SimpleCoders.git
Revision (git rev-parse @):
2561ced891e8cef1a47c66c9b2b39f73c4b1a2ef
SUCCESS checkout https://github.com/dankinsoid/SimpleCoders.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/dankinsoid/SimpleCoders.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/18] Emitting module SimpleCoders
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:242:13: warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
| `- warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
243 | let formatter = ISO8601DateFormatter()
244 | formatter.formatOptions = .withInternetDateTime
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.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 | public typealias DateDecodingStrategy = DecodingStrategy<Date>
:
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
| |- note: annotate '_iso8601Formatter' 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
243 | let formatter = ISO8601DateFormatter()
244 | formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:248:13: warning: let 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
246 | }()
247 |
248 | private let dateFormatter: DateFormatter = {
| |- warning: let 'dateFormatter' 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 'dateFormatter' 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
249 | let formatter = DateFormatter()
250 | formatter.timeZone = .autoupdatingCurrent
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/SimpleCoders/StringKey.swift:7:16: warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct StringKey<Value: LosslessStringConvertible>: CodingKey {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
4 |
5 | public var stringValue: String { value.description }
6 | public var intValue: Int? { Int(value.description) }
7 | public var value: Value
| `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
8 |
9 | public init?(stringValue: String) {
/host/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/CodableTypes.swift:5:23: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct TypeInfo {
| `- note: consider making struct 'TypeInfo' conform to the 'Sendable' protocol
4 |
5 | public static let any = TypeInfo(type: Any.self, container: .single(.null))
| |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'any' 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
6 |
7 | public var type: Any.Type
[4/20] Compiling SimpleCoders CodableTypes.swift
/host/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/CodableTypes.swift:5:23: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct TypeInfo {
| `- note: consider making struct 'TypeInfo' conform to the 'Sendable' protocol
4 |
5 | public static let any = TypeInfo(type: Any.self, container: .single(.null))
| |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'any' 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
6 |
7 | public var type: Any.Type
[5/20] Compiling SimpleCoders TypeRevision.swift
/host/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/CodableTypes.swift:5:23: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct TypeInfo {
| `- note: consider making struct 'TypeInfo' conform to the 'Sendable' protocol
4 |
5 | public static let any = TypeInfo(type: Any.self, container: .single(.null))
| |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'any' 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
6 |
7 | public var type: Any.Type
[6/20] Compiling SimpleCoders CheckAllKeysDecoder.swift
[7/20] Compiling SimpleCoders Ref.swift
[8/20] Compiling SimpleCoders CodableProtocols.swift
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:242:13: warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
| `- warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
243 | let formatter = ISO8601DateFormatter()
244 | formatter.formatOptions = .withInternetDateTime
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.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 | public typealias DateDecodingStrategy = DecodingStrategy<Date>
:
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
| |- note: annotate '_iso8601Formatter' 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
243 | let formatter = ISO8601DateFormatter()
244 | formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:248:13: warning: let 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
246 | }()
247 |
248 | private let dateFormatter: DateFormatter = {
| |- warning: let 'dateFormatter' 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 'dateFormatter' 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
249 | let formatter = DateFormatter()
250 | formatter.timeZone = .autoupdatingCurrent
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)
[9/20] Compiling SimpleCoders DateCodingStrategies.swift
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:242:13: warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
| `- warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
243 | let formatter = ISO8601DateFormatter()
244 | formatter.formatOptions = .withInternetDateTime
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.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 | public typealias DateDecodingStrategy = DecodingStrategy<Date>
:
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
| |- note: annotate '_iso8601Formatter' 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
243 | let formatter = ISO8601DateFormatter()
244 | formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:248:13: warning: let 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
246 | }()
247 |
248 | private let dateFormatter: DateFormatter = {
| |- warning: let 'dateFormatter' 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 'dateFormatter' 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
249 | let formatter = DateFormatter()
250 | formatter.timeZone = .autoupdatingCurrent
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)
[10/20] Compiling SimpleCoders KeyCodingStrategies.swift
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:242:13: warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
| `- warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
243 | let formatter = ISO8601DateFormatter()
244 | formatter.formatOptions = .withInternetDateTime
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.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 | public typealias DateDecodingStrategy = DecodingStrategy<Date>
:
240 |
241 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
242 | private let _iso8601Formatter: ISO8601DateFormatter = {
| |- note: annotate '_iso8601Formatter' 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
243 | let formatter = ISO8601DateFormatter()
244 | formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Sources/SimpleCoders/CodingStrategies/DateCodingStrategies.swift:248:13: warning: let 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
246 | }()
247 |
248 | private let dateFormatter: DateFormatter = {
| |- warning: let 'dateFormatter' 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 'dateFormatter' 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
249 | let formatter = DateFormatter()
250 | formatter.timeZone = .autoupdatingCurrent
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)
[11/20] Compiling SimpleCoders TypeRevisionDecoder.swift
/host/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/CodableTypes.swift:5:23: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct TypeInfo {
| `- note: consider making struct 'TypeInfo' conform to the 'Sendable' protocol
4 |
5 | public static let any = TypeInfo(type: Any.self, container: .single(.null))
| |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'any' 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
6 |
7 | public var type: Any.Type
[12/20] Compiling SimpleCoders TypeRevisionEncoder.swift
/host/spi-builder-workspace/Sources/SimpleCoders/TypeRevision/CodableTypes.swift:5:23: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct TypeInfo {
| `- note: consider making struct 'TypeInfo' conform to the 'Sendable' protocol
4 |
5 | public static let any = TypeInfo(type: Any.self, container: .single(.null))
| |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'TypeInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'any' 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
6 |
7 | public var type: Any.Type
[13/20] Compiling SimpleCoders OrderedDictionary.swift
[14/20] Compiling SimpleCoders StringConvertibleHintProvider.swift
[15/20] Compiling SimpleCoders PlainCodingKey.swift
/host/spi-builder-workspace/Sources/SimpleCoders/StringKey.swift:7:16: warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct StringKey<Value: LosslessStringConvertible>: CodingKey {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
4 |
5 | public var stringValue: String { value.description }
6 | public var intValue: Int? { Int(value.description) }
7 | public var value: Value
| `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
8 |
9 | public init?(stringValue: String) {
[16/20] Compiling SimpleCoders StringKey.swift
/host/spi-builder-workspace/Sources/SimpleCoders/StringKey.swift:7:16: warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct StringKey<Value: LosslessStringConvertible>: CodingKey {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
4 |
5 | public var stringValue: String { value.description }
6 | public var intValue: Int? { Int(value.description) }
7 | public var value: Value
| `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'StringKey' has non-sendable type 'Value'; this is an error in the Swift 6 language mode
8 |
9 | public init?(stringValue: String) {
[17/20] Compiling SimpleCoders EncodingBoxer.swift
[18/20] Compiling SimpleCoders IntKey.swift
[19/20] Compiling SimpleCoders CodingStrategy.swift
[20/20] Compiling SimpleCoders DecodingUnboxer.swift
Build complete! (15.85s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SimpleCoders",
"name" : "SimpleCoders",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SimpleCoders",
"targets" : [
"SimpleCoders"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SimpleCoders",
"module_type" : "SwiftTarget",
"name" : "SimpleCoders",
"path" : "Sources/SimpleCoders",
"product_memberships" : [
"SimpleCoders"
],
"sources" : [
"CodableProtocols.swift",
"CodingStrategies/DateCodingStrategies.swift",
"CodingStrategies/KeyCodingStrategies.swift",
"CodingStrategy.swift",
"DecodingUnboxer.swift",
"EncodingBoxer.swift",
"IntKey.swift",
"OrderedDictionary/OrderedDictionary.swift",
"OrderedDictionary/StringConvertibleHintProvider.swift",
"PlainCodingKey.swift",
"StringKey.swift",
"TypeRevision/CodableTypes.swift",
"TypeRevision/TypeRevision.swift",
"TypeRevision/TypeRevisionDecoder.swift",
"TypeRevision/TypeRevisionEncoder.swift",
"Utils/CheckAllKeysDecoder.swift",
"Utils/Ref.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.