Skip to content

Commit f9ac0c3

Browse files
weissiLukasa
authored andcommitted
prevent duplicate targets: rename NIOHTTP1Client to NIOSSLHTTP1Client (#99)
Motivation: With package editing this problem surfaces: ``` $ jw-swift-5.0 swift test error: multiple products named 'NIOHTTP1Client' in: swift-nio, swift-nio-ssl error: multiple targets named 'NIOHTTP1Client' in: swift-nio, swift-nio-ssl ``` which is bad. Fortunately, these are executable targets that we can rename. Modification: rename `NIOHTTP1Client` in swift-nio-ssl to `NIOSSLHTTP1Client` Result: usable with package editing.
1 parent 842506d commit f9ac0c3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let package = Package(
2929
products: [
3030
.library(name: "NIOSSL", targets: ["NIOSSL"]),
3131
.executable(name: "NIOTLSServer", targets: ["NIOTLSServer"]),
32-
.executable(name: "NIOHTTP1Client", targets: ["NIOHTTP1Client"]),
32+
.executable(name: "NIOSSLHTTP1Client", targets: ["NIOSSLHTTP1Client"]),
3333
/* This target is used only for symbol mangling. It's added and removed automatically because it emits build warnings. MANGLE_START
3434
.library(name: "CNIOBoringSSL", type: .static, targets: ["CNIOBoringSSL"]),
3535
MANGLE_END */
@@ -43,7 +43,7 @@ MANGLE_END */
4343
.target(name: "NIOSSL",
4444
dependencies: ["NIO", "NIOConcurrencyHelpers", "CNIOBoringSSL", "CNIOBoringSSLShims", "NIOTLS"]),
4545
.target(name: "NIOTLSServer", dependencies: ["NIO", "NIOSSL", "NIOConcurrencyHelpers"]),
46-
.target(name: "NIOHTTP1Client", dependencies: ["NIO", "NIOHTTP1", "NIOSSL", "NIOFoundationCompat"]),
46+
.target(name: "NIOSSLHTTP1Client", dependencies: ["NIO", "NIOHTTP1", "NIOSSL", "NIOFoundationCompat"]),
4747
.testTarget(name: "NIOSSLTests", dependencies: ["NIOTLS", "NIOSSL"]),
4848
],
4949
cxxLanguageStandard: .cxx11
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)