Skip to content
Permalink
Browse files

add CI specific upgrade to avoid progress bar

which never renders correctly
  • Loading branch information...
tj committed Mar 5, 2018
1 parent 1feb11d commit b5e19c53475d332b1d0ed68f4c787701aefa2e59
Showing with 11 additions and 3 deletions.
  1. +11 −3 internal/cli/upgrade/upgrade.go
@@ -87,9 +87,17 @@ func init() {
}

// download tarball to a tmp dir
tarball, err := a.DownloadProxy(progressreader.New)
if err != nil {
return errors.Wrap(err, "downloading tarball")
var tarball string
if util.IsCI() {
tarball, err = a.Download()
if err != nil {
return errors.Wrap(err, "downloading tarball")
}
} else {
tarball, err = a.DownloadProxy(progressreader.New)
if err != nil {
return errors.Wrap(err, "downloading tarball")
}
}

// determine path

0 comments on commit b5e19c5

Please sign in to comment.
You can’t perform that action at this time.