Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created March 13, 2020 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/d18d5725c6055db4f93db3cd78f66bca to your computer and use it in GitHub Desktop.
Save isaacs/d18d5725c6055db4f93db3cd78f66bca to your computer and use it in GitHub Desktop.
diff --git a/lib/fetcher.js b/lib/fetcher.js
index 4c5efdc..22701df 100644
--- a/lib/fetcher.js
+++ b/lib/fetcher.js
@@ -271,7 +271,8 @@ class FetcherBase {
}. Extracting by manifest.`)
}
return this.resolve().then(() => retry(tryAgain =>
- streamHandler(this[_istream](this[_tarballFromResolved]()))
+ this[_tarballFromResolved]()
+ .then(stream => streamHandler(this[_istream](stream)))
.catch(er => {
// Most likely data integrity. A cache ENOENT error is unlikely
// here, since we're definitely not reading from the cache, but it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment