fix lint
parent
9784ce3051
commit
e771b72a82
|
@ -14,10 +14,6 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// This file implements a go-getter wrapper for cheggaaa progress bar
|
|
||||||
// based on:
|
|
||||||
// https://github.com/hashicorp/go-getter/blob/master/cmd/go-getter/progress_tracking.go
|
|
||||||
|
|
||||||
package download
|
package download
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -25,7 +21,6 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/cheggaaa/pb/v3"
|
|
||||||
"github.com/hashicorp/go-getter"
|
"github.com/hashicorp/go-getter"
|
||||||
"k8s.io/minikube/pkg/minikube/out/register"
|
"k8s.io/minikube/pkg/minikube/out/register"
|
||||||
)
|
)
|
||||||
|
@ -33,8 +28,7 @@ import (
|
||||||
var DefaultJSONOutput getter.ProgressTracker = &jsonOutput{}
|
var DefaultJSONOutput getter.ProgressTracker = &jsonOutput{}
|
||||||
|
|
||||||
type jsonOutput struct {
|
type jsonOutput struct {
|
||||||
lock sync.Mutex
|
lock sync.Mutex
|
||||||
progress *pb.ProgressBar
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TrackProgress prints out progress of the stream in JSON format until closed
|
// TrackProgress prints out progress of the stream in JSON format until closed
|
||||||
|
|
Loading…
Reference in New Issue