Use 'unzipper' node module instead of system 'unzip' #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was deploying on an environment where
unzip
is not available as a system binary. Therefore, I replaced the call to the systemunzip
with the unzipper Node.js module. This way, the plugin can work in environments whereunzip
is not available in the system.Beyond that, also made a few other changes:
yarn.lock
gcloud
with@google-cloud/storage
.gcloud
has been superseded bygoogle-cloud
and then by@google-cloud/storage
.fs-promise
There are no tests in the repo but I can confirm that my changes work. I've been deploying application using this branch.