The Swift Package Index logo.Swift Package Index

Build Information

Successful build of OpenAPILoggingMiddleware, reference main (f5c187), with Swift 6.4 for Linux on 20 Sep 2026 09:06:01 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/diyamantina/OpenAPILoggingMiddleware.git
Reference: main
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/diyamantina/OpenAPILoggingMiddleware
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f5c1879 Fix repo/package URLs to point at diyamantina mirror and Codeberg canonical
Cloned https://github.com/diyamantina/OpenAPILoggingMiddleware.git
Revision (git rev-parse @):
f5c1879ffa3e05877655e47914c392d348ad5fb8
SUCCESS checkout https://github.com/diyamantina/OpenAPILoggingMiddleware.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/diyamantina/OpenAPILoggingMiddleware.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/apple/swift-log
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/apple/swift-openapi-runtime
[1/2345] Fetching swift-docc-plugin
[236/9283] Fetching swift-docc-plugin, swift-openapi-runtime
[237/17379] Fetching swift-docc-plugin, swift-openapi-runtime, swift-log
Fetched https://github.com/swiftlang/swift-docc-plugin (0.53s)
[7297/15034] Fetching swift-openapi-runtime, swift-log
Fetched https://github.com/apple/swift-openapi-runtime (0.85s)
Fetched https://github.com/apple/swift-log (0.85s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (1.91s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3824] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.85s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.08s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.12.1 (0.18s)
Fetching https://github.com/apple/swift-http-types
[1/1935] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types (0.46s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (0.69s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.15.1 (0.20s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.12.1
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.15.1
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[Constructing description]
[Planning deferred tasks]
[47 / 85] Logging
[48 / 85] HTTPTypes
[59 / 85] Logging
[61 / 85] Logging
[64 / 85] HTTPTypes
[64 / 85] Logging-product
[65 / 85] HTTPTypes
[66 / 85] HTTPTypes-product
[67 / 86] OpenAPIRuntime
[70 / 95] OpenAPIRuntime
[71 / 95] OpenAPIRuntime
[71 / 95] Logging
[73 / 95] OpenAPIRuntime
[75 / 96] OpenAPIRuntime
[76 / 97] OpenAPIRuntime
[87 / 97]
/host/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/JSONFileLogHandler.swift:34:20: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 32 | /// ### Creating the handler
 33 | /// - ``init(label:logFileURL:logPrefix:)``
 34 | public final class JSONFileLogHandler: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 35 |
 36 |     private let label: String
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:249:17: note: 'log(event:)' declared here
136 |     ///
137 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
138 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
139 |
140 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
247 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
248 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
249 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
250 |         self.log(
251 |             level: event.level,
/host/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/ObserverLogHandler.swift:22:20: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 20 | /// let middleware = LoggingMiddleware(logger: logger, ...)
 21 | /// ```
 22 | public final class ObserverLogHandler: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 23 |     /// Immutable snapshot of a single log event handed to the observer closure.
 24 |     public struct Event: Sendable {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:249:17: note: 'log(event:)' declared here
136 |     ///
137 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
138 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
139 |
140 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
247 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
248 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
249 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
250 |         self.log(
251 |             level: event.level,
/host/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/PrefixedStreamLogHandler.swift:31:20: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 29 | /// ### Companion stream
 30 | /// - ``StandardOutputStream``
 31 | public final class PrefixedStreamLogHandler: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 32 |     private let label: String
 33 |     nonisolated(unsafe) private var _logLevel: Logger.Level = .info
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:249:17: note: 'log(event:)' declared here
136 |     ///
137 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
138 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
139 |
140 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
247 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
248 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
249 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
250 |         self.log(
251 |             level: event.level,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[92 / 107] OpenAPILoggingMiddleware
[92 / 107] OpenAPIRuntime
[95 / 107] OpenAPILoggingMiddleware
[99 / 107] OpenAPILoggingMiddleware
/host/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/JSONFileLogHandler.swift:34:20: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 32 | /// ### Creating the handler
 33 | /// - ``init(label:logFileURL:logPrefix:)``
 34 | public final class JSONFileLogHandler: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 35 |
 36 |     private let label: String
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:249:17: note: 'log(event:)' declared here
136 |     ///
137 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
138 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
139 |
140 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
247 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
248 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
249 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
250 |         self.log(
251 |             level: event.level,
/host/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/JSONFileLogHandler.swift:71:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
 69 |         // Open or create the log file.
 70 |         if !FileManager.default.fileExists(atPath: logFileURL.path) {
 71 |             FileManager.default.createFile(atPath: logFileURL.path, contents: nil)
    |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
 72 |         }
 73 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
[100 / 107] OpenAPILoggingMiddleware-product
[102 / 107] Logging
/host/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/PrefixedStreamLogHandler.swift:31:20: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 29 | /// ### Companion stream
 30 | /// - ``StandardOutputStream``
 31 | public final class PrefixedStreamLogHandler: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 32 |     private let label: String
 33 |     nonisolated(unsafe) private var _logLevel: Logger.Level = .info
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:249:17: note: 'log(event:)' declared here
136 |     ///
137 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
138 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
139 |
140 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
247 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
248 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
249 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
250 |         self.log(
251 |             level: event.level,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[102 / 107] OpenAPIRuntime
/host/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/ObserverLogHandler.swift:22:20: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 20 | /// let middleware = LoggingMiddleware(logger: logger, ...)
 21 | /// ```
 22 | public final class ObserverLogHandler: 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 23 |     /// Immutable snapshot of a single log event handed to the observer closure.
 24 |     public struct Event: Sendable {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:249:17: note: 'log(event:)' declared here
136 |     ///
137 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
138 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
139 |
140 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
247 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
248 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
249 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
250 |         self.log(
251 |             level: event.level,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[103 / 108] OpenAPILoggingMiddleware
[105 / 109] OpenAPIRuntime
Build complete! (9.86 secs)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-openapi-runtime",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-openapi-runtime"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "OpenAPILoggingMiddleware",
  "name" : "OpenAPILoggingMiddleware",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAPILoggingMiddleware",
      "targets" : [
        "OpenAPILoggingMiddleware"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenAPILoggingMiddlewareTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenAPILoggingMiddlewareTests",
      "path" : "Tests/OpenAPILoggingMiddlewareTests",
      "product_dependencies" : [
        "OpenAPIRuntime",
        "Logging"
      ],
      "sources" : [
        "BodyLoggingPolicyTests.swift",
        "DateExtensionTests.swift",
        "HTTPFieldsExtensionTests.swift",
        "IntegrationTests.swift",
        "JSONFileLogHandlerTests.swift",
        "LoggingMiddlewareTests.swift",
        "ObserverLogHandlerTests.swift",
        "PrefixedStreamLogHandlerTests.swift",
        "PublicApiTests.swift",
        "RobustnessTests.swift",
        "StringExtensionTests.swift"
      ],
      "target_dependencies" : [
        "OpenAPILoggingMiddleware"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenAPILoggingMiddleware",
      "module_type" : "SwiftTarget",
      "name" : "OpenAPILoggingMiddleware",
      "path" : "Sources/OpenAPILoggingMiddleware",
      "product_dependencies" : [
        "OpenAPIRuntime",
        "Logging"
      ],
      "product_memberships" : [
        "OpenAPILoggingMiddleware"
      ],
      "sources" : [
        "BodyLoggingPolicy.swift",
        "HTTPFields+Extension.swift",
        "JSONFileLogHandler.swift",
        "LogMetadataKey.swift",
        "LoggingMiddleware.swift",
        "OSLogHandler.swift",
        "ObserverLogHandler.swift",
        "PrefixedStreamLogHandler.swift",
        "StateLock.swift",
        "String+Extension.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Done.