Build Information
Failed to build WrkstrmFoundation, reference main (59a16d
), with Swift 6.1 for Linux on 29 Apr 2025 19:42:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
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 59a16df Update JSONEnums.swift
Cloned https://github.com/wrkstrm/WrkstrmFoundation.git
Revision (git rev-parse @):
59a16df8af9f8f3f4529d28fd155eb75b47c6d23
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/wrkstrm/WrkstrmFoundation.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/wrkstrm/WrkstrmFoundation.git
https://github.com/wrkstrm/WrkstrmFoundation.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "wrkstrmlog",
"requirement" : {
"range" : [
{
"lower_bound" : "0.4.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/wrkstrm/WrkstrmLog.git"
},
{
"identity" : "wrkstrmmain",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/wrkstrm/WrkstrmMain.git"
}
],
"manifest_display_name" : "WrkstrmFoundation",
"name" : "WrkstrmFoundation",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "16.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "WrkstrmFoundation",
"targets" : [
"WrkstrmFoundation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "WrkstrmFoundationTests",
"module_type" : "SwiftTarget",
"name" : "WrkstrmFoundationTests",
"path" : "Tests/WrkstrmFoundationTests",
"sources" : [
"CalendarTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"WrkstrmFoundation"
],
"type" : "test"
},
{
"c99name" : "WrkstrmFoundation",
"module_type" : "SwiftTarget",
"name" : "WrkstrmFoundation",
"path" : "Sources/WrkstrmFoundation",
"product_dependencies" : [
"WrkstrmLog",
"WrkstrmMain"
],
"product_memberships" : [
"WrkstrmFoundation"
],
"sources" : [
"Collections/Calendar.swift",
"Collections/Event.swift",
"Extensions/Bundle+Version.swift",
"Extensions/Data+UTF8.swift",
"Extensions/Dates/Date+ExpressibleByIntegerLiteral.swift",
"Extensions/Dates/Date+GitLog.swift",
"Extensions/Dates/Date+Utilities.swift",
"Extensions/Dates/DateFormatter+Utilities.swift",
"Extensions/Dates/FoundationCalendar+Default.swift",
"Extensions/Dates/RelativeDateTimeFormatter+Date.swift",
"Extensions/FileHandle+Standard.swift",
"Extensions/FileManager+Source.swift",
"Extensions/Log+Foundation.swift",
"Extensions/NotificationCenter+Transformers.swift",
"Extensions/NumberFormatter+Localize.swift",
"Extensions/String/String+Casing.swift",
"Extensions/String/String+Expanding.swift",
"Extensions/String/String+FileType.swift",
"Extensions/String/String+Stats.swift",
"Extensions/URL+URLQueryItem.swift",
"HTTP/HTTP.swift",
"JSON/JSONCoders.swift",
"JSON/JSONEnums.swift",
"JSON/JSONResource.swift",
"Persistence/Bundle+Decode.swift",
"Persistence/CodableArchiver.swift",
"Persistence/SecurityScopedAsset.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
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 ----
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-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/838] Fetching wrkstrmmain
[839/1712] Fetching wrkstrmmain, wrkstrmlog
Fetched https://github.com/wrkstrm/WrkstrmMain.git from cache (0.44s)
[831/874] Fetching wrkstrmlog
Fetched https://github.com/wrkstrm/WrkstrmLog.git from cache (0.54s)
Computing version for https://github.com/wrkstrm/WrkstrmMain.git
Computed https://github.com/wrkstrm/WrkstrmMain.git at 1.0.0 (1.79s)
Computing version for https://github.com/wrkstrm/WrkstrmLog.git
Computed https://github.com/wrkstrm/WrkstrmLog.git at 0.4.0 (1.15s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.59s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.66s)
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/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/wrkstrm/WrkstrmMain.git
Working copy of https://github.com/wrkstrm/WrkstrmMain.git resolved at 1.0.0
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/32] Emitting module Logging
[7/32] Compiling Logging MetadataProvider.swift
[8/32] Compiling Logging Locks.swift
[9/32] Compiling Logging Logging.swift
[10/32] Compiling Logging LogHandler.swift
[11/33] Compiling WrkstrmMain Array+Filter.swift
[12/33] Compiling WrkstrmMain ClosedRange+Magnitude.swift
[13/33] Compiling WrkstrmMain Collection+Sorting.swift
[14/36] Compiling WrkstrmMain RandomAccessCollection+IndexedCollection.swift
[15/36] Compiling WrkstrmMain Sequence+Decompose.swift
[16/36] Compiling WrkstrmMain Sequence+Unique.swift
[17/36] Compiling WrkstrmMain CommandLine+Executable.swift
[18/36] Compiling WrkstrmMain Optional+Comparable.swift
[19/36] Compiling WrkstrmMain Optional+Flatten.swift
[20/36] Compiling WrkstrmMain String+Contains.swift
[21/36] Compiling WrkstrmMain String+Count.swift
[22/36] Compiling WrkstrmMain String+Error.swift
[23/36] Compiling WrkstrmMain String+KebabCase.swift
[24/36] Compiling WrkstrmMain String+Source.swift
[25/36] Compiling WrkstrmMain UInt+BitSetting.swift
[27/36] Compiling WrkstrmMain JSON.swift
[28/36] Compiling WrkstrmMain Injectable.swift
[29/36] Compiling WrkstrmMain Result.swift
[30/36] Emitting module WrkstrmMain
[31/36] Compiling WrkstrmMain BinaryTree.swift
[32/36] Compiling WrkstrmMain TreeClass.swift
[33/36] Compiling WrkstrmMain ListEnum.swift
[34/36] Compiling WrkstrmMain SortEnum.swift
[35/36] Compiling WrkstrmMain IndexedCollection.swift
[36/36] Compiling WrkstrmMain SortedArray.swift
[38/43] Compiling WrkstrmLog ProcessInfo+Xcode.swift
[39/43] Compiling WrkstrmLog Level+OSLogType.swift
[40/43] Compiling WrkstrmLog Level+Emoji.swift
[41/43] Compiling WrkstrmLog Log+Shared.swift
[42/43] Emitting module WrkstrmLog
[43/43] Compiling WrkstrmLog Log.swift
[45/69] 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.
[46/69] 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.
[47/69] 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.
[48/69] Compiling WrkstrmFoundation FileManager+Source.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/69] Compiling WrkstrmFoundation Date+ExpressibleByIntegerLiteral.swift
[50/69] Compiling WrkstrmFoundation Date+GitLog.swift
[51/69] Compiling WrkstrmFoundation Date+Utilities.swift
[52/69] Compiling WrkstrmFoundation DateFormatter+Utilities.swift
[53/72] Compiling WrkstrmFoundation String+Casing.swift
[54/72] Compiling WrkstrmFoundation String+Expanding.swift
[55/72] Compiling WrkstrmFoundation String+FileType.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[56/72] 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: add '@MainActor' to make static property 'foundation' part of global actor 'MainActor'
| `- 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
[57/72] Compiling WrkstrmFoundation Calendar.swift
[58/72] Compiling WrkstrmFoundation Event.swift
[59/72] Compiling WrkstrmFoundation Bundle+Version.swift
[60/72] Compiling WrkstrmFoundation Data+UTF8.swift
[61/72] Compiling WrkstrmFoundation String+Stats.swift
[62/72] Compiling WrkstrmFoundation URL+URLQueryItem.swift
[63/72] Compiling WrkstrmFoundation HTTP.swift
[64/72] Compiling WrkstrmFoundation JSONCoders.swift
[65/72] Compiling WrkstrmFoundation JSONEnums.swift
[66/72] Compiling WrkstrmFoundation JSONResource.swift
[67/72] 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: add '@MainActor' to make static property 'foundation' part of global actor 'MainActor'
| `- 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)
[68/72] 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: add '@MainActor' to make static property 'foundation' part of global actor 'MainActor'
| `- 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)
[69/72] Compiling WrkstrmFoundation NumberFormatter+Localize.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: add '@MainActor' to make static property 'foundation' part of global actor 'MainActor'
| `- 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)
[70/72] Compiling WrkstrmFoundation Bundle+Decode.swift
[71/72] Compiling WrkstrmFoundation CodableArchiver.swift
[72/72] Compiling WrkstrmFoundation SecurityScopedAsset.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-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 ----
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/28] Compiling Logging MetadataProvider.swift
[3/28] Compiling WrkstrmMain RandomAccessCollection+IndexedCollection.swift
[4/28] Compiling WrkstrmMain Sequence+Decompose.swift
[5/28] Compiling WrkstrmMain Sequence+Unique.swift
[6/28] Emitting module WrkstrmMain
[7/31] Compiling WrkstrmMain Array+Filter.swift
[8/31] Compiling WrkstrmMain ClosedRange+Magnitude.swift
[9/31] Compiling WrkstrmMain Collection+Sorting.swift
[10/31] Compiling WrkstrmMain String+Contains.swift
[11/31] Compiling WrkstrmMain String+Count.swift
[12/31] Compiling WrkstrmMain String+Error.swift
[13/31] Compiling WrkstrmMain CommandLine+Executable.swift
[14/31] Compiling WrkstrmMain Optional+Comparable.swift
[15/31] Compiling WrkstrmMain Optional+Flatten.swift
[16/31] Compiling WrkstrmMain String+KebabCase.swift
[17/31] Compiling WrkstrmMain String+Source.swift
[18/31] Compiling WrkstrmMain UInt+BitSetting.swift
[19/31] Emitting module Logging
[20/31] Compiling WrkstrmMain SortEnum.swift
[21/31] Compiling WrkstrmMain IndexedCollection.swift
[22/31] Compiling WrkstrmMain SortedArray.swift
[23/31] Compiling WrkstrmMain BinaryTree.swift
[24/31] Compiling WrkstrmMain TreeClass.swift
[25/31] Compiling WrkstrmMain ListEnum.swift
[26/31] Compiling WrkstrmMain JSON.swift
[27/31] Compiling WrkstrmMain Injectable.swift
[28/31] Compiling WrkstrmMain Result.swift
[30/32] Compiling Logging Logging.swift
[31/32] Compiling Logging Locks.swift
[32/32] Compiling Logging LogHandler.swift
[34/39] Compiling WrkstrmLog Level+OSLogType.swift
[35/39] Emitting module WrkstrmLog
[36/39] Compiling WrkstrmLog Level+Emoji.swift
[37/39] Compiling WrkstrmLog ProcessInfo+Xcode.swift
[38/39] Compiling WrkstrmLog Log+Shared.swift
[39/39] Compiling WrkstrmLog Log.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[41/65] 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.
[42/68] Compiling WrkstrmFoundation Log+Foundation.swift
[43/68] Compiling WrkstrmFoundation NotificationCenter+Transformers.swift
[44/68] Compiling WrkstrmFoundation NumberFormatter+Localize.swift
[45/68] Compiling WrkstrmFoundation Date+ExpressibleByIntegerLiteral.swift
[46/68] Compiling WrkstrmFoundation Date+GitLog.swift
[47/68] Compiling WrkstrmFoundation Date+Utilities.swift
[48/68] Compiling WrkstrmFoundation DateFormatter+Utilities.swift
[49/68] Compiling WrkstrmFoundation String+Casing.swift
[50/68] Compiling WrkstrmFoundation String+Expanding.swift
[51/68] Compiling WrkstrmFoundation String+FileType.swift
[52/68] Compiling WrkstrmFoundation String+Stats.swift
[53/68] Compiling WrkstrmFoundation URL+URLQueryItem.swift
[54/68] Compiling WrkstrmFoundation HTTP.swift
[55/68] Compiling WrkstrmFoundation JSONCoders.swift
[56/68] Compiling WrkstrmFoundation JSONEnums.swift
[57/68] Compiling WrkstrmFoundation JSONResource.swift
[58/68] Compiling WrkstrmFoundation Calendar.swift
[59/68] Compiling WrkstrmFoundation Event.swift
[60/68] Compiling WrkstrmFoundation Bundle+Version.swift
[61/68] Compiling WrkstrmFoundation Data+UTF8.swift
[62/68] 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.
[63/68] 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.
[64/68] 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.
[65/68] Compiling WrkstrmFoundation FileManager+Source.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.
[66/68] Compiling WrkstrmFoundation Bundle+Decode.swift
[67/68] Compiling WrkstrmFoundation CodableArchiver.swift
[68/68] Compiling WrkstrmFoundation SecurityScopedAsset.swift
BUILD FAILURE 6.1 linux