From 099938839dd262e4682bc4050da331ed1221aeae Mon Sep 17 00:00:00 2001 From: Nikita Pivkin Date: Mon, 4 Dec 2023 13:14:15 +0300 Subject: [PATCH] chore(deps): use github.com/cheggaaa/pb/v3 (#260) --- amazon/amazon.go | 2 +- go.mod | 1 - go.sum | 2 -- nvd/nvd.go | 2 +- oracle/oval/oval.go | 2 +- utils/utils.go | 2 +- 6 files changed, 4 insertions(+), 7 deletions(-) diff --git a/amazon/amazon.go b/amazon/amazon.go index 3f4b37a..6d8f4e1 100644 --- a/amazon/amazon.go +++ b/amazon/amazon.go @@ -12,8 +12,8 @@ import ( "path" "path/filepath" + "github.com/cheggaaa/pb/v3" "golang.org/x/xerrors" - "gopkg.in/cheggaaa/pb.v1" "github.com/aquasecurity/vuln-list-update/utils" ) diff --git a/go.mod b/go.mod index f70d6ca..56efcf6 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,6 @@ require ( golang.org/x/exp v0.0.0-20220321124402-2d6d886f8a82 golang.org/x/oauth2 v0.15.0 golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 - gopkg.in/cheggaaa/pb.v1 v1.0.28 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/go.sum b/go.sum index f1bdbb8..abde0e0 100644 --- a/go.sum +++ b/go.sum @@ -978,8 +978,6 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/cheggaaa/pb.v1 v1.0.28 h1:n1tBJnnK2r7g9OW2btFH91V92STTUevLXYFb8gy9EMk= -gopkg.in/cheggaaa/pb.v1 v1.0.28/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/cheggaaa/pb.v2 v2.0.7 h1:beaAg8eacCdMQS9Y7obFEtkY7gQl0uZ6Zayb3ry41VY= gopkg.in/cheggaaa/pb.v2 v2.0.7/go.mod h1:0CiZ1p8pvtxBlQpLXkHuUTpdJ1shm3OqCF1QugkjHL4= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= diff --git a/nvd/nvd.go b/nvd/nvd.go index d756bc0..36d6e97 100644 --- a/nvd/nvd.go +++ b/nvd/nvd.go @@ -11,9 +11,9 @@ import ( "strings" "time" + pb "github.com/cheggaaa/pb/v3" jsonpointer "github.com/mattn/go-jsonpointer" "golang.org/x/xerrors" - pb "gopkg.in/cheggaaa/pb.v1" "github.com/aquasecurity/vuln-list-update/utils" ) diff --git a/oracle/oval/oval.go b/oracle/oval/oval.go index b74aa80..b4fbce9 100644 --- a/oracle/oval/oval.go +++ b/oracle/oval/oval.go @@ -9,9 +9,9 @@ import ( "path/filepath" "strings" + pb "github.com/cheggaaa/pb/v3" "github.com/spf13/afero" "golang.org/x/xerrors" - pb "gopkg.in/cheggaaa/pb.v1" "github.com/aquasecurity/vuln-list-update/utils" ) diff --git a/utils/utils.go b/utils/utils.go index a64352d..2585145 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -14,9 +14,9 @@ import ( "strings" "time" + pb "github.com/cheggaaa/pb/v3" "github.com/parnurzeal/gorequest" "golang.org/x/xerrors" - pb "gopkg.in/cheggaaa/pb.v1" ) var vulnListDir = filepath.Join(CacheDir(), "vuln-list")