Update from /github.com/vbauerster/mpb/v7 to /v8

Also update to c/image after https://github.com/containers/image/pull/1821 ,
so that we don't ship two versions of the package simultaneously.

[NO NEW TESTS NEEDED]

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2023-02-02 18:35:24 +01:00
parent e64508378f
commit be47eeb85c
58 changed files with 1078 additions and 791 deletions

10
vendor/github.com/vbauerster/mpb/v8/internal/width.go generated vendored Normal file
View File

@@ -0,0 +1,10 @@
package internal
// CheckRequestedWidth checks that requested width doesn't overflow
// available width
func CheckRequestedWidth(requested, available int) int {
if requested < 1 || requested >= available {
return available
}
return requested
}