You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sam): set working directory for sam build#2755
Problem:
All of our SAM CLI invocations are ran without an explicit working directory.
This creates tons of hard-to-diagnose problems.
Solution:
* Explicitly set a working directory for `sam build` to the template's
directory. This mimics the typical situation when running `sam build` in
a terminal.
* This correctly creates a `.aws-sam` directory adjacent to the target
template.
* Other `sam` commands are still affected although they are harder to change
without breaking things due to the temporary directory :/
* The way the Toolkit + SAM CLI interact is incredibly brittle and this
solution is just a mitigation.
ref #2050
ref #2395
0 commit comments