Build Information
Successful build of swift-log-slack, reference master (f7e57b
), with Swift 6.1 for Linux on 27 Apr 2025 01:44:50 UTC.
Swift 6 data race errors: 6
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wlisac/swift-log-slack.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/wlisac/swift-log-slack
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at f7e57b7 Update message output in README
Cloned https://github.com/wlisac/swift-log-slack.git
Revision (git rev-parse @):
f7e57b7efb57ebfb7982ec3cd53116719327e844
SUCCESS checkout https://github.com/wlisac/swift-log-slack.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/wlisac/swift-log-slack.git
https://github.com/wlisac/swift-log-slack.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "swift-log-slack",
"name" : "swift-log-slack",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LoggingSlack",
"targets" : [
"LoggingSlack"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LoggingSlackTests",
"module_type" : "SwiftTarget",
"name" : "LoggingSlackTests",
"path" : "Tests/LoggingSlackTests",
"sources" : [
"ColorSchemeTests.swift",
"IconTests.swift",
"SlackLogHandlerTests.swift",
"SlackSessionMock.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"LoggingSlack"
],
"type" : "test"
},
{
"c99name" : "LoggingSlack",
"module_type" : "SwiftTarget",
"name" : "LoggingSlack",
"path" : "Sources/LoggingSlack",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"LoggingSlack"
],
"sources" : [
"ColorScheme.swift",
"Icon.swift",
"SlackLogHandler.swift",
"SlackMessage.swift",
"SlackSession.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.35s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.86s)
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging LogHandler.swift
[5/8] Compiling Logging Logging.swift
[6/8] Compiling Logging MetadataProvider.swift
[7/8] Emitting module Logging
[8/8] Compiling Logging Locks.swift
[10/15] Compiling LoggingSlack SlackSession.swift
/host/spi-builder-workspace/Sources/LoggingSlack/SlackSession.swift:35:17: warning: capture of 'completion' with non-sendable type '((Result<Void, any Error>) -> Void)?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
33 | let task = dataTask(with: request) { data, response, error in
34 | guard let response = response as? HTTPURLResponse else {
35 | completion?(.failure(SlackSessionError.invalidResponseType))
| |- warning: capture of 'completion' with non-sendable type '((Result<Void, any Error>) -> 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'
36 | return
37 | }
[11/15] Compiling LoggingSlack SlackMessage.swift
[12/15] Compiling LoggingSlack Icon.swift
[13/15] Compiling LoggingSlack ColorScheme.swift
/host/spi-builder-workspace/Sources/LoggingSlack/ColorScheme.swift:24:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SlackLogHandler.ColorScheme' (aka 'Dictionary<Logger.Level, SlackLogHandler.Color>') may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// A color represented by a hex string.
9 | public struct Color: ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
10 | internal var hexValue: String
11 |
:
22 | extension SlackLogHandler.ColorScheme {
23 | /// The default color scheme.
24 | public static let `default`: SlackLogHandler.ColorScheme = [
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SlackLogHandler.ColorScheme' (aka 'Dictionary<Logger.Level, SlackLogHandler.Color>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | .trace: "#18ed50",
26 | .debug: "#18ed50",
[14/15] Emitting module LoggingSlack
/host/spi-builder-workspace/Sources/LoggingSlack/ColorScheme.swift:24:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SlackLogHandler.ColorScheme' (aka 'Dictionary<Logger.Level, SlackLogHandler.Color>') may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// A color represented by a hex string.
9 | public struct Color: ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
10 | internal var hexValue: String
11 |
:
22 | extension SlackLogHandler.ColorScheme {
23 | /// The default color scheme.
24 | public static let `default`: SlackLogHandler.ColorScheme = [
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SlackLogHandler.ColorScheme' (aka 'Dictionary<Logger.Level, SlackLogHandler.Color>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | .trace: "#18ed50",
26 | .debug: "#18ed50",
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:15:23: warning: static property 'globalLogLevelThreshold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// The `logLevel` of an individual `SlackLogHandler` is ignored when this global
14 | /// log level is set to a higher level.
15 | public static var globalLogLevelThreshold: Logger.Level = .critical
| |- warning: static property 'globalLogLevelThreshold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalLogLevelThreshold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'globalLogLevelThreshold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// Internal for testing only.
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:18:25: warning: static property 'messageSendHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Internal for testing only.
18 | internal static var messageSendHandler: ((Result<Void, Error>) -> Void)?
| |- warning: static property 'messageSendHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'messageSendHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'messageSendHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /// Internal for testing only.
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:21:18: warning: stored property 'slackSession' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'any SlackSession'; this is an error in the Swift 6 language mode
19 |
20 | /// Internal for testing only.
21 | internal var slackSession: SlackSession = URLSession.shared
| `- warning: stored property 'slackSession' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'any SlackSession'; this is an error in the Swift 6 language mode
22 |
23 | /// The log label for the log handler.
/host/spi-builder-workspace/Sources/LoggingSlack/SlackSession.swift:6:10: note: protocol 'SlackSession' does not conform to the 'Sendable' protocol
4 | #endif
5 |
6 | protocol SlackSession {
| `- note: protocol 'SlackSession' does not conform to the 'Sendable' protocol
7 | func send(_ message: SlackMessage, to webhookURL: URL, completion: ((Result<Void, Error>) -> Void)?)
8 | }
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:36:16: warning: stored property 'icon' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'SlackLogHandler.Icon?'; this is an error in the Swift 6 language mode
34 |
35 | /// Override the Slack integration's default icon.
36 | public var icon: Icon?
| `- warning: stored property 'icon' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'SlackLogHandler.Icon?'; this is an error in the Swift 6 language mode
37 |
38 | /// The color scheme is used to determine the color of a Slack message for a log level.
/host/spi-builder-workspace/Sources/LoggingSlack/Icon.swift:5:17: note: consider making enum 'Icon' conform to the 'Sendable' protocol
3 | extension SlackLogHandler {
4 | /// An icon for a Slack integration.
5 | public enum Icon {
| `- note: consider making enum 'Icon' conform to the 'Sendable' protocol
6 | /// An [emoji code](https://webpagefx.com/tools/emoji-cheat-sheet) string to use in place of the default icon.
7 | ///
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:39:16: warning: stored property 'colorScheme' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'SlackLogHandler.ColorScheme' (aka 'Dictionary<Logger.Level, SlackLogHandler.Color>'); this is an error in the Swift 6 language mode
37 |
38 | /// The color scheme is used to determine the color of a Slack message for a log level.
39 | public var colorScheme: ColorScheme
| `- warning: stored property 'colorScheme' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'SlackLogHandler.ColorScheme' (aka 'Dictionary<Logger.Level, SlackLogHandler.Color>'); this is an error in the Swift 6 language mode
40 |
41 | public var logLevel: Logger.Level = .info
/host/spi-builder-workspace/Sources/LoggingSlack/ColorScheme.swift:9:19: note: consider making struct 'Color' conform to the 'Sendable' protocol
7 |
8 | /// A color represented by a hex string.
9 | public struct Color: ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
10 | internal var hexValue: String
11 |
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:9:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
7 | /// `SlackLogHandler` is an implementation of `LogHandler` for sending
8 | /// `Logger` output directly to Slack.
9 | public struct SlackLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
10 | /// The global log level threshold that determines when to send log output to Slack.
11 | /// Defaults to `.critical`.
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 | /// - function: The function the log line was emitted from.
134 | /// - line: The line the log message was emitted from.
135 | func log(
| `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 | level: Logger.Level,
137 | message: Logger.Message,
:
207 | extension LogHandler {
208 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 | public func log(
| `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 | level: Logger.Level,
211 | message: Logger.Message,
[15/15] Compiling LoggingSlack SlackLogHandler.swift
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:15:23: warning: static property 'globalLogLevelThreshold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// The `logLevel` of an individual `SlackLogHandler` is ignored when this global
14 | /// log level is set to a higher level.
15 | public static var globalLogLevelThreshold: Logger.Level = .critical
| |- warning: static property 'globalLogLevelThreshold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalLogLevelThreshold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'globalLogLevelThreshold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// Internal for testing only.
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:18:25: warning: static property 'messageSendHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Internal for testing only.
18 | internal static var messageSendHandler: ((Result<Void, Error>) -> Void)?
| |- warning: static property 'messageSendHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'messageSendHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'messageSendHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 |
20 | /// Internal for testing only.
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:21:18: warning: stored property 'slackSession' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'any SlackSession'; this is an error in the Swift 6 language mode
19 |
20 | /// Internal for testing only.
21 | internal var slackSession: SlackSession = URLSession.shared
| `- warning: stored property 'slackSession' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'any SlackSession'; this is an error in the Swift 6 language mode
22 |
23 | /// The log label for the log handler.
/host/spi-builder-workspace/Sources/LoggingSlack/SlackSession.swift:6:10: note: protocol 'SlackSession' does not conform to the 'Sendable' protocol
4 | #endif
5 |
6 | protocol SlackSession {
| `- note: protocol 'SlackSession' does not conform to the 'Sendable' protocol
7 | func send(_ message: SlackMessage, to webhookURL: URL, completion: ((Result<Void, Error>) -> Void)?)
8 | }
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:36:16: warning: stored property 'icon' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'SlackLogHandler.Icon?'; this is an error in the Swift 6 language mode
34 |
35 | /// Override the Slack integration's default icon.
36 | public var icon: Icon?
| `- warning: stored property 'icon' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'SlackLogHandler.Icon?'; this is an error in the Swift 6 language mode
37 |
38 | /// The color scheme is used to determine the color of a Slack message for a log level.
/host/spi-builder-workspace/Sources/LoggingSlack/Icon.swift:5:17: note: consider making enum 'Icon' conform to the 'Sendable' protocol
3 | extension SlackLogHandler {
4 | /// An icon for a Slack integration.
5 | public enum Icon {
| `- note: consider making enum 'Icon' conform to the 'Sendable' protocol
6 | /// An [emoji code](https://webpagefx.com/tools/emoji-cheat-sheet) string to use in place of the default icon.
7 | ///
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:39:16: warning: stored property 'colorScheme' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'SlackLogHandler.ColorScheme' (aka 'Dictionary<Logger.Level, SlackLogHandler.Color>'); this is an error in the Swift 6 language mode
37 |
38 | /// The color scheme is used to determine the color of a Slack message for a log level.
39 | public var colorScheme: ColorScheme
| `- warning: stored property 'colorScheme' of 'Sendable'-conforming struct 'SlackLogHandler' has non-sendable type 'SlackLogHandler.ColorScheme' (aka 'Dictionary<Logger.Level, SlackLogHandler.Color>'); this is an error in the Swift 6 language mode
40 |
41 | public var logLevel: Logger.Level = .info
/host/spi-builder-workspace/Sources/LoggingSlack/ColorScheme.swift:9:19: note: consider making struct 'Color' conform to the 'Sendable' protocol
7 |
8 | /// A color represented by a hex string.
9 | public struct Color: ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
10 | internal var hexValue: String
11 |
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:9:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
7 | /// `SlackLogHandler` is an implementation of `LogHandler` for sending
8 | /// `Logger` output directly to Slack.
9 | public struct SlackLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
10 | /// The global log level threshold that determines when to send log output to Slack.
11 | /// Defaults to `.critical`.
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 | /// - function: The function the log line was emitted from.
134 | /// - line: The line the log message was emitted from.
135 | func log(
| `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 | level: Logger.Level,
137 | message: Logger.Message,
:
207 | extension LogHandler {
208 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 | public func log(
| `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 | level: Logger.Level,
211 | message: Logger.Message,
Build complete! (10.38s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "swift-log-slack",
"name" : "swift-log-slack",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LoggingSlack",
"targets" : [
"LoggingSlack"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LoggingSlackTests",
"module_type" : "SwiftTarget",
"name" : "LoggingSlackTests",
"path" : "Tests/LoggingSlackTests",
"sources" : [
"ColorSchemeTests.swift",
"IconTests.swift",
"SlackLogHandlerTests.swift",
"SlackSessionMock.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"LoggingSlack"
],
"type" : "test"
},
{
"c99name" : "LoggingSlack",
"module_type" : "SwiftTarget",
"name" : "LoggingSlack",
"path" : "Sources/LoggingSlack",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"LoggingSlack"
],
"sources" : [
"ColorScheme.swift",
"Icon.swift",
"SlackLogHandler.swift",
"SlackMessage.swift",
"SlackSession.swift"
],
"type" : "library"
}
],
"tools_version" : "5.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
Done.