Closed Mike-Nahmias closed 5 years ago
@Mike-Nahmias Thanks for the report. The current behavior is a fresh/clean build every time. The issue with incremental builds is how we will support this within the container (when --use-container
option is passed). Not saying this isn't an issue but one of the reasons why we started with clean builds.
We already have an open issue for this request (#805). So closing this in favor of the one already open. Feel free to add further thoughts and comment there.
Closing as this is a duplicate
Description
I was starting to create a feature request for an option to run
sam build
and skip dependencies due to the amount of time it takes. However, it seems that the larger issue is PythonPipBuilder redownloading everything even though dependencies aren't changing. Every time I make a change to a function and want to test it again I have to runsam build
. Most of the time spent is building Python dependencies even though none of them changed. I'd say 99% of the time when I runsam build
it's just to update the code.Steps to reproduce
sam build --debug
sam build --debug
again and you'll see that it's redownloading everythingObserved result
Expected result
I would expect it to see that all requirements are already met.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 0.19.0