Skip to content

Commit 6f32f06

Browse files
committed
add debug log statement to highlight the command error and subsequent attempt for better clarity.
1 parent d599c5b commit 6f32f06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cli/create_helm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ func CreateHelm(ctx context.Context, options *CreateOptions, globalFlags *flags.
139139

140140
output, err := exec.Command(helmBinaryPath, "version", "--client", "--template", "{{.Version}}").Output()
141141
if err != nil {
142+
log.Debugf("error getting helm version: '%v'. Attempting again with commandline flags compatible with Helm v4.x..", err)
143+
142144
// Helm v4.x does not support the --client flag
143145
output, err = exec.Command(helmBinaryPath, "version", "--template", "{{.Version}}").Output()
144146
if err != nil {

0 commit comments

Comments
 (0)