Skip to content

CI builds fails with Swift 5.9 and Swift nightly #304

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

Closed
sebsto opened this issue Sep 7, 2023 · 4 comments
Closed

CI builds fails with Swift 5.9 and Swift nightly #304

sebsto opened this issue Sep 7, 2023 · 4 comments

Comments

@sebsto
Copy link
Contributor

sebsto commented Sep 7, 2023

Expected behavior

CI build should succeed without errors

Actual behavior

CI builds fails with

docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.al2.59.yaml -p swift-aws-lambda-runtime-swift59-prb run --rm test

fails with a fatal error.

/code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
                switch dependency {
                ^
/code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
                switch dependency {
                ^
/code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
                switch dependency {
                ^
/code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
                switch dependency {

...

15:48:54 /code/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:15:17: remark: '@preconcurrency' attribute on module 'Dispatch' is unused
15:48:54 @preconcurrency import Dispatch
15:48:54 ~~~~~~~~~~~~~~~~^
15:48:54 [282/295] Compiling AWSLambdaRuntimeCore LambdaContext.swift
15:48:54 /code/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:15:17: remark: '@preconcurrency' attribute on module 'Dispatch' is unused
15:48:54 @preconcurrency import Dispatch
15:48:54 ~~~~~~~~~~~~~~~~^
15:48:54 [283/295] Compiling AWSLambdaRuntimeCore Lambda+String.swift
15:48:54 /code/Sources/AWSLambdaRuntimeCore/Lambda.swift:88:23: error: 'install()' is deprecated: This is no longer needed in Swift 5.9
15:48:54             Backtrace.install()
15:48:54                       ^
15:48:54 [284/295] Compiling AWSLambdaRuntimeCore Lambda.swift
15:48:54 /code/Sources/AWSLambdaRuntimeCore/Lambda.swift:88:23: error: 'install()' is deprecated: This is no longer needed in Swift 5.9
15:48:54             Backtrace.install()
15:48:54                       ^
15:48:54 error: fatalError
15:48:54 error: fatalError

Steps to reproduce

Submit a PR and issue @swift-server-bot test this please

If possible, minimal yet complete reproducer code (or URL to code)

See #300

What version of this project (swift-aws-lambda-runtime) are you using?

1.0.0-alpha1

Swift version

bash-4.2# swift --version && uname -a 
Swift version 5.9-dev (LLVM 9cdc27a2fb48dda, Swift f42cd3b53880c62)
Target: aarch64-unknown-linux-gnu
Linux e7a81f99736b 5.15.49-linuxkit-pr #1 SMP PREEMPT Thu May 25 07:27:39 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Amazon Linux 2 docker image version

al2-5.9

@sebsto
Copy link
Contributor Author

sebsto commented Sep 7, 2023

root cause : swift-server/swift-backtrace#68

@tomerd
Copy link
Contributor

tomerd commented Sep 8, 2023

#305

@sebsto
Copy link
Contributor Author

sebsto commented Sep 8, 2023

Thanks !

@sebsto
Copy link
Contributor Author

sebsto commented Sep 8, 2023

I confirm this is fixed now - thank you

@sebsto sebsto closed this as completed Sep 8, 2023
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