-
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
static_dir relative to .aws-sam/build directory #3309
Comments
Hi @mushishi78 , Thanks for reporting this. I took a quick look and it seem to be expected behavior. Based on this code it seem to resolve the static resource path relative to where the template file is. Now if the project hasn't been built then it should resolve based on the template file in the project. But if the project is built then it will resolve based on the template file in I don't think this is an issue with Thanks |
Thanks Tarun for the quick and well explained response. I'm sure I'll be happy with whatever conclusion your team reaches. Thanks for your help |
@mushishi78 Thanks for your understanding! Since this is expected behaviour I will close this issue for now please feel free to reach out or re-open the ticket if you have any further concerns! Thanks! |
|
Description:
When using the
--static-dir
argument, it's says and the code seems to think that it's relative to the current working directory, but thecwd
seems to be.aws-sam/build
not where the command is invoked fromSteps to reproduce:
sam local start-api -s ./public
Observed result:
Can't find the folder unless you do
sam local start-api -s ../../public
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.32.0I can see this output says something about
--base-dir is not presented, adjusting uri
but I've tried using that argument with the preceedingsam build
command it didn't seem to do much.The text was updated successfully, but these errors were encountered: