-
Notifications
You must be signed in to change notification settings - Fork 454
Open
Labels
package managementproposalRFC's that are awaiting discussion to be accepted or rejectedRFC's that are awaiting discussion to be accepted or rejected
Description
Problem
When we do:
dune pkg lock
it typically take some time because we are fetching or cloning in the background.
Proposal
We could have a download indicator that looks like the following:
[0.1/5.2 MiB] <spinny thing> Downloading opam-repository https://opam.ocaml.org
This would give users a much better experience when waiting.
Implementation
We use opam libraries to fetch and clone repos. We could modify the calls to git by parsing from git fetch and git clone:
--progress
Progress status is reported on the standard error stream by default when
it is attached to a terminal, unless -q is specified. This flag forces
progress status even if the standard error stream is not directed to a
terminal.
When we have these we then parse and display a nice status.
Related PRs
- Progress indicators on jobs: feature(monitor): add Jobs tab in tui mode #8601
- Download friendly byte units: feature: add KiB,MiB,GiB and TiB values #8618
Metadata
Metadata
Assignees
Labels
package managementproposalRFC's that are awaiting discussion to be accepted or rejectedRFC's that are awaiting discussion to be accepted or rejected