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 macOS (SPM).

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

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 /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/wlisac/swift-log-slack.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/7] Compiling Logging LogHandler.swift
[5/7] Compiling Logging Locks.swift
[6/7] Emitting module Logging
[7/7] Compiling Logging Logging.swift
[8/13] Compiling LoggingSlack SlackMessage.swift
[9/13] Compiling LoggingSlack SlackLogHandler.swift
/Users/admin/builder/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.
/Users/admin/builder/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.
/Users/admin/builder/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",
/Users/admin/builder/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
/Users/admin/builder/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",
[10/13] Compiling LoggingSlack SlackSession.swift
/Users/admin/builder/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/13] Compiling LoggingSlack Icon.swift
[12/13] Emitting module LoggingSlack
/Users/admin/builder/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",
/Users/admin/builder/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
/Users/admin/builder/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",
/Users/admin/builder/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.
/Users/admin/builder/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.
[13/13] Compiling LoggingSlack ColorScheme.swift
/Users/admin/builder/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",
/Users/admin/builder/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
/Users/admin/builder/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",
Build complete! (20.58s)
Fetching https://github.com/apple/swift-log.git
[1/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.05s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (0.67s)
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
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" : "/Users/admin/builder/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.