From 2778fd4e5a12a8aaa30a3ee8285f4ce54c5f3181 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Mon, 19 Jan 2026 10:46:49 +0000 Subject: [PATCH] Reinstate InMemoryLogging product in Swift 6.0 manifest (#403) ### Motivation: In the latest release (1.9.0) the package manifest was split for Swift 6.0 and 6.1+. The 6.0 manifest lost the `InMemoryLogging` library product, causing API breakage for adopters using Swift 6.0: ```diff % diff -u <(git show 1.8.0:Package.swift) <(git show 1.9.0:Package@swift-6.0.swift) --- /dev/fd/63 2026-01-19 10:30:21 +++ /dev/fd/62 2026-01-19 10:30:21 @@ -18,25 +18,16 @@ let package = Package( name: "swift-log", products: [ - .library(name: "Logging", targets: ["Logging"]), - .library(name: "InMemoryLogging", targets: ["InMemoryLogging"]), + .library(name: "Logging", targets: ["Logging"]) ], targets: [ .target( name: "Logging", dependencies: [] ), - .target( - name: "InMemoryLogging", - dependencies: ["Logging"] - ), .testTarget( name: "LoggingTests", dependencies: ["Logging"] - ), - .testTarget( - name: "InMemoryLoggingTests", - dependencies: ["InMemoryLogging", "Logging"] ), ] ) ``` ### Modifications: Reinstate InMemoryLogging product in Swift 6.0 manifest ### Result: Adopters using `InMemoryLogging` on Swift 6.0 are unbroken. ### Related issues: Fixes #402 --- Package@swift-6.0.swift | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Package@swift-6.0.swift b/Package@swift-6.0.swift index a2cdb67..93ee785 100644 --- a/Package@swift-6.0.swift +++ b/Package@swift-6.0.swift @@ -18,17 +18,26 @@ import PackageDescription let package = Package( name: "swift-log", products: [ - .library(name: "Logging", targets: ["Logging"]) + .library(name: "Logging", targets: ["Logging"]), + .library(name: "InMemoryLogging", targets: ["InMemoryLogging"]), ], targets: [ .target( name: "Logging", dependencies: [] ), + .target( + name: "InMemoryLogging", + dependencies: ["Logging"] + ), .testTarget( name: "LoggingTests", dependencies: ["Logging"] ), + .testTarget( + name: "InMemoryLoggingTests", + dependencies: ["InMemoryLogging", "Logging"] + ), ] )