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

Failed to build swift-log-slack, reference 0.1.0 (5417d1), with Swift 6.1 for Wasm on 28 May 2025 07:57:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wlisac/swift-log-slack.git
Reference: 0.1.0
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
 * 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
========================================
Build
========================================
Selected platform:         wasm
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-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-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.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.02s)
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] Emitting module Logging
[5/8] Compiling Logging Logging.swift
[6/8] Compiling Logging Locks.swift
[7/8] Compiling Logging LogHandler.swift
[8/8] Compiling Logging MetadataProvider.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/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:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |
 20 |     /// Internal for testing only.
 21 |     internal var slackSession: SlackSession = URLSession.shared
    |                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |
 23 |     /// The log label for the log handler.
/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,
/host/spi-builder-workspace/Sources/LoggingSlack/SlackSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: SlackSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func send(_ message: SlackMessage,
17 |               to webhookURL: URL,
[11/15] Compiling LoggingSlack SlackSession.swift
/host/spi-builder-workspace/Sources/LoggingSlack/SlackSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: SlackSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func send(_ message: SlackMessage,
17 |               to webhookURL: URL,
[12/15] Compiling LoggingSlack Icon.swift
[13/15] Compiling LoggingSlack SlackMessage.swift
[14/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:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |
 20 |     /// Internal for testing only.
 21 |     internal var slackSession: SlackSession = URLSession.shared
    |                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |
 23 |     /// The log label for the log handler.
/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 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",
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Logging MetadataProvider.swift
[3/6] Compiling Logging LogHandler.swift
[4/6] Emitting module Logging
[5/6] Compiling Logging Locks.swift
[6/6] Compiling Logging Logging.swift
[8/13] Compiling LoggingSlack SlackSession.swift
/host/spi-builder-workspace/Sources/LoggingSlack/SlackSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: SlackSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func send(_ message: SlackMessage,
17 |               to webhookURL: URL,
[9/13] Compiling LoggingSlack SlackLogHandler.swift
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:21:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |
 20 |     /// Internal for testing only.
 21 |     internal var slackSession: SlackSession = URLSession.shared
    |                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |
 23 |     /// The log label for the log handler.
/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,
[10/13] Compiling LoggingSlack Icon.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/13] Compiling LoggingSlack SlackMessage.swift
[12/13] Compiling LoggingSlack ColorScheme.swift
[13/13] Emitting module LoggingSlack
/host/spi-builder-workspace/Sources/LoggingSlack/SlackLogHandler.swift:21:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 19 |
 20 |     /// Internal for testing only.
 21 |     internal var slackSession: SlackSession = URLSession.shared
    |                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 22 |
 23 |     /// The log label for the log handler.
/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,
/host/spi-builder-workspace/Sources/LoggingSlack/SlackSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: SlackSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func send(_ message: SlackMessage,
17 |               to webhookURL: URL,
BUILD FAILURE 6.1 wasm