-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
add a progress bar when fetching packages #16463
Comments
I’m willing to attempt solving this issue! I will also respond quickly if I feel this is too far out of my wheelhouse, so that I’m not wasting anyone’s time. (I’m quite new at contributing to OSS, so I’m not sure about the normal way to show interest in a specific issue.) |
I'd quite like to get a basic impl of this in for 0.11 - it'll save a lot of confusion over the next few months - so would it be possible for you to try and get it done in the next week or do? I'm happy to take it on if not, I just don't like nabbing contributor-friendly issues from people. If you want to get started with this, you can take a look at the |
Thanks for the tips! |
@VeroAsghar that's totally fine, I'm not trying to rush you, just wanna get it in before 0.11 :) good luck! |
A warning about this implementation: if you want to find the length of a http response you'll need to pull it from |
So far I'm able to increment the progress bar by the amount of packages in the .zon file, with a placeholder file size.
The problem I currently have is getting the content-length from the request, as |
Hmmmmmmmm I think we may have stumbled our way into a proposal: #16528 |
Zig is silent while it downloads third party packages from the Internet, which could take an arbitrarily long time.
Instead, it should report the progress, network speed, and which packages it is currently on, as expected by our esteemed users.
zig/src/main.zig
Lines 4449 to 4462 in 8a18abf
The text was updated successfully, but these errors were encountered: