You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cobra 1.6 has modified its default help template. This breaks cobrautil which needs to manipulate the original string.
This has come up when trying to upgrade to Cobra 1.6 in Tanzu Framework where we get the error:
panic: Expected to find available commands section in spf13/cobra default usage template
We don't upgrade the 'package' plugin however, because it uses
github.com/vmware-tanzu/carvel-kapp-controller/cli/pkg/kctrl/cmd
which in turn uses github.com/cppforlife/cobrautil which panics when
using Cobra 1.6. See cppforlife/cobrautil#7
Signed-off-by: Marc Khouzam <kmarc@vmware.com>
Cobra 1.6 has modified its default help template. This breaks cobrautil which needs to manipulate the original string.
This has come up when trying to upgrade to Cobra 1.6 in Tanzu Framework where we get the error:
The problematic code is:
cobrautil/help_sections.go
Lines 36 to 43 in d607119
The change to Cobra can be seen here: spf13/cobra@2169adb#diff-4d7d1923693fc5ce892add2ea2907a744e77ea0b50c1939ccc5067cb48a466a3L514
and was part of spf13/cobra#1003
I'll post a PR
The text was updated successfully, but these errors were encountered: