Skip to content
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

Clean the tmp directory during _archivePrebuilt to match _buildAndArchive behavior #518

Merged
merged 1 commit into from
Apr 24, 2021

Conversation

jsepia
Copy link
Contributor

@jsepia jsepia commented Feb 29, 2020

I recently noticed an issue where if prebuiltDirectory was set, the zip file generated by node-lambda package would include files I had already deleted from my source. Turns out it was combining the output of the current run with the contents of earlier runs. The fix is to clean the _codeDirectory() before writing to it, which matches the existing node-lambda package behavior when prebuiltDirectory is not set.

Other than running the unit tests, I tested the changes in my project and verified that the temp directory is emptied between runs.

@DeviaVir DeviaVir merged commit 91f4327 into motdotla:master Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants