diff --git a/vendor.mod b/vendor.mod index 45b401d01156..4ecf0b890bcc 100644 --- a/vendor.mod +++ b/vendor.mod @@ -36,7 +36,7 @@ require ( github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 - github.com/spf13/cobra v1.9.0 + github.com/spf13/cobra v1.9.1-0.20250216180814-a97f9fd47b29 // main (v1.9.1 with https://github.com/spf13/cobra/pull/2234) github.com/spf13/pflag v1.0.6 github.com/theupdateframework/notary v0.7.1-0.20210315103452-bf96a202a09a github.com/tonistiigi/go-rosetta v0.0.0-20220804170347-3f4430f2d346 diff --git a/vendor.sum b/vendor.sum index 5aa0e996472d..711ae6ebed82 100644 --- a/vendor.sum +++ b/vendor.sum @@ -245,8 +245,8 @@ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs github.com/spf13/cast v0.0.0-20150508191742-4d07383ffe94 h1:JmfC365KywYwHB946TTiQWEb8kqPY+pybPLoGE9GgVk= github.com/spf13/cast v0.0.0-20150508191742-4d07383ffe94/go.mod h1:r2rcYCSwa1IExKTDiTfzaxqT2FNHs8hODu4LnUfgKEg= github.com/spf13/cobra v0.0.1/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v1.9.0 h1:Py5fIuq/lJsRYxcxfOtsJqpmwJWCMOUy2tMJYV8TNHE= -github.com/spf13/cobra v1.9.0/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= +github.com/spf13/cobra v1.9.1-0.20250216180814-a97f9fd47b29 h1:T4I0anFM/R651NIF7OgziQmbV2baG+29KsH0+/mlgn0= +github.com/spf13/cobra v1.9.1-0.20250216180814-a97f9fd47b29/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= github.com/spf13/jwalterweatherman v0.0.0-20141219030609-3d60171a6431 h1:XTHrT015sxHyJ5FnQ0AeemSspZWaDq7DoTRW0EVsDCE= github.com/spf13/jwalterweatherman v0.0.0-20141219030609-3d60171a6431/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/pflag v1.0.0/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= diff --git a/vendor/github.com/spf13/cobra/completions.go b/vendor/github.com/spf13/cobra/completions.go index cedb4d7c2ae5..a1752f763175 100644 --- a/vendor/github.com/spf13/cobra/completions.go +++ b/vendor/github.com/spf13/cobra/completions.go @@ -129,7 +129,7 @@ type CompletionOptions struct { type Completion = string // CompletionFunc is a function that provides completion results. -type CompletionFunc func(cmd *Command, args []string, toComplete string) ([]Completion, ShellCompDirective) +type CompletionFunc = func(cmd *Command, args []string, toComplete string) ([]Completion, ShellCompDirective) // CompletionWithDesc returns a [Completion] with a description by using the TAB delimited format. func CompletionWithDesc(choice string, description string) Completion { diff --git a/vendor/modules.txt b/vendor/modules.txt index fcb7d3c6f1c8..30c027cd5461 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -272,7 +272,7 @@ github.com/rivo/uniseg # github.com/sirupsen/logrus v1.9.3 ## explicit; go 1.13 github.com/sirupsen/logrus -# github.com/spf13/cobra v1.9.0 +# github.com/spf13/cobra v1.9.1-0.20250216180814-a97f9fd47b29 ## explicit; go 1.15 github.com/spf13/cobra # github.com/spf13/pflag v1.0.6