aws / aws-sam-cli

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
https://aws.amazon.com/serverless/sam/
Apache License 2.0
6.49k stars 1.17k forks source link

Bug: sam build - UnsupportedBuilderException #7036

Closed mudassirali4113 closed 3 months ago

mudassirali4113 commented 4 months ago

Observed result:

Error: 'Makefile' does not have a supported builder Traceback: File "click/core.py", line 1078, in main File "click/core.py", line 1688, in invoke File "click/core.py", line 1434, in invoke File "click/core.py", line 783, in invoke File "samcli/cli/cli_config_file.py", line 347, in wrapper File "click/decorators.py", line 92, in new_func File "click/core.py", line 783, in invoke File "samcli/lib/telemetry/metric.py", line 185, in wrapped File "samcli/lib/telemetry/metric.py", line 150, in wrapped File "samcli/lib/utils/version_checker.py", line 43, in wrapped File "samcli/cli/main.py", line 95, in wrapper File "samcli/commands/build/command.py", line 175, in cli File "samcli/commands/build/command.py", line 264, in do_cli File "samcli/commands/build/build_context.py", line 284, in run File "samcli/lib/build/app_builder.py", line 225, in build File "samcli/lib/build/build_strategy.py", line 83, in build File "samcli/lib/build/build_strategy.py", line 93, in _build_functions File "samcli/lib/build/build_strategy.py", line 166, in build_single_function_definition File "samcli/lib/build/app_builder.py", line 669, in _build_function File "samcli/lib/build/workflow_config.py", line 219, in get_workflow_config File "samcli/lib/build/workflow_config.py", line 71, in get_selector

Expected result:

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

  1. OS: Linux
  2. sam --version: SAM CLI, version 1.116.0
  3. AWS region: us-east-1
# Paste the output of `sam --info` here

Add --debug flag to command you are running

hawflau commented 4 months ago

Hi @mudassirali4113 , thanks for raising the issue.

Makefile is supported by SAM CLI as a build method. Could you share your template to see why it didn't work?

You can also refer to https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/building-custom-runtimes.html for examples of the templates.

mndeveci commented 3 months ago

Closing due to inactivity. Please feel free to create a new issue once you can provide more information. Thanks!

github-actions[bot] commented 3 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.