Skip to content

Commit 32cd8a3

Browse files
authored
Disable ExistentialAny temporarily (#122)
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 #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 #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 (docc test) - Build finished. ✔︎ pull request validation (integration test) - Build finished. ✔︎ pull request validation (nightly) - Build finished. ✔︎ pull request validation (soundness) - Build finished. #122
1 parent 914560c commit 32cd8a3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Package.swift

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

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

2428
let package = Package(
2529
name: "swift-openapi-generator",

0 commit comments

Comments
 (0)