This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of swift-log-slack with Swift 6.0 for Linux.

Swift 6 data race errors: 3

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/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/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.0
Building package at path:  $workDir
https://github.com/wlisac/swift-log-slack.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/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
Fetching https://github.com/apple/swift-log.git
[1/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.31s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (0.43s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.2.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling Logging Locks.swift
[5/7] Compiling Logging LogHandler.swift
[6/7] Emitting module Logging
[7/7] Compiling Logging Logging.swift
[9/14] Compiling LoggingSlack SlackSession.swift
[10/14] 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
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
25 |         .trace: "#18ed50",
26 |         .debug: "#18ed50",
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:323:17: note: enum 'Level' does not conform to the 'Sendable' protocol
321 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
322 |     /// `.critical` being the most severe.
323 |     public enum Level: String, Codable, CaseIterable {
    |                 `- note: enum 'Level' does not conform to the 'Sendable' protocol
324 |         /// Appropriate for messages that contain information only when debugging a program.
325 |         case trace
/host/spi-builder-workspace/Sources/LoggingSlack/ColorScheme.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 1 | import Foundation
 2 | import Logging
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 3 |
 4 | extension SlackLogHandler {
   :
 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 = [
   |                       |- note: annotate 'default' 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
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 non-isolated 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 non-isolated 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: annotate 'globalLogLevelThreshold' 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 |
 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 non-isolated 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 non-isolated 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: annotate 'messageSendHandler' 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
 19 |
 20 |     /// Internal for testing only.
[11/14] 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 non-isolated 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 non-isolated 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: annotate 'globalLogLevelThreshold' 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 |
 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 non-isolated 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 non-isolated 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: annotate 'messageSendHandler' 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
 19 |
 20 |     /// Internal for testing only.
/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
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
25 |         .trace: "#18ed50",
26 |         .debug: "#18ed50",
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:323:17: note: enum 'Level' does not conform to the 'Sendable' protocol
321 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
322 |     /// `.critical` being the most severe.
323 |     public enum Level: String, Codable, CaseIterable {
    |                 `- note: enum 'Level' does not conform to the 'Sendable' protocol
324 |         /// Appropriate for messages that contain information only when debugging a program.
325 |         case trace
/host/spi-builder-workspace/Sources/LoggingSlack/ColorScheme.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 1 | import Foundation
 2 | import Logging
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 3 |
 4 | extension SlackLogHandler {
   :
 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 = [
   |                       |- note: annotate 'default' 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
25 |         .trace: "#18ed50",
26 |         .debug: "#18ed50",
[12/14] 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
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
25 |         .trace: "#18ed50",
26 |         .debug: "#18ed50",
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:323:17: note: enum 'Level' does not conform to the 'Sendable' protocol
321 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
322 |     /// `.critical` being the most severe.
323 |     public enum Level: String, Codable, CaseIterable {
    |                 `- note: enum 'Level' does not conform to the 'Sendable' protocol
324 |         /// Appropriate for messages that contain information only when debugging a program.
325 |         case trace
/host/spi-builder-workspace/Sources/LoggingSlack/ColorScheme.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 1 | import Foundation
 2 | import Logging
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 3 |
 4 | extension SlackLogHandler {
   :
 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 = [
   |                       |- note: annotate 'default' 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
25 |         .trace: "#18ed50",
26 |         .debug: "#18ed50",
[13/14] Compiling LoggingSlack Icon.swift
[14/14] Compiling LoggingSlack SlackMessage.swift
Build complete! (10.52s)
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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.