From 990fcc4818b6ae570342d14097216504775b2dd8 Mon Sep 17 00:00:00 2001 From: CuriousCorrelation Date: Sun, 3 Jul 2022 18:10:49 +0530 Subject: [PATCH 1/2] build: bump cobra version to "1.5.0" --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 561e619622..5c9ab1bfa1 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/olekukonko/tablewriter v0.0.5 github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 - github.com/spf13/cobra v1.1.3 + github.com/spf13/cobra v1.5.0 github.com/spf13/viper v1.7.1 github.com/stretchr/testify v1.7.0 github.com/xeipuuv/gojsonschema v1.2.0 diff --git a/go.sum b/go.sum index 17da35bd3a..a3f81997e8 100644 --- a/go.sum +++ b/go.sum @@ -346,8 +346,8 @@ github.com/spf13/afero v1.8.1 h1:izYHOT71f9iZ7iq37Uqjael60/vYC6vMtzedudZ0zEk= github.com/spf13/afero v1.8.1/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v1.1.3 h1:xghbfqPkxzxP3C/f3n5DdpAbdKLj4ZE4BWQI362l53M= -github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= +github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU= +github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM= github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= From b2ca076df79ee7abbd2ec4dff48f811f0cc8fb55 Mon Sep 17 00:00:00 2001 From: CuriousCorrelation Date: Sun, 3 Jul 2022 18:11:10 +0530 Subject: [PATCH 2/2] fix: zsh completion test for cobra v1.5.0 --- cmd/completion/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/completion/main_test.go b/cmd/completion/main_test.go index 3dabd05856..cde139fcfa 100644 --- a/cmd/completion/main_test.go +++ b/cmd/completion/main_test.go @@ -30,7 +30,7 @@ func Test_ExecuteCommand(t *testing.T) { cmd.Execute() got := out.(*bytes.Buffer).Bytes() - expected := []byte(`#compdef _completion completion`) + expected := []byte(`#compdef completion`) assert.Equal(t, string(expected), string(got)[:len(expected)]) })