Skip to content

Commit

Permalink
deps: Upgrade to Cobra v1.4.0 (#9306)
Browse files Browse the repository at this point in the history
* deps: Upgrade to Cobra v1.4.0

This commit upgrades the usage of Cobra to [v1.4.0][1], which reduces
the dependency set by removing the dependency on Viper. The upgrade
happens across both `sdk` and `pkg`.

Full details on the upgrades upstream in Cobra are available via the
release notes, but [2] contains further motivating examples of reduced
dependencies via separation of the (rarely used) Cobra bootstrapping CLI
and the library itself.

[1]: https://github.com/spf13/cobra/releases/tag/v1.4.0

[2]: spf13/cobra#1138

* Update tests/go.mod

Co-authored-by: Fraser Waters <fraser@pulumi.com>
  • Loading branch information
jen20 and Frassle committed Mar 28, 2022
1 parent 766a4d2 commit dc6ac2f
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 204 deletions.
11 changes: 5 additions & 6 deletions pkg/go.mod
Expand Up @@ -44,8 +44,8 @@ require (
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546 // indirect
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.3
github.com/spf13/cobra v1.4.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.6.1
github.com/tklauser/go-sysconf v0.3.8 // indirect
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7
Expand Down Expand Up @@ -88,7 +88,7 @@ require (
github.com/agext/levenshtein v1.2.1 // indirect
github.com/apparentlymart/go-textseg v1.0.0 // indirect
github.com/cheggaaa/pb v1.0.18 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect
Expand Down Expand Up @@ -131,10 +131,9 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/russross/blackfriday/v2 v2.0.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94 // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
github.com/src-d/gcfg v1.4.0 // indirect
github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 // indirect
github.com/tklauser/numcpus v0.2.3 // indirect
Expand All @@ -158,7 +157,7 @@ require (
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

require (
Expand Down

0 comments on commit dc6ac2f

Please sign in to comment.