Skip to content

Commit 2778fd4

Browse files
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
1 parent 0d9c9ae commit 2778fd4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Package@swift-6.0.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,26 @@ import PackageDescription
1818
let package = Package(
1919
name: "swift-log",
2020
products: [
21-
.library(name: "Logging", targets: ["Logging"])
21+
.library(name: "Logging", targets: ["Logging"]),
22+
.library(name: "InMemoryLogging", targets: ["InMemoryLogging"]),
2223
],
2324
targets: [
2425
.target(
2526
name: "Logging",
2627
dependencies: []
2728
),
29+
.target(
30+
name: "InMemoryLogging",
31+
dependencies: ["Logging"]
32+
),
2833
.testTarget(
2934
name: "LoggingTests",
3035
dependencies: ["Logging"]
3136
),
37+
.testTarget(
38+
name: "InMemoryLoggingTests",
39+
dependencies: ["InMemoryLogging", "Logging"]
40+
),
3241
]
3342
)
3443

0 commit comments

Comments
 (0)