diff --git a/internal/printer/printer.go b/internal/printer/printer.go index 01fda883..60978398 100644 --- a/internal/printer/printer.go +++ b/internal/printer/printer.go @@ -133,6 +133,11 @@ func (p *Printer) PrintProgress(message string) func() { s.Start() return func() { s.Stop() + + // NOTE(fatih) the spinner library doesn't clear the line properly, + // hence remove it ourselves. This line should be removed once it's + // fixed in upstream. https://github.com/briandowns/spinner/pull/117 + fmt.Fprint(p.out(), "\r\033[2K") } }