Bug: golang sam local start-api doesn't work without a .aws-sam from sam build #4784
Labels
area/local/invoke
sam local invoke command
area/local/start-api
sam local start-api command
type/question
Description:
Running
sam local start-api
without a.aws-sam
build output in a default go1.x runtime results in an error when the api is invoked. The error does not occur when runningmake build
orsam build
, but does recur when the.aws-sam
output is removed.Steps to reproduce:
The following steps were executed and pushed here for a reference reproduction.
sam build
ormake build
, if there is a.aws-sam
folder, delete itObserved result:
From
curl
:The CLI output is:
Expected result:
From
curl
:Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.75.0The text was updated successfully, but these errors were encountered: