We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5687fd commit a8b2c53Copy full SHA for a8b2c53
codegen/Package.swift
@@ -77,11 +77,14 @@ func appendLibTarget(name: String, path: String) {
77
}
78
79
func appendTstTarget(name: String, path: String, dependency: String) {
80
+ var dependencies: [Target.Dependency] = [.product(name: "SmithyTestUtil", package: "ClientRuntime")]
81
+#if swift(>=5.5)
82
+ dependencies.append(.byNameItem(name: dependency, condition: nil))
83
+#else
84
+ dependencies.append(._byNameItem(name: dependency, condition: nil))
85
+#endif
86
package.targets.append(.testTarget(name: name,
- dependencies: [
- ._byNameItem(name: dependency, condition: nil),
- .product(name: "SmithyTestUtil", package: "ClientRuntime")
- ],
87
+ dependencies: dependencies,
88
path: "\(path)/swift-codegen/\(name)")
89
)
90
0 commit comments