aws-samples / aws-sam-swift

SAM Templates for Server-side Swift on AWS
MIT No Attribution
4 stars 1 forks source link

Swift compiler step doesn't proceed #6

Closed atacan closed 7 months ago

atacan commented 7 months ago

sam build command hang on this step and never moves forward (at least not in 15 minutes)

# compile application inside Docker image using source code from local project folder
    docker run --rm -v $($@BUILD_DIR):/build-target -v `pwd`:/build-src -w /build-src swift-builder bash -cl "swift build --static-swift-stdlib --product $($@PRODUCT) -c release --build-path /build-target"

Reproduce

sam init --location gh:aws-samples/aws-sam-swift
Select a template
    1 - Hello World (Generate a Hello World app using Swift on AWS)
    2 - Serverless API (Generate a Serverless API using Swift on AWS)
    Choose from [1/2] (1): 1
  [1/1] project_name (Swift Hello World on AWS):
cd swift-hello-world-on-aws/
sam build
atacan commented 7 months ago

It worked after restarting the computer :)