Skip to content
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

Build failure because "swift-aws-lambda-runtime" requires Swift 6 #7

Closed
mflint opened this issue Sep 26, 2024 · 4 comments
Closed

Build failure because "swift-aws-lambda-runtime" requires Swift 6 #7

mflint opened this issue Sep 26, 2024 · 4 comments

Comments

@mflint
Copy link

mflint commented Sep 26, 2024

Build failure because "swift-aws-lambda-runtime" requires Swift 6, but the latest public ECR Docker image supports Swift 5.9.1.

The "swift-aws-lambda-runtime" repo has required Swift 6 since this pull request, which was merged on August 28th.

Build failure:

Fetched https://github.com/swift-server/swift-aws-lambda-runtime (4.19s)
error: package 'swift-aws-lambda-runtime' @ 0af509b24399d7887327dd7dd72290ba25e068df is using Swift tools version 6.0.0 but the installed version is 5.9.1 in https://github.com/swift-server/swift-aws-lambda-runtime
make: *** [builder-bot] Error 1

There is support for Swift 6 in the Swift Docker repo, but it hasn't yet appeared on Amazon's Docker library.

@mflint
Copy link
Author

mflint commented Sep 26, 2024

Build succeeds gets further if I change the Dockerfile from this:

FROM public.ecr.aws/docker/library/swift:5.9.1-amazonlinux2

to this:

FROM swift:6.0.0-amazonlinux2

@dave-moser
Copy link
Contributor

Thanks for bringing this to my attention. Upgrading to Swift6 will require additional changes in the project. I will take a look and post an update soon.

@dave-moser
Copy link
Contributor

I have updated the projects to use Swift 6.0 and Swift Lambda Runtime v2. The code is also now compiled using the swift package archive plugin instead of the makefile.

Please let me know if that works for you.

@mflint
Copy link
Author

mflint commented Dec 26, 2024

That works beautifully, thank-you @dave-moser!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants