-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(scoop-download): Add failure check #4822
fix(scoop-download): Add failure check #4822
Conversation
I don't think we should do this. The default value of aria2-enabled config variable is always true, meaning that the warning will always be shown to users who are new to Scoop, and users who have never installed aria2. This will be annoying for some people, and is a breaking UX change. |
Oh, I didn't know that aria2-enabled is set to true by default for new users. Why is it set to true if aria2 is not installed by default? |
See https://github.com/ScoopInstaller/Scoop#multi-connection-downloads-with-aria2 Aria2 was supposed to provide a better (and resumable) download experience, so the devs enabled it by default. The only requirement was installing aria2 |
Huh weird, kinda defeats the point of having a config if it's on by default but doing nothing. But anyway yeah I'll get rid of that warning/check. |
LGTM. Please update the changelog (with same entry as the PR's title). |
Done! Are there any tests to run? |
No |
Description
scoop-download
catches an error indl_with_cache
, now a variable is saved so that the final success message will not appear.Whenaria2
is enabled but not installed,Test-Aria2Enabled
now warns the user that the standard download method will be used instead ofaria2
Motivation and Context
Closes #4810
How Has This Been Tested?
I tested running this without internet and the failure was successfully caught, I tested both with aria2 and without so I have tested
dl_with_cache
anddl_with_cache_aria2
.This shows both changes in action:
^^ see no "success" and a warning about aria2!
Checklist:
^^ is there any documentation I should add and are there any tests to update?