Skip to content

Commit

Permalink
Explicit dependency on HTTPTypes (#413)
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
czechboy0 committed Dec 1, 2023
1 parent 61fa836 commit cb1cd18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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
),

Expand Down

0 comments on commit cb1cd18

Please sign in to comment.