cmd/htpacker: swap out progress bar library

Switch to a simpler progress bar library. I've been having trouble tracking
down a panic that seemed to affect the prior code; the new code is much
easier and uses far fewer async channels and things.
This commit is contained in:
Laurence Withers 2024-08-24 09:54:25 +01:00
commit 19b2560e2d
6 changed files with 144 additions and 177 deletions

View file

@ -144,7 +144,7 @@ func PackSpec(c *cobra.Command, spec, out string) error {
}
func doPack(ftp packer.FilesToPack, out string) error {
prog := mpbProgress(ftp)
prog := newUiProgress(ftp)
err := packer.Pack2(ftp, out, prog)
prog.Complete()