-
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
Mounting handler functions in v0.2.2 #170
Comments
I was just about to open a new issue regarding the logs when I found this, which happens to also cover the relative pathing issue I opened earlier today. Closing #258 now and adding what I found regarding relative paths below: As far as I can tell from reading over the source (forgive me, I've never worked in Go), the issue resides here: https://github.com/awslabs/aws-sam-local/blob/bd1672469e85bf533ee10849773ee7c92a854411/runtime.go#L262-L290 When the API runtime is instantiated, the As an example, let's assume a project
This can be countered by setting |
I'm having the same problem.
sam version 0.2.11 |
Can you try the latest release - https://github.com/awslabs/aws-sam-cli/releases/tag/v0.3.0? I believe this is fixed. Feel free to re-open Issue if not. |
Mounting handler functions shows inconsistent behaviour when upgrading version from
0.2.0
to0.2.2
. Has this something to do with http router rewrite?I have a project structure like following
Problem 1
CodeUri: ../src
is not working anymore. Resolving module will fail. Only workaround I have found is to movetemplate.yaml
to project root and useCodeUri: src/
.Problem 2
Invalid logs at startup
Running
sam local start-api --template template/template.yaml
gets me following:v0.2.0
v0.2.2
The text was updated successfully, but these errors were encountered: