Skip to content

Commit 781d1b8

Browse files
committed
pkg/downloader: use stderr
Signed-off-by: Akihiro Suda <[email protected]>
1 parent c33e3ed commit 781d1b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/downloader/downloader.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ func downloadHTTP(localPath, url string, description string, expectedDigest dige
441441
if description == "" {
442442
description = url
443443
}
444-
fmt.Printf("Downloading %s\n", description)
444+
// stderr corresponds to the progress bar output
445+
fmt.Fprintf(os.Stderr, "Downloading %s\n", description)
445446
}
446447
bar.Start()
447448
if _, err := io.Copy(multiWriter, bar.NewProxyReader(resp.Body)); err != nil {

0 commit comments

Comments
 (0)