-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
progress bars: use github.com/vbauerster/mpb
Use the github.com/vbauerster/mpb library for displaying the progress bars. It is actively maintained, is designed for multi-bar usage and just gets the job done. This will fix issues with single bars being displayed multiple times. Note that updating the bar's prefix does not work anymore. We're now logging those entries, for instance, when we skip a blob as it's already present. The output now looks as follows (e.g., when pulling jboss/wildfly): ``` Getting image source signatures Copying blob aeb7866da422 [======================================] 71.2 MiB / 71.2 MiB Copying blob 157601a0b538 [======================================] 10.3 MiB / 10.3 MiB Copying blob 642f4164f381 [======================================] 1.9 KiB / 1.9 KiB Copying blob bda512e97517 [======================================] 74.6 MiB / 74.6 MiB Copying blob 4cccaafdae21 [======================================] 170.9 MiB / 170.9 MiB Copying config 2602b48525 [======================================] 6.5KiB / 6.5KiB Writing manifest to image destination Storing signatures ``` Note that this change requires the following dependencies: * github.com/vbauerster/mpb v3.3.4 * github.com/mattn/go-isatty v0.0.4 * github.com/VividCortex/ewma v1.1.1 Once we migrate to using Go modules, we can start using mpb v4.x. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
- Loading branch information
Showing
2 changed files
with
48 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters