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 1b8ffa4
Show file tree
Hide file tree
Showing 12 changed files with 1,581 additions and 120 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
271 changes: 249 additions & 22 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
271 changes: 249 additions & 22 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
271 changes: 249 additions & 22 deletions go.sum

Large diffs are not rendered by default.

31 changes: 26 additions & 5 deletions pkg/go.mod
Expand Up @@ -3,21 +3,42 @@ module go.etcd.io/etcd/pkg/v3
go 1.16

require (
github.com/coreos/bbolt v1.3.2 // indirect
github.com/coreos/etcd v3.3.13+incompatible // indirect
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e // indirect
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
github.com/creack/pty v1.1.11
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
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/gorilla/websocket v1.4.2 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/jonboulle/clockwork v0.1.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/prometheus/client_golang v0.9.3 // indirect
github.com/soheilhy/cmux v0.1.4 // indirect
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
go.etcd.io/bbolt v1.3.2 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.2
go.uber.org/zap v1.17.0
google.golang.org/grpc v1.38.0
gopkg.in/resty.v1 v1.12.0 // indirect
)

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
)
305 changes: 305 additions & 0 deletions pkg/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/go.mod
Expand Up @@ -20,7 +20,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
271 changes: 249 additions & 22 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
271 changes: 249 additions & 22 deletions tests/go.sum

Large diffs are not rendered by default.

0 comments on commit 1b8ffa4

Please sign in to comment.