Skip to content

Bootstrapper: fixed partial download - #1859

Merged
forki merged 2 commits into
fsprojects:masterfrom
Allon-Guralnek:Bootstrapper_FixPartialDownload
Aug 22, 2016
Merged

Bootstrapper: fixed partial download#1859
forki merged 2 commits into
fsprojects:masterfrom
Allon-Guralnek:Bootstrapper_FixPartialDownload

Conversation

@Allon-Guralnek

Copy link
Copy Markdown

For some reason, when downloading using the three-parameter DownloadFile method (which was only used by the GitHubDownloadStrategy), it only downloaded a partial file. The simpler two-parameter overload (used by NugetDownloadStrategyTests) always downloaded a full file. It seems the stream.CopyTo() used in the three-parameter overload doesn't work well. I removed the problematic overload (which wasn't needed anyway, the simpler one is better). Now Paket always downloads files correctly for me.

Allon Guralnek added 2 commits August 17, 2016 19:06
Commit by Allon Guralnek <allon.gu@gigya-inc.com>
On branch: refs/heads/Bootstrapper_FixPartialDownload
Commit by Allon Guralnek <allon.gu@gigya-inc.com>
On branch: refs/heads/Bootstrapper_FixPartialDownload
@forki
forki merged commit 8d164e7 into fsprojects:master Aug 22, 2016
@forki

forki commented Aug 22, 2016

Copy link
Copy Markdown
Member

cool thanks

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