-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Description:
I am doing the Cloud Resume Challenge and in the step of building the environment/infrastructure. I am at the step of "sam build" and getting a "Cache is invalid" message.
Starting Build use cache
Cache is invalid, running build and copying resources for following functions (HelloWorldFunction)
Building codeuri: C:\Users\fsaye\cloud-resume-challenge\hello-world runtime: provided.al2023 architecture: x86_64 functions: HelloWorldFunction
Workflow GoModulesBuilder does not support value "False" for building in source. Using default value "True".
Steps to reproduce:
Starting Build use cache
Cache is invalid, running build and copying resources for following functions (HelloWorldFunction)
Building codeuri: C:\Users\fsaye\cloud-resume-challenge\hello-world runtime: provided.al2023 architecture: x86_64 functions: HelloWorldFunction
Workflow GoModulesBuilder does not support value "False" for building in source. Using default value "True".
Observed result:
Starting Build use cache
Cache is invalid, running build and copying resources for following functions (HelloWorldFunction)
Building codeuri: C:\Users\fsaye\cloud-resume-challenge\hello-world runtime: provided.al2023 architecture: x86_64 functions: HelloWorldFunction
Workflow GoModulesBuilder does not support value "False" for building in source. Using default value "True".
Build Failed
Error: GoModulesBuilder:Resolver - Path resolution for runtime: provided of binary: go was not successful
Expected result:
Build Succeeded
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS: Windows 11
sam --version: AWS_SAM_CLI_64_PY3.msi- AWS region:
sam init details below:
Which template source would you like to use?
1 - AWS Quick Start Templates
2 - Custom Template Location
Choice: 1
Choose an AWS Quick Start application template
1 - Hello World Example
2 - Data processing
3 - Hello World Example with Powertools for AWS Lambda
4 - Multi-step workflow
5 - Scheduled task
6 - Standalone function
7 - Serverless API
8 - Infrastructure event management
9 - Lambda Response Streaming
10 - GraphQLApi Hello World Example
11 - Full Stack
12 - Lambda EFS example
13 - Serverless Connector Hello World Example
14 - Multi-step workflow with Connectors
15 - DynamoDB Example
16 - Machine Learning
Template: 1
Use the most popular runtime and package type? (python3.13 and zip) [y/N]: N
Which runtime would you like to use?
1 - dotnet8
2 - dotnet6
3 - go (provided.al2)
4 - go (provided.al2023)
5 - graalvm.java11 (provided.al2)
6 - graalvm.java17 (provided.al2)
7 - java21
8 - java17
9 - java11
10 - java8.al2
11 - nodejs22.x
12 - nodejs20.x
13 - nodejs18.x
14 - python3.9
15 - python3.8
16 - python3.13
17 - python3.12
18 - python3.11
19 - python3.10
20 - ruby3.3
21 - ruby3.2
22 - rust (provided.al2)
23 - rust (provided.al2023)
Runtime: 4
What package type would you like to use?
1 - Zip
2 - Image
Package type: 1
# Paste the output of `sam --info` here
```Starting Build use cache
Cache is invalid, running build and copying resources for following functions (HelloWorldFunction)
Building codeuri: C:\Users\fsaye\cloud-resume-challenge\hello-world runtime: provided.al2023 architecture: x86_64 functions: HelloWorldFunction
Workflow GoModulesBuilder does not support value "False" for building in source. Using default value "True".
Build Failed
Error: GoModulesBuilder:Resolver - Path resolution for runtime: provided of binary: go was not successful
`Add --debug flag to command you are running`