Skip to content

Commit b39c93a

Browse files
juliancarrivick-ibmgaborh-da
authored andcommitted
Update Cobra and pflag vendor libraries
The current version of cobra in our vendor folder has a bug where if a cobra command has a PersistentPreRunE callback, it expects a PersistentPostRunE callback, too. If it doesn't exist, then it will panic. Adding an empty PersistentPostRunE callback is a workaround, updating cobra (and pflag as it is a dependency) fixes it. Change 277 depends on this as it has removed the PersistentPostRunE from the main command. I think it would be nicer to merge this before merging that. Change-Id: I77ebd36a83ccff3076fa9f89a34524dfe42b21eb Signed-off-by: Julian Carrivick <[email protected]>
1 parent c1b13e3 commit b39c93a

17 files changed

+1547
-976
lines changed

vendor/github.com/spf13/cobra/README.md

+612-203
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/bash_completions.go

+330-85
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/bash_completions.md

+59-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/cobra.go

+60-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)