-
Notifications
You must be signed in to change notification settings - Fork 113
How to test locally (macOS, Xcode or command line)? #413
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
Comments
Hello @jpenwith If you want to test locally, you can develop against the latest release / branch We are in the process of updating the doc. The README you mentioned has no references to |
Thanks for explaining. I wanted to use main because I couldn’t get |
mmmh
You can read the v1 version of the README on the v1 branch and the v1 doc on the Swift Package Index I know this is confusing, bear with us while we update the doc in the coming weeks. |
Note you can follow this issue to track progress The behaviour will be a bit different than in V1. When the runtime does not find the typical env variable setup by the Lambda microVM, the local web server will be started by default. |
Thanks very much, really appreciate you explaining 👍 |
I'm closing this, feel free to re-open if you feel your question is not addressed |
Hello @jpenwith |
Thanks @sebsto, that's fantastic, really appreciate it 👍 |
Expected behavior
I can't see how to test locally on the README?
Some documentation suggests setting LOCAL_LAMBDA_SERVER_ENABLED in ENV, so I tried this
Actual behavior
The process exits with a missingLambdaRuntimeAPIEnvironmentVariable error
Steps to reproduce
LOCAL_LAMBDA_SERVER_ENABLED=true swift run
If possible, minimal yet complete reproducer code (or URL to code)
No response
What version of this project (
swift-aws-lambda-runtime
) are you using?latest main
Swift version
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx15.0
Darwin Firebolt 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:38:45 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8122 arm64
Amazon Linux 2 docker image version
No response
The text was updated successfully, but these errors were encountered: