-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BuildMethod: makefile not passing Version parameter #3158
Comments
Hey @kaihendry, thanks for posting this issue. I was able to reproduce the issue. I tried to hard-code version number by assign the value directly or using |
When I run for example, no problem locally with
Which leads me to think that when sam-build is run, it's not properly running GNU Make and evaluating the $(shell). For example |
Looked into the code and found the cause. When we added |
I'm not sure how you can reliably set your_repo, given this can be cloned out anywhere? I don't want to have to edit the Makefile with the PWD. Or am I missing something?? |
Is there some env I can rely upon? |
Using I will sync up with the team and post updates here. |
A variant of the following worked as a workaround for me:
|
@xazhao ideally the |
Description:
https://github.com/kaihendry/aws-sam-gateway-example/blob/master/Makefile#L14 does not appear to embed Version set by
Steps to reproduce:
make
Observed result:
Version appears unset
Expected result:
Additional environment details (Ex: Arch Linux)
Add --debug flag to any SAM CLI commands you are running
The text was updated successfully, but these errors were encountered: