Skip to content

Commit e5816cb

Browse files
authored
Move to Swift 5.9 as the minimum version (#80)
### Motivation Part of addressing apple/swift-openapi-generator#75 and apple/swift-openapi-generator#119. ### Modifications Bumped Swift tools version to 5.9 and made the `ExistentialAny` build setting unconditional. ### Result Building the package requires 5.9 now. ### Test Plan Ran tests, all passed when using a Swift 5.9 toolchain.
1 parent 3917031 commit e5816cb

File tree

4 files changed

+5
-28
lines changed

4 files changed

+5
-28
lines changed

Package.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.8
1+
// swift-tools-version: 5.9
22
//===----------------------------------------------------------------------===//
33
//
44
// This source file is part of the SwiftOpenAPIGenerator open source project
@@ -15,15 +15,11 @@
1515
import PackageDescription
1616

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

2824
let package = Package(
2925
name: "swift-openapi-runtime",

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG swift_version=5.8
1+
ARG swift_version=5.9
22
ARG ubuntu_version=jammy
33
ARG base_image=swift:${swift_version}-${ubuntu_version}
44

docker/docker-compose.2204.58.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

docker/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# % docker-compose \
66
# -f docker/docker-compose.yaml \
7-
# -f docker/docker-compose.2204.58.yaml \
7+
# -f docker/docker-compose.2204.59.yaml \
88
# run test
99
#
1010
version: "3"

0 commit comments

Comments
 (0)