From f649cb9bd1b9192a22da1fb601bcf657e50c8f82 Mon Sep 17 00:00:00 2001 From: Nolan Brubaker Date: Thu, 17 Sep 2020 17:08:26 -0400 Subject: [PATCH] Fix 'subcommand required' error w/ cobra upgrade (#2947) Signed-off-by: Nolan Brubaker --- changelogs/unreleased/2947-nrb | 1 + go.mod | 2 +- go.sum | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/2947-nrb diff --git a/changelogs/unreleased/2947-nrb b/changelogs/unreleased/2947-nrb new file mode 100644 index 0000000000..68218b25be --- /dev/null +++ b/changelogs/unreleased/2947-nrb @@ -0,0 +1 @@ +Fix issue where bare `velero` command returned an error code. diff --git a/go.mod b/go.mod index 1ad74411c2..a2fee27e4b 100644 --- a/go.mod +++ b/go.mod @@ -26,7 +26,7 @@ require ( github.com/robfig/cron v1.1.0 github.com/sirupsen/logrus v1.4.2 github.com/spf13/afero v1.2.2 - github.com/spf13/cobra v0.0.6 + github.com/spf13/cobra v0.0.7 github.com/spf13/pflag v1.0.5 github.com/stretchr/testify v1.4.0 golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7 diff --git a/go.sum b/go.sum index 22e22f8fd1..e0f90ce9fd 100644 --- a/go.sum +++ b/go.sum @@ -611,6 +611,8 @@ github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3 github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v0.0.6 h1:breEStsVwemnKh2/s6gMvSdMEkwW0sK8vGStnlVBMCs= github.com/spf13/cobra v0.0.6/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v0.0.7 h1:FfTH+vuMXOas8jmfb5/M7dzEYx7LpcLb7a0LPe34uOU= +github.com/spf13/cobra v0.0.7/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/jwalterweatherman v0.0.0-20180109140146-7c0cea34c8ec/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=