Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
DeviaVir merged 1 commit intomotdotla:mastermotdotla/node-lambda:masterfrom
jsepia:masterjsepia/node-lambda:masterCopy head branch name to clipboard
Apr 24, 2021
Merged

Clean the tmp directory during _archivePrebuilt to match _buildAndArchive behavior#518
DeviaVir merged 1 commit intomotdotla:mastermotdotla/node-lambda:masterfrom
jsepia:masterjsepia/node-lambda:masterCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.