forked from github/vscode-codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save downloaded DB archives to disk before unzipping (github#700)
This fixes two classes of DBs that can't be installed directly from downloading: 1. DBs whose central directories do not align with their file headers. We need to download and save the entire archive before we can read the central directory and use that to guide the unzipping. 2. Large DBs require too much memory so can't be downloaded and unzipped in a single stream. We also add proper progress notifications to the download progress monitor so users are aware of how many more MBs are left to download. It's not yet possible to do the same for unzipping using the current unzipper library, since unzipping using the central directory does not expose a stream. Co-authored-by: Alexander Eyers-Taylor <[email protected]>
- Loading branch information
1 parent
ded11ed
commit bba8c55
Showing
5 changed files
with
286 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.