From cb1cd18d904055df67815aef550f2a453166043d Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Fri, 1 Dec 2023 13:53:49 +0100 Subject: [PATCH] Explicit dependency on HTTPTypes (#413) ### Motivation Recent SwiftPM versions seem to be a bit stricter about using (i.e., `import ...`) transitive dependencies without explicitly declaring them as direct dependencies. ### Modifications Explicitly depend on the HTTPTypes module from swift-http-types. ### Result More explicitly declare the dependency graph. ### Test Plan All tests pass. --- Package.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 9183df39..5f623799 100644 --- a/Package.swift +++ b/Package.swift @@ -61,6 +61,7 @@ let package = Package( // helps keep the runtime library new enough to work with the generated // code. .package(url: "https://github.com/apple/swift-openapi-runtime", exact: "1.0.0-alpha.1"), + .package(url: "https://github.com/apple/swift-http-types", from: "1.0.0"), // Build and preview docs .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"), @@ -97,7 +98,10 @@ let package = Package( // Common types for concrete PetstoreConsumer*Tests test targets. .target( name: "PetstoreConsumerTestCore", - dependencies: [.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime")], + dependencies: [ + .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), + .product(name: "HTTPTypes", package: "swift-http-types"), + ], swiftSettings: swiftSettings ),