-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SDK to Swift 6 #2
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,231 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file needs to be removed once the swift-aws-lambda-runtime gets a versioned
@@ -39,7 +39,7 @@ playground.xcworkspace | |||
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. | |||
# Packages/ | |||
# Package.pins | |||
Package.resolved | |||
# Package.resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be reverted once the swift-aws-lambda-runtime gets a versioned
|
||
import PackageDescription | ||
|
||
#if os(macOS) | ||
let platforms: [PackageDescription.SupportedPlatform]? = [.macOS(.v15), .iOS(.v13)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS is not supported, this need to be removed
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"), | ||
.package(url: "https://github.com/swift-serverless/swift-sls-adapter", from: "0.2.1"), | ||
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.11.2"), | ||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be updated once there is a version for the v2
var breezeApi: BreezeLambdaHandler<T>? | ||
|
||
func handler(event: APIGatewayV2Request, context: LambdaContext) async throws -> APIGatewayV2Response { | ||
guard let breezeApi else { throw BreezeLambdaAPIError.invalidHandler } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid this?
try await Task.sleep(nanoseconds: 1_000_000_000) | ||
gracefulShutdownTestTrigger.triggerGracefulShutdown() | ||
} | ||
group.cancelAll() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why I need to cancel all the task here
Note:
The PR cannot be merged until a stable version of
swift-aws-lambda-runtime
will be released