Skip to content

Commit 7c039dd

Browse files
authored
Drop support for Swift 6.0 (#908)
Motivation: Swift 6.0 has dropped out of the support policy Modifications: - Remove Package@swift-6.0.swift - Ensure min tools version is 6.1 Result: AHC only supports Swift 6.1+
1 parent 8cfd301 commit 7c039dd

5 files changed

Lines changed: 4 additions & 135 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
name: Unit tests
1818
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
1919
with:
20-
linux_5_10_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
21-
linux_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
2220
linux_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
2321
linux_6_2_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
2422
linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error"
@@ -27,8 +25,6 @@ jobs:
2725
cxx-interop:
2826
name: Cxx interop
2927
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
30-
with:
31-
linux_5_9_enabled: false
3228

3329
static-sdk:
3430
name: Static SDK

Package@swift-6.0.swift

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

Package@swift-6.1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:6.0
1+
// swift-tools-version:6.1
22
//===----------------------------------------------------------------------===//
33
//
44
// This source file is part of the AsyncHTTPClient open source project

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Please have a look at [SECURITY.md](SECURITY.md) for AsyncHTTPClient's security
306306

307307
## Supported Versions
308308

309-
The most recent versions of AsyncHTTPClient support Swift 6.0 and newer. The minimum Swift version supported by AsyncHTTPClient releases are detailed below:
309+
The most recent versions of AsyncHTTPClient support Swift 6.1 and newer. The minimum Swift version supported by AsyncHTTPClient releases are detailed below:
310310

311311
AsyncHTTPClient | Minimum Swift Version
312312
--------------------|----------------------
@@ -319,4 +319,5 @@ AsyncHTTPClient | Minimum Swift Version
319319
`1.21.0 ..< 1.26.0` | 5.8
320320
`1.26.0 ..< 1.27.0` | 5.9
321321
`1.27.0 ..< 1.30.0` | 5.10
322-
`1.30.0 ...` | 6.0
322+
`1.30.0 ..< 1.34.0` | 6.0
323+
`1.34.0 ...` | 6.1

Tests/AsyncHTTPClientTests/HTTPClientTests.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ final class HTTPClientTests: XCTestCaseHTTPClientTestsBaseClass {
4747

4848
let request3 = try Request(url: "unix:///tmp/file")
4949
XCTAssertEqual(request3.host, "")
50-
#if os(Linux) && compiler(<6.1)
51-
XCTAssertEqual(request3.url.host, "")
52-
#else
5350
XCTAssertNil(request3.url.host)
54-
#endif
5551
XCTAssertEqual(request3.url.path, "/tmp/file")
5652
XCTAssertEqual(request3.port, 80)
5753
XCTAssertFalse(request3.useTLS)

0 commit comments

Comments
 (0)