-
Notifications
You must be signed in to change notification settings - Fork 142
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
Custom builder should not copy source files to temp folder #328
Comments
Thanks @zhuhaow for bringing this up. I will bring up this issue with the team and create a ticket for us to keep track of this internally. |
It would be awesome this can be improved. Currently, I’m maintaining my own fork which is a pain |
Thanks for the recommendation @zhuhaow The request makes sense, but we still need to maintain backward compatibility. For that reason, this could be tied into a flag in SAM CLI so that it won't be using TMP folder everytime it builds. I tagged this issue with so that our PMs can take a look at it. |
Closing so that we can track in the above issue ( |
Currently, the custom builder would copy the whole source code in
CodeUri
to a temp folder and runmake
there, causing aws/aws-sam-cli#3371, aws/aws-sam-cli#3350, aws/aws-sam-cli#3093, aws/aws-sam-cli#2688, to name a few.But consider this:
sam
to provide a clean build env for them in ANY case. If they want to run the build in a new snapshot folder, they can do it themselves.sam build
, which leads to 3.Makefile
, thesam
cannot do it for them anyway.However, copying the source code not only takes a lot of time but makes incremental building almost impossible since the build happens in a temp folder.
I'm seconding aws/aws-sam-cli#2655, but it should not be a feature, but a bug to fix. We may need a flag to guard this change but that's only for backward compatibility and building without copy should be the default behavior.
The text was updated successfully, but these errors were encountered: