You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From Terminal, I built the project: swift build --disable-sandbox
Then I ran swift package --disable-sandbox archive at which point I got the error.
I checked that AWS and Docker were correctly installed as well:
>> where aws
/usr/local/bin/aws
/usr/local/bin/aws
…/Documents/xcode-projects/MyFinalLambdaFunction via 🐦 v6.0
>> where docker
/usr/local/bin/docker
/usr/local/bin/docker
…/Documents/xcode-projects/MyFinalLambdaFunction via 🐦 v6.0
>>
As a side note, I am also getting this in Xcode.
invalid custom path './HttpApiLambda' for target 'HttpApiLambda'
If possible, minimal yet complete reproducer code (or URL to code)
See code above to minimally reproduce.
What version of this project (swift-aws-lambda-runtime) are you using?
1.0.0-alpha.3
Swift version
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: x86_64-apple-macosx15.0
Darwin 2020-MacBook-Pro-Ryan.local 24.0.0 Darwin Kernel Version 24.0.0: Mon Aug 12 20:54:30 PDT 2024; root:xnu-11215.1.10~2/RELEASE_X86_64 x86_64
Amazon Linux 2 docker image version
No response
The text was updated successfully, but these errors were encountered:
The main branch is our work toward the runtime API v2. You don't need to disable the full plugin sandbox anymore. You can package and archive with this command:
swift package archive --allow-network-connections docker
Expected behavior
After using
swift package --disable-sandbox archive
in the Terminal, I expected the command to create the AWS Lambda ZIP package.Actual behavior
The command
swift package --disable-sandbox archive
failed with an error:Steps to reproduce
I am following this talk Swift, Server-Side, Serverless - Sébastien Stormacq
swift package init --type executable --name MyFinalLambdaFunction
swift build --disable-sandbox
swift package --disable-sandbox archive
at which point I got the error.As a side note, I am also getting this in Xcode.
If possible, minimal yet complete reproducer code (or URL to code)
See code above to minimally reproduce.
What version of this project (
swift-aws-lambda-runtime
) are you using?1.0.0-alpha.3
Swift version
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: x86_64-apple-macosx15.0
Darwin 2020-MacBook-Pro-Ryan.local 24.0.0 Darwin Kernel Version 24.0.0: Mon Aug 12 20:54:30 PDT 2024; root:xnu-11215.1.10~2/RELEASE_X86_64 x86_64
Amazon Linux 2 docker image version
No response
The text was updated successfully, but these errors were encountered: