Skip to content

Commit 875fecf

Browse files
authored
Disable ExistentialAny temporarily (#9)
Disable ExistentialAny temporarily ### Motivation Unfortunately until we adopt 5.9, adding ExistentialAny on upstream packages has unintended consequences for some downstream packages, so disabling for now. Details in apple/swift-openapi-generator#120 ### Modifications Disabled the feature enforcement, but the code changes are there, so downstream adopters can still use them. ### Result We won't be seeing the issue described in apple/swift-openapi-generator#120. ### Test Plan PR CI, which discovered the original issue. Reviewed by: simonjbeaumont Builds: ✔︎ pull request validation (5.8) - Build finished. ✔︎ pull request validation (5.9) - Build finished. ✔︎ pull request validation (nightly) - Build finished. ✔︎ pull request validation (soundness) - Build finished. #9
1 parent 98213b7 commit 875fecf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: Package.swift

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ import Foundation
1616
import PackageDescription
1717

1818
// General Swift-settings for all targets.
19-
let swiftSettings: [SwiftSetting] = [
19+
var swiftSettings: [SwiftSetting] = []
20+
21+
#if swift(>=5.9)
22+
swiftSettings.append(
2023
// https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md
2124
// Require `any` for existential types.
2225
.enableUpcomingFeature("ExistentialAny")
23-
]
26+
)
27+
#endif
2428

2529
let package = Package(
2630
name: "swift-openapi-async-http-client",

0 commit comments

Comments
 (0)