Build Information
Failed to build WrkstrmFoundation, reference main (3c128f
), with Swift 6.0 for Linux on 2 Nov 2024 00:04:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wrkstrm/WrkstrmFoundation.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/wrkstrm/WrkstrmFoundation
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3c128fc Update RelativeDateTimeFormatter+Date.swift
Cloned https://github.com/wrkstrm/WrkstrmFoundation.git
Revision (git rev-parse @):
3c128fc5c64e95ad3b5243c6c849961ed93ca735
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/wrkstrm/WrkstrmFoundation.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/wrkstrm/WrkstrmFoundation.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': ---- ConfigurationService Deps ----
[PackageDescription.Package.Dependency.Kind.sourceControl(name: nil, location: "https://github.com/wrkstrm/WrkstrmLog.git", requirement: PackageDescription.Package.Dependency.SourceControlRequirement.range(Range(0.4.0..<1.0.0))), PackageDescription.Package.Dependency.Kind.sourceControl(name: nil, location: "https://github.com/wrkstrm/WrkstrmMain.git", requirement: PackageDescription.Package.Dependency.SourceControlRequirement.range(Range(1.0.0..<2.0.0)))]
---- ConfigurationService Deps ----
Fetching https://github.com/wrkstrm/WrkstrmMain.git
Fetching https://github.com/wrkstrm/WrkstrmLog.git
[1/797] Fetching wrkstrmmain
[798/1666] Fetching wrkstrmmain, wrkstrmlog
Fetched https://github.com/wrkstrm/WrkstrmMain.git from cache (0.32s)
Fetched https://github.com/wrkstrm/WrkstrmLog.git from cache (0.32s)
Computing version for https://github.com/wrkstrm/WrkstrmMain.git
Computed https://github.com/wrkstrm/WrkstrmMain.git at 1.0.0 (0.56s)
Computing version for https://github.com/wrkstrm/WrkstrmLog.git
Computed https://github.com/wrkstrm/WrkstrmLog.git at 0.4.0 (0.66s)
Fetching https://github.com/apple/swift-log.git
[1/3660] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.57s)
Creating working copy for https://github.com/wrkstrm/WrkstrmLog.git
Working copy of https://github.com/wrkstrm/WrkstrmLog.git resolved at 0.4.0
Creating working copy for https://github.com/wrkstrm/WrkstrmMain.git
Working copy of https://github.com/wrkstrm/WrkstrmMain.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/32] Compiling WrkstrmMain CommandLine+Executable.swift
[7/32] Compiling WrkstrmMain Optional+Comparable.swift
[8/32] Compiling WrkstrmMain Optional+Flatten.swift
[9/32] Compiling WrkstrmMain RandomAccessCollection+IndexedCollection.swift
[10/32] Compiling WrkstrmMain Sequence+Decompose.swift
[11/32] Compiling WrkstrmMain Sequence+Unique.swift
[12/35] Compiling WrkstrmMain JSON.swift
[13/35] Compiling WrkstrmMain Injectable.swift
[14/35] Compiling WrkstrmMain Result.swift
[15/35] Compiling Logging MetadataProvider.swift
[16/35] Compiling Logging Logging.swift
[17/35] Compiling Logging LogHandler.swift
[18/35] Emitting module Logging
[19/35] Compiling Logging Locks.swift
[21/42] Compiling WrkstrmLog Level+OSLogType.swift
[22/42] Emitting module WrkstrmLog
[23/42] Compiling WrkstrmLog Level+Emoji.swift
[24/42] Compiling WrkstrmMain String+Contains.swift
[25/42] Compiling WrkstrmMain String+Count.swift
[26/42] Compiling WrkstrmMain String+Error.swift
[27/42] Compiling WrkstrmMain String+KebabCase.swift
[28/42] Compiling WrkstrmMain String+Source.swift
[29/42] Compiling WrkstrmMain UInt+BitSetting.swift
[30/42] Emitting module WrkstrmMain
[31/42] Compiling WrkstrmMain SortEnum.swift
[32/42] Compiling WrkstrmMain IndexedCollection.swift
[33/42] Compiling WrkstrmMain SortedArray.swift
[34/42] Compiling WrkstrmMain BinaryTree.swift
[35/42] Compiling WrkstrmMain TreeClass.swift
[36/42] Compiling WrkstrmMain ListEnum.swift
[37/42] Compiling WrkstrmMain Array+Filter.swift
[38/42] Compiling WrkstrmMain ClosedRange+Magnitude.swift
[39/42] Compiling WrkstrmMain Collection+Sorting.swift
[41/43] Compiling WrkstrmLog ProcessInfo+Xcode.swift
[42/43] Compiling WrkstrmLog Log+Shared.swift
[43/43] Compiling WrkstrmLog Log.swift
[45/67] Compiling WrkstrmFoundation NumberFormatter+Localize.swift
[46/67] Compiling WrkstrmFoundation String+Casing.swift
[47/67] Compiling WrkstrmFoundation String+Expanding.swift
[48/67] Compiling WrkstrmFoundation FoundationCalendar+Default.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Dates/RelativeDateTimeFormatter+Date.swift:8:11: error: cannot find type 'RelativeDateTimeFormatter' in scope
6 | #endif
7 |
8 | extension RelativeDateTimeFormatter {
| `- error: cannot find type 'RelativeDateTimeFormatter' in scope
9 | /// Returns a non breaking localized string describing the relative time between the provided
10 | /// timestamp and now.
[49/67] Compiling WrkstrmFoundation RelativeDateTimeFormatter+Date.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Dates/RelativeDateTimeFormatter+Date.swift:8:11: error: cannot find type 'RelativeDateTimeFormatter' in scope
6 | #endif
7 |
8 | extension RelativeDateTimeFormatter {
| `- error: cannot find type 'RelativeDateTimeFormatter' in scope
9 | /// Returns a non breaking localized string describing the relative time between the provided
10 | /// timestamp and now.
[50/67] Compiling WrkstrmFoundation FileHandle+Standard.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Dates/RelativeDateTimeFormatter+Date.swift:8:11: error: cannot find type 'RelativeDateTimeFormatter' in scope
6 | #endif
7 |
8 | extension RelativeDateTimeFormatter {
| `- error: cannot find type 'RelativeDateTimeFormatter' in scope
9 | /// Returns a non breaking localized string describing the relative time between the provided
10 | /// timestamp and now.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[51/70] Emitting module WrkstrmFoundation
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Dates/RelativeDateTimeFormatter+Date.swift:8:11: error: cannot find type 'RelativeDateTimeFormatter' in scope
6 | #endif
7 |
8 | extension RelativeDateTimeFormatter {
| `- error: cannot find type 'RelativeDateTimeFormatter' in scope
9 | /// Returns a non breaking localized string describing the relative time between the provided
10 | /// timestamp and now.
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:15:14: warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| `- warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/.build/checkouts/WrkstrmLog/Sources/WrkstrmLog/Log.swift:21:15: note: struct 'Log' does not conform to the 'Sendable' protocol
19 | /// logger.info("Network request started")
20 | /// ```
21 | public struct Log: Hashable {
| `- note: struct 'Log' does not conform to the 'Sendable' protocol
22 | /// Enum defining different logging styles.
23 | public enum Style {
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
1 | import WrkstrmLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
2 |
3 | extension Log {
:
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| |- note: annotate 'foundation' 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
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:24:53: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
22 | public static let `default` = { () -> JSONDecoder in
23 | let decoder: JSONDecoder = .init()
24 | decoder.dateDecodingStrategy = .custom(Decoding.customDateDecoder)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
25 | return decoder
26 | }()
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:44:53: warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
42 | public static let `default` = { () -> JSONEncoder in
43 | let encoder: JSONEncoder = .init()
44 | encoder.dateEncodingStrategy = .custom(Encoding.customDateEncoder)
| `- warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
45 | return encoder
46 | }()
[52/70] Compiling WrkstrmFoundation String+FileType.swift
[53/70] Compiling WrkstrmFoundation String+Stats.swift
[54/70] Compiling WrkstrmFoundation URL+URLQueryItem.swift
[55/70] Compiling WrkstrmFoundation Calendar.swift
[56/70] Compiling WrkstrmFoundation Bundle+Version.swift
[57/70] Compiling WrkstrmFoundation Data+UTF8.swift
[58/70] Compiling WrkstrmFoundation Date+ExpressibleByIntegerLiteral.swift
[59/70] Compiling WrkstrmFoundation HTTP.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:24:53: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
22 | public static let `default` = { () -> JSONDecoder in
23 | let decoder: JSONDecoder = .init()
24 | decoder.dateDecodingStrategy = .custom(Decoding.customDateDecoder)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
25 | return decoder
26 | }()
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:44:53: warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
42 | public static let `default` = { () -> JSONEncoder in
43 | let encoder: JSONEncoder = .init()
44 | encoder.dateEncodingStrategy = .custom(Encoding.customDateEncoder)
| `- warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
45 | return encoder
46 | }()
[60/70] Compiling WrkstrmFoundation JSONCoders.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:24:53: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
22 | public static let `default` = { () -> JSONDecoder in
23 | let decoder: JSONDecoder = .init()
24 | decoder.dateDecodingStrategy = .custom(Decoding.customDateDecoder)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
25 | return decoder
26 | }()
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:44:53: warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
42 | public static let `default` = { () -> JSONEncoder in
43 | let encoder: JSONEncoder = .init()
44 | encoder.dateEncodingStrategy = .custom(Encoding.customDateEncoder)
| `- warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
45 | return encoder
46 | }()
[61/70] Compiling WrkstrmFoundation JSONEnums.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:24:53: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
22 | public static let `default` = { () -> JSONDecoder in
23 | let decoder: JSONDecoder = .init()
24 | decoder.dateDecodingStrategy = .custom(Decoding.customDateDecoder)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
25 | return decoder
26 | }()
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:44:53: warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
42 | public static let `default` = { () -> JSONEncoder in
43 | let encoder: JSONEncoder = .init()
44 | encoder.dateEncodingStrategy = .custom(Encoding.customDateEncoder)
| `- warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
45 | return encoder
46 | }()
[62/70] Compiling WrkstrmFoundation FileManager+Source.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:15:14: warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| `- warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/.build/checkouts/WrkstrmLog/Sources/WrkstrmLog/Log.swift:21:15: note: struct 'Log' does not conform to the 'Sendable' protocol
19 | /// logger.info("Network request started")
20 | /// ```
21 | public struct Log: Hashable {
| `- note: struct 'Log' does not conform to the 'Sendable' protocol
22 | /// Enum defining different logging styles.
23 | public enum Style {
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
1 | import WrkstrmLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
2 |
3 | extension Log {
:
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| |- note: annotate 'foundation' 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
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/NotificationCenter+Transformers.swift:76:7: warning: capture of 'block' with non-sendable type '(A) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | ) -> Notification.Token {
75 | let token = addObserver(forName: transformer.name, object: nil, queue: queue) { note in
76 | block(transformer.transform(note))
| |- warning: capture of 'block' with non-sendable type '(A) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
77 | }
78 | return Notification.Token(token: token, center: self)
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/NotificationCenter+Transformers.swift:76:13: warning: capture of 'transformer' with non-sendable type 'Notification.Transformer<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// - name: The name of the notification.
21 | /// - transform: A closure that transforms a `Notification` into type `A`.
22 | public struct Transformer<A> {
| `- note: consider making generic struct 'Transformer' conform to the 'Sendable' protocol
23 | public let name: Notification.Name
24 | public let transform: (Notification) -> A
:
74 | ) -> Notification.Token {
75 | let token = addObserver(forName: transformer.name, object: nil, queue: queue) { note in
76 | block(transformer.transform(note))
| `- warning: capture of 'transformer' with non-sendable type 'Notification.Transformer<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | }
78 | return Notification.Token(token: token, center: self)
[63/70] Compiling WrkstrmFoundation Log+Foundation.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:15:14: warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| `- warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/.build/checkouts/WrkstrmLog/Sources/WrkstrmLog/Log.swift:21:15: note: struct 'Log' does not conform to the 'Sendable' protocol
19 | /// logger.info("Network request started")
20 | /// ```
21 | public struct Log: Hashable {
| `- note: struct 'Log' does not conform to the 'Sendable' protocol
22 | /// Enum defining different logging styles.
23 | public enum Style {
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
1 | import WrkstrmLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
2 |
3 | extension Log {
:
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| |- note: annotate 'foundation' 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
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/NotificationCenter+Transformers.swift:76:7: warning: capture of 'block' with non-sendable type '(A) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | ) -> Notification.Token {
75 | let token = addObserver(forName: transformer.name, object: nil, queue: queue) { note in
76 | block(transformer.transform(note))
| |- warning: capture of 'block' with non-sendable type '(A) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
77 | }
78 | return Notification.Token(token: token, center: self)
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/NotificationCenter+Transformers.swift:76:13: warning: capture of 'transformer' with non-sendable type 'Notification.Transformer<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// - name: The name of the notification.
21 | /// - transform: A closure that transforms a `Notification` into type `A`.
22 | public struct Transformer<A> {
| `- note: consider making generic struct 'Transformer' conform to the 'Sendable' protocol
23 | public let name: Notification.Name
24 | public let transform: (Notification) -> A
:
74 | ) -> Notification.Token {
75 | let token = addObserver(forName: transformer.name, object: nil, queue: queue) { note in
76 | block(transformer.transform(note))
| `- warning: capture of 'transformer' with non-sendable type 'Notification.Transformer<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | }
78 | return Notification.Token(token: token, center: self)
[64/70] Compiling WrkstrmFoundation NotificationCenter+Transformers.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:15:14: warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| `- warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/.build/checkouts/WrkstrmLog/Sources/WrkstrmLog/Log.swift:21:15: note: struct 'Log' does not conform to the 'Sendable' protocol
19 | /// logger.info("Network request started")
20 | /// ```
21 | public struct Log: Hashable {
| `- note: struct 'Log' does not conform to the 'Sendable' protocol
22 | /// Enum defining different logging styles.
23 | public enum Style {
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
1 | import WrkstrmLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
2 |
3 | extension Log {
:
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| |- note: annotate 'foundation' 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
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/NotificationCenter+Transformers.swift:76:7: warning: capture of 'block' with non-sendable type '(A) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | ) -> Notification.Token {
75 | let token = addObserver(forName: transformer.name, object: nil, queue: queue) { note in
76 | block(transformer.transform(note))
| |- warning: capture of 'block' with non-sendable type '(A) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
77 | }
78 | return Notification.Token(token: token, center: self)
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/NotificationCenter+Transformers.swift:76:13: warning: capture of 'transformer' with non-sendable type 'Notification.Transformer<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// - name: The name of the notification.
21 | /// - transform: A closure that transforms a `Notification` into type `A`.
22 | public struct Transformer<A> {
| `- note: consider making generic struct 'Transformer' conform to the 'Sendable' protocol
23 | public let name: Notification.Name
24 | public let transform: (Notification) -> A
:
74 | ) -> Notification.Token {
75 | let token = addObserver(forName: transformer.name, object: nil, queue: queue) { note in
76 | block(transformer.transform(note))
| `- warning: capture of 'transformer' with non-sendable type 'Notification.Transformer<A>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | }
78 | return Notification.Token(token: token, center: self)
[65/70] Compiling WrkstrmFoundation Date+GitLog.swift
[66/70] Compiling WrkstrmFoundation Date+Utilities.swift
[67/70] Compiling WrkstrmFoundation DateFormatter+Utilities.swift
[68/70] Compiling WrkstrmFoundation JSONResource.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:15:14: warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| `- warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/.build/checkouts/WrkstrmLog/Sources/WrkstrmLog/Log.swift:21:15: note: struct 'Log' does not conform to the 'Sendable' protocol
19 | /// logger.info("Network request started")
20 | /// ```
21 | public struct Log: Hashable {
| `- note: struct 'Log' does not conform to the 'Sendable' protocol
22 | /// Enum defining different logging styles.
23 | public enum Style {
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
1 | import WrkstrmLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
2 |
3 | extension Log {
:
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| |- note: annotate 'foundation' 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
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:44:53: warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
42 | public static let `default` = { () -> JSONEncoder in
43 | let encoder: JSONEncoder = .init()
44 | encoder.dateEncodingStrategy = .custom(Encoding.customDateEncoder)
| `- warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
45 | return encoder
46 | }()
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:24:53: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
22 | public static let `default` = { () -> JSONDecoder in
23 | let decoder: JSONDecoder = .init()
24 | decoder.dateDecodingStrategy = .custom(Decoding.customDateDecoder)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
25 | return decoder
26 | }()
[69/70] Compiling WrkstrmFoundation Bundle+Decode.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:15:14: warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| `- warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/.build/checkouts/WrkstrmLog/Sources/WrkstrmLog/Log.swift:21:15: note: struct 'Log' does not conform to the 'Sendable' protocol
19 | /// logger.info("Network request started")
20 | /// ```
21 | public struct Log: Hashable {
| `- note: struct 'Log' does not conform to the 'Sendable' protocol
22 | /// Enum defining different logging styles.
23 | public enum Style {
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
1 | import WrkstrmLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
2 |
3 | extension Log {
:
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| |- note: annotate 'foundation' 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
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:44:53: warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
42 | public static let `default` = { () -> JSONEncoder in
43 | let encoder: JSONEncoder = .init()
44 | encoder.dateEncodingStrategy = .custom(Encoding.customDateEncoder)
| `- warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
45 | return encoder
46 | }()
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:24:53: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
22 | public static let `default` = { () -> JSONDecoder in
23 | let decoder: JSONDecoder = .init()
24 | decoder.dateDecodingStrategy = .custom(Decoding.customDateDecoder)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
25 | return decoder
26 | }()
[70/70] Compiling WrkstrmFoundation CodableArchiver.swift
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:15:14: warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| `- warning: static property 'foundation' is not concurrency-safe because non-'Sendable' type 'Log' may have shared mutable state; this is an error in the Swift 6 language mode
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/.build/checkouts/WrkstrmLog/Sources/WrkstrmLog/Log.swift:21:15: note: struct 'Log' does not conform to the 'Sendable' protocol
19 | /// logger.info("Network request started")
20 | /// ```
21 | public struct Log: Hashable {
| `- note: struct 'Log' does not conform to the 'Sendable' protocol
22 | /// Enum defining different logging styles.
23 | public enum Style {
/host/spi-builder-workspace/Sources/WrkstrmFoundation/Extensions/Log+Foundation.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
1 | import WrkstrmLog
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'WrkstrmLog'
2 |
3 | extension Log {
:
13 | ///
14 | /// - Returns: A configured `Log` instance for foundation-related logging.
15 | static let foundation: Log = {
| |- note: annotate 'foundation' 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
16 | var log = Log(system: "wrkstrm", category: "foundation")
17 | log.maxFunctionLength = 25
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:44:53: warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
42 | public static let `default` = { () -> JSONEncoder in
43 | let encoder: JSONEncoder = .init()
44 | encoder.dateEncodingStrategy = .custom(Encoding.customDateEncoder)
| `- warning: converting non-sendable function value to '@Sendable (Date, any Encoder) throws -> Void' may introduce data races
45 | return encoder
46 | }()
/host/spi-builder-workspace/Sources/WrkstrmFoundation/JSON/JSONCoders.swift:24:53: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
22 | public static let `default` = { () -> JSONDecoder in
23 | let decoder: JSONDecoder = .init()
24 | decoder.dateDecodingStrategy = .custom(Decoding.customDateDecoder)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
25 | return decoder
26 | }()
BUILD FAILURE 6.0 linux