Build Information
Successful build of FHExtensions with Swift 6.0 for Linux.
Swift 6 data race errors: 2
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/FelixHerrmann/FHExtensions.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/FelixHerrmann/FHExtensions
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 1ae77c2 fixed tvOS build step names
Cloned https://github.com/FelixHerrmann/FHExtensions.git
Revision (git rev-parse @):
1ae77c2f9c5ff4045995e137920a6328a245c4e7
SUCCESS checkout https://github.com/FelixHerrmann/FHExtensions.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/FelixHerrmann/FHExtensions.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/13] Compiling FHExtensions UIColor.swift
[4/13] Compiling FHExtensions UIDevice.swift
[5/14] Compiling FHExtensions UIDirectionalPanGestureRecognizer.swift
[6/14] Compiling FHExtensions JSONEncoder.swift
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONEncoder.swift:7:23: warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONEncoder.DateEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// The strategy that formats dates according to the ISO 8601 and RFC 3339 standards with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { date, encoder in
| `- warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONEncoder.DateEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = ISO8601DateFormatter()
9 | formatter.formatOptions = [.withFractionalSeconds, .withInternetDateTime]
Foundation.JSONEncoder:13:17: note: enum 'DateEncodingStrategy' does not conform to the 'Sendable' protocol
11 | public typealias RawValue = UInt
12 | }
13 | public enum DateEncodingStrategy {
| `- note: enum 'DateEncodingStrategy' does not conform to the 'Sendable' protocol
14 | case deferredToDate
15 | case secondsSince1970
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONEncoder.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 JSONEncoder.DateEncodingStrategy {
:
5 | /// The strategy that formats dates according to the ISO 8601 and RFC 3339 standards with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { date, encoder in
| |- note: annotate 'iso8601withFractionalSeconds' 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
8 | let formatter = ISO8601DateFormatter()
9 | formatter.formatOptions = [.withFractionalSeconds, .withInternetDateTime]
[7/14] Compiling FHExtensions String.swift
[8/14] Compiling FHExtensions Array.swift
[9/14] Compiling FHExtensions Bundle.swift
[10/14] Compiling FHExtensions NSColor.swift
[11/14] Compiling FHExtensions CGRect.swift
[12/14] Emitting module FHExtensions
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONDecoder.swift:7:23: warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// The strategy that formats dates according to the ISO 8601 standard with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { decoder -> Date in
| `- warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let container = try decoder.singleValueContainer()
9 | let dateString = try container.decode(String.self)
Foundation.JSONDecoder:2:17: note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
2 | public enum DateDecodingStrategy {
| `- note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
3 | case deferredToDate
4 | case secondsSince1970
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONDecoder.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 JSONDecoder.DateDecodingStrategy {
:
5 | /// The strategy that formats dates according to the ISO 8601 standard with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { decoder -> Date in
| |- note: annotate 'iso8601withFractionalSeconds' 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
8 | let container = try decoder.singleValueContainer()
9 | let dateString = try container.decode(String.self)
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONEncoder.swift:7:23: warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONEncoder.DateEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// The strategy that formats dates according to the ISO 8601 and RFC 3339 standards with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { date, encoder in
| `- warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONEncoder.DateEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let formatter = ISO8601DateFormatter()
9 | formatter.formatOptions = [.withFractionalSeconds, .withInternetDateTime]
Foundation.JSONEncoder:13:17: note: enum 'DateEncodingStrategy' does not conform to the 'Sendable' protocol
11 | public typealias RawValue = UInt
12 | }
13 | public enum DateEncodingStrategy {
| `- note: enum 'DateEncodingStrategy' does not conform to the 'Sendable' protocol
14 | case deferredToDate
15 | case secondsSince1970
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONEncoder.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 JSONEncoder.DateEncodingStrategy {
:
5 | /// The strategy that formats dates according to the ISO 8601 and RFC 3339 standards with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { date, encoder in
| |- note: annotate 'iso8601withFractionalSeconds' 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
8 | let formatter = ISO8601DateFormatter()
9 | formatter.formatOptions = [.withFractionalSeconds, .withInternetDateTime]
[13/14] Compiling FHExtensions Date.swift
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONDecoder.swift:7:23: warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// The strategy that formats dates according to the ISO 8601 standard with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { decoder -> Date in
| `- warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let container = try decoder.singleValueContainer()
9 | let dateString = try container.decode(String.self)
Foundation.JSONDecoder:2:17: note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
2 | public enum DateDecodingStrategy {
| `- note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
3 | case deferredToDate
4 | case secondsSince1970
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONDecoder.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 JSONDecoder.DateDecodingStrategy {
:
5 | /// The strategy that formats dates according to the ISO 8601 standard with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { decoder -> Date in
| |- note: annotate 'iso8601withFractionalSeconds' 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
8 | let container = try decoder.singleValueContainer()
9 | let dateString = try container.decode(String.self)
[14/14] Compiling FHExtensions JSONDecoder.swift
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONDecoder.swift:7:23: warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
5 | /// The strategy that formats dates according to the ISO 8601 standard with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { decoder -> Date in
| `- warning: static property 'iso8601withFractionalSeconds' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 | let container = try decoder.singleValueContainer()
9 | let dateString = try container.decode(String.self)
Foundation.JSONDecoder:2:17: note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
1 | open class JSONDecoder {
2 | public enum DateDecodingStrategy {
| `- note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
3 | case deferredToDate
4 | case secondsSince1970
/host/spi-builder-workspace/Sources/FHExtensions/Foundation/JSONDecoder.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 JSONDecoder.DateDecodingStrategy {
:
5 | /// The strategy that formats dates according to the ISO 8601 standard with fractional seconds.
6 | @available(macOS 10.13, iOS 11.0, tvOS 11.0, *)
7 | public static let iso8601withFractionalSeconds = custom { decoder -> Date in
| |- note: annotate 'iso8601withFractionalSeconds' 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
8 | let container = try decoder.singleValueContainer()
9 | let dateString = try container.decode(String.self)
Build complete! (13.90s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "FHExtensions",
"name" : "FHExtensions",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "FHExtensions",
"targets" : [
"FHExtensions"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FHExtensionsTests",
"module_type" : "SwiftTarget",
"name" : "FHExtensionsTests",
"path" : "Tests/FHExtensionsTests",
"sources" : [
"AppKitTests.swift",
"CoreGraphicsTests.swift",
"FoundationTests.swift",
"UIKitTests.swift"
],
"target_dependencies" : [
"FHExtensions"
],
"type" : "test"
},
{
"c99name" : "FHExtensions",
"module_type" : "SwiftTarget",
"name" : "FHExtensions",
"path" : "Sources/FHExtensions",
"product_memberships" : [
"FHExtensions"
],
"sources" : [
"AppKit/NSColor.swift",
"CoreGraphics/CGRect.swift",
"Foundation/Array.swift",
"Foundation/Bundle.swift",
"Foundation/Date.swift",
"Foundation/JSONDecoder.swift",
"Foundation/JSONEncoder.swift",
"Foundation/String.swift",
"UIKit/UIColor.swift",
"UIKit/UIDevice.swift",
"UIKit/UIDirectionalPanGestureRecognizer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.