dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
679 stars 67 forks source link

Resuming downloads #196

Open tobimensch opened 4 years ago

tobimensch commented 4 years ago

While downloading the latest C sources from github choosenim ended with a http error. This is annoying when you've already downloaded past 60MB on a slow connection.

On top of that choosenim didn't resume the download, and started at zero instead.

Apparently choosenim can use curl internally already, which probably could allow for this resuming downloads feature, but it's not clear to me, if somebody has attempted to implement it already.

Of all download tools my best experiences were with aria2 (wget, curl, aria2), maybe detection for this great tool could be built into choosenim, and it would certainly be able to resume downloads. Curl is also very good though, and whatever way you could take to fix this issue would be alright with me.

dom96 commented 3 years ago

curl is only used when its installed by default (macOS currently). Happy to accept PRs to implement this feature although it may require support in Nim's httpclient.