Skip to content

Reinstate InMemoryLogging product in Swift 6.0 manifest#403

Merged
kukushechkin merged 1 commit intoapple:mainfrom
simonjbeaumont:sb/fix-swift-6.0-api-break
Jan 19, 2026
Merged

Reinstate InMemoryLogging product in Swift 6.0 manifest#403
kukushechkin merged 1 commit intoapple:mainfrom
simonjbeaumont:sb/fix-swift-6.0-api-break

Conversation

@simonjbeaumont
Copy link
Copy Markdown
Contributor

@simonjbeaumont simonjbeaumont commented Jan 19, 2026

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 -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

@simonjbeaumont simonjbeaumont force-pushed the sb/fix-swift-6.0-api-break branch from c66e43c to 2a5580e Compare January 19, 2026 10:31
@simonjbeaumont simonjbeaumont added the 🔨 semver/patch No public API change. label Jan 19, 2026
@kukushechkin kukushechkin merged commit 2778fd4 into apple:main Jan 19, 2026
58 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API break in 1.9.0: InMemoryLogging not available on Swift 6.0 following package manifest split

4 participants