Skip to content

Commit

Permalink
backport 3.5: etcd-io#13571 Update Cobra version to 1.2.1 to fix CVE-…
Browse files Browse the repository at this point in the history
…2020-26160

Signed-off-by: Kay Yan <kay.yan@daocloud.io>
  • Loading branch information
yankay committed Mar 14, 2022
1 parent 39baf36 commit 34e09c9
Show file tree
Hide file tree
Showing 12 changed files with 1,579 additions and 343 deletions.
2 changes: 1 addition & 1 deletion etcdctl/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/bgentry/speakeasy v0.1.0
github.com/dustin/go-humanize v1.0.0
github.com/olekukonko/tablewriter v0.0.5
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/urfave/cli v1.22.4
go.etcd.io/etcd/api/v3 v3.5.2
Expand Down
299 changes: 250 additions & 49 deletions etcdctl/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion etcdutl/go.mod
Expand Up @@ -23,7 +23,7 @@ replace (
require (
github.com/dustin/go-humanize v1.0.0
github.com/olekukonko/tablewriter v0.0.5
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
go.etcd.io/bbolt v1.3.6
go.etcd.io/etcd/api/v3 v3.5.2
go.etcd.io/etcd/client/pkg/v3 v3.5.2
Expand Down
299 changes: 250 additions & 49 deletions etcdutl/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -18,7 +18,7 @@ replace (
require (
github.com/bgentry/speakeasy v0.1.0
github.com/dustin/go-humanize v1.0.0
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
go.etcd.io/bbolt v1.3.6
go.etcd.io/etcd/api/v3 v3.5.2
go.etcd.io/etcd/client/pkg/v3 v3.5.2
Expand Down
301 changes: 251 additions & 50 deletions go.sum

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions pkg/go.mod
Expand Up @@ -5,8 +5,7 @@ go 1.16
require (
github.com/creack/pty v1.1.11
github.com/dustin/go-humanize v1.0.0
github.com/golang/protobuf v1.5.1 // indirect
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
go.etcd.io/etcd/client/pkg/v3 v3.5.2
Expand All @@ -15,9 +14,14 @@ require (
)

replace (
go.etcd.io/etcd => ./FORBIDDEN_DEPENDENCY
go.etcd.io/etcd/api/v3 => ./FORBIDDEN_DEPENDENCY
go.etcd.io/etcd/api/v3 => ../api
go.etcd.io/etcd/client/pkg/v3 => ../client/pkg
go.etcd.io/etcd/tests/v3 => ./FORBIDDEN_DEPENDENCY
)

// Bad imports are sometimes causing attempts to pull that code.
// This makes the error more explicit.
replace (
go.etcd.io/etcd => ./FORBIDDEN_DEPENDENCY
go.etcd.io/etcd/v3 => ./FORBIDDEN_DEPENDENCY
go.etcd.io/tests/v3 => ./FORBIDDEN_DEPENDENCY
)
396 changes: 311 additions & 85 deletions pkg/go.sum

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion server/go.mod
Expand Up @@ -11,6 +11,7 @@ require (
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
github.com/golang/protobuf v1.5.2
github.com/google/btree v1.0.1
github.com/gorilla/websocket v1.5.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/grpc-ecosystem/grpc-gateway v1.16.0
Expand All @@ -20,7 +21,7 @@ require (
github.com/prometheus/client_model v0.2.0
github.com/sirupsen/logrus v1.7.0 // indirect
github.com/soheilhy/cmux v0.1.5
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
github.com/stretchr/testify v1.7.0
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2
Expand Down
301 changes: 251 additions & 50 deletions server/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/go.mod
Expand Up @@ -24,7 +24,7 @@ require (
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/prometheus/client_golang v1.11.0
github.com/soheilhy/cmux v0.1.5
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
go.etcd.io/bbolt v1.3.6
Expand Down
301 changes: 251 additions & 50 deletions tests/go.sum

Large diffs are not rendered by default.

0 comments on commit 34e09c9

Please sign in to comment.