winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

[Feature request] Handle multiple download sources/mirrors

Open o-l-a-v opened this issue 4 years ago • 4 comments

Description of the new feature/enhancement

Request

  • Ability to add multiple URLs to same installer

Why?

  • Speed
    • Example: Foxit CDN is super slow. But they got two CDNs. Forces combined, 2x super slow = slow.
  • Reliability, redundance.

Example

  • https://cdn01.foxitsoftware.com/product/reader/desktop/win/11.0.1/FoxitPDFReader1101_L10N_Setup_Prom.exe
  • https://cdn02.foxitsoftware.com/product/reader/desktop/win/11.0.1/FoxitPDFReader1101_L10N_Setup_Prom.exe

Potential blocker

  • Requires complex download logic that might not be in place already?
    • Free Download Manager manages it for instance image

Proposed technical implementation details (optional)

  • Update cli to handle the download logic, if not already implemented.
  • Update manifest scheme to accept one or multiple URLs to the same file.

o-l-a-v avatar Oct 14 '21 08:10 o-l-a-v

The problem with this is it complicates verifying the download and any retry logic

Masamune3210 avatar Oct 14 '21 13:10 Masamune3210

Maybe one could use a open source downloader like aria2?

  • https://github.com/aria2/aria2

And use exit code + checksum to verify success.

o-l-a-v avatar Oct 14 '21 14:10 o-l-a-v

Related to:

  • #225
  • #673

denelon avatar Oct 14 '21 14:10 denelon

Similor issue with KiCad, Different mirrors has different bandwidth available depending on the location you are downloading from. Default github source is very very slow.

kdpuvvadi avatar Oct 23 '23 17:10 kdpuvvadi