Closed
Description
Expected behavior
The project must compile in Swift 6 language mode with no warnings
Actual behavior
We enforce Swift 5 language mode on AWSLambdaRuntimeCore
target because of concurrency warnings / errors on
-
Lambda+LocalServer.swift
: waiting for Swift NIO to provide an Swift 6 compliant HTTP Server example
See https://github.com/apple/swift-nio/blob/main/Sources/NIOHTTP1Server/main.swift -
LambdaRuntimeCore.swift
: adding support for cancellable Task introduced a couple of concurrency warning.
Steps to reproduce
swift build -Xswiftc -strict-concurrency=complete
If possible, minimal yet complete reproducer code (or URL to code)
n/a
What version of this project (swift-aws-lambda-runtime
) are you using?
main
Swift version
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Amazon Linux 2 docker image version
swift:amazonlinux2