The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-log-slack, reference 0.1.0 (5417d1), with Swift 6.3 for Wasm on 13 Apr 2026 05:21:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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 /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.3
Building package at path:  $PWD
https://github.com/wlisac/swift-log-slack.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-log.git
[1/6521] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.51s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.11.0 (1.00s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.11.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling Logging LogHandler.swift
[5/9] Compiling Logging LogEvent.swift
[6/9] Compiling Logging Locks.swift
[7/9] Emitting module Logging
[8/9] Compiling Logging MetadataProvider.swift
[9/9] Compiling Logging Logging.swift
[11/16] Compiling LoggingSlack SlackSession.swift
/host/spi-builder-workspace/Sources/LoggingSlack/SlackSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSession: SlackSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 |     func send(_ message: SlackMessage,
17 |               to webhookURL: URL,
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[12/16] Compiling LoggingSlack Icon.swift
[13/16] 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(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#DeprecatedDeclaration]
  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(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#DeprecatedDeclaration]
 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:256:17: note: 'log(event:)' declared here
143 |     ///
144 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
146 |
147 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
254 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
255 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
257 |         self.log(
258 |             level: event.level,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/16] Compiling LoggingSlack ColorScheme.swift
[15/16] Compiling LoggingSlack SlackMessage.swift
[16/16] 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(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#DeprecatedDeclaration]
  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(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#DeprecatedDeclaration]
 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:256:17: note: 'log(event:)' declared here
143 |     ///
144 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
146 |
147 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
254 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
255 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
257 |         self.log(
258 |             level: event.level,
/host/spi-builder-workspace/Sources/LoggingSlack/SlackSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSession: SlackSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 |     func send(_ message: SlackMessage,
17 |               to webhookURL: URL,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm