Skip to content

Go quickstart hello world example fails to run #2151

@Phuurl

Description

@Phuurl

Description

After deploying the Go Hello World quickstart example (without any modifications), the deployed Lambda fails to run, with a file not found error.

Steps to reproduce

  1. sam init --runtime go1.x
  2. Select the Hello World Example
  3. make the project (or sam build)
  4. sam deploy --guided
  5. Either hit the deployed API, or test the Lambda via the console
  6. Observe the function fails to execute

Observed result

The following error is visible in the Lambda console:

{
  "errorMessage": "fork/exec /var/task/hello-world: no such file or directory",
  "errorType": "PathError"
}

Expected result

The Lambda executes.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Ubuntu 20.04, kernal 5.4.0-42
  2. sam --version: SAM CLI, version 1.0.0
  3. go version: go version go1.14.5 linux/amd64

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions