Panic: unable to redefine 'v' shorthand in "create" flagset: it's already used for "value" flag

Describe your issue here

I’m running into an issue while building the container from github.

Variable GIT_COMMIT_ID has been deleted
panic: unable to redefine 'v' shorthand in "create" flagset: it's already used for "value" flag

goroutine 1 [running]:
github.com/spf13/pflag.(*FlagSet).AddFlag(0xc0001e2e00, 0xc0002085a0)
	/home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:874 +0x3e7
github.com/spf13/cobra.(*Command).mergePersistentFlags.(*FlagSet).AddFlagSet.func2(0xc0002085a0)
	/home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:887 +0x3f
github.com/spf13/pflag.(*FlagSet).VisitAll(0x12effe0?, 0xc0000d59a8)
	/home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:290 +0xd8
github.com/spf13/pflag.(*FlagSet).AddFlagSet(...)
	/home/runner/go/pkg/mod/github.com/spf13/pflag@v1.0.5/flag.go:885
github.com/spf13/cobra.(*Command).mergePersistentFlags(0x12effe0)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1777 +0xa9
github.com/spf13/cobra.stripFlags({0xc00015a0e0, 0xe, 0xe}, 0x1306f00?)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:622 +0x4f
github.com/spf13/cobra.(*Command).Find.func1(0x13368a0?, {0xc00015a0e0, 0xe, 0xe})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:681 +0x5a
github.com/spf13/cobra.(*Command).Find.func1(0x13368a0?, {0xc000216000, 0xf, 0xf})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:689 +0x2cf
github.com/spf13/cobra.(*Command).Find.func1(0x13368a0?, {0xc000203000, 0x10, 0x10})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:689 +0x2cf
github.com/spf13/cobra.(*Command).Find.func1(0x5ae7e9?, {0xc0000c0010, 0x11, 0x11})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:689 +0x2cf
github.com/spf13/cobra.(*Command).Find(0x12ed4c0?, {0xc0000c0010?, 0x1?, 0x2?})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:694 +0x50
github.com/spf13/cobra.(*Command).initCompleteCmd(0x7ffea4e5cb83?, {0xc0000c0010, 0x11, 0x11})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/completions.go:234 +0x292
github.com/spf13/cobra.(*Command).ExecuteC(0x12ed4c0)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1013 +0x199
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/qovery/qovery-cli/cmd.Execute()
	/home/runner/work/qovery-cli/qovery-cli/cmd/root.go:19 +0x1a
main.main()
	/home/runner/work/qovery-cli/qovery-cli/main.go:6 +0xf

Could you point me in a direction to solve this issue?

1 Like

Hi @borisrorsvort , sorry for the inconvenience - a new version of the CLI has just been released to fix this issue. The CLI v0.71.2. We have added the flag --verbose and the -v as a global flag. But the latest is clashing with some sub commands. So we removed the -v.