The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of swift-log-slack, reference 0.1.0 (5417d1), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 01:50:02 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wlisac/swift-log-slack.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wlisac/swift-log-slack
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 5417d1c Update README
Cloned https://github.com/wlisac/swift-log-slack.git
Revision (git rev-parse @):
5417d1c2066ee96e761c6daa0b491e0418451a72
SUCCESS checkout https://github.com/wlisac/swift-log-slack.git at 0.1.0
Fetching https://github.com/apple/swift-log.git from cache
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.2.0 (1.21s)
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-log-slack",
      "name": "swift-log-slack",
      "url": "https://github.com/wlisac/swift-log-slack.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log-slack",
      "dependencies": [
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.6.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/wlisac/swift-log-slack.git
[1/130] Fetching swift-log-slack
Fetched https://github.com/wlisac/swift-log-slack.git from cache (0.73s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.55s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.04s)
Creating working copy for https://github.com/wlisac/swift-log-slack.git
Working copy of https://github.com/wlisac/swift-log-slack.git resolved at 0.1.0 (5417d1c)
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
warning: '.resolve-product-dependencies': dependency 'swift-log-slack' is not used by any target
Found 1 product dependencies
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
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
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.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 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 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.
/Users/admin/builder/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.
[9/13] Compiling LoggingSlack SlackMessage.swift
[10/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: 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",
/Users/admin/builder/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.
/Users/admin/builder/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.
[11/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
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
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 |                 return
37 |             }
[12/13] Compiling LoggingSlack Icon.swift
[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: 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",
Build complete! (5.06s)
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.