swiftlang / swift-org-website

Swift.org website
https://swift.org
Other
471 stars 178 forks source link

Does Not Build: Deploying to AWS Lambda using the Serverless Application Model (SAM) #247

Open russwhite opened 1 year ago

russwhite commented 1 year ago

Describe the bug

The instructions

To Reproduce

Steps to reproduce the behavior:

  1. Follow steps exactly as documented.
  2. sam build fails

Expected behavior

A functional build

Actual behavior

Error: PutItemFunction failed to build: The command '/bin/sh -c cd /build-lambda && swift package clean && swift build --static-swift-stdlib -c release' returned a non-zero code: 132

Screenshots

N/A

Environment details

Desktop (please complete the following information):

Smartphone (please complete the following information):

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

The builds will always fail because the generated Test files have a syntax error in XCTAssertEqual.

Remarks

Multiple Remarks: Incremental compilation has been disabled: it is not compatible with whole module optimization

Swift.org version/commit hash

Additional context

0xTim commented 1 year ago

@russwhite Does your project compile in Xcode?