Reset extra args before running 'dependency build' (#1751)

This commit is contained in:
Matthias Baur 2024-10-24 00:17:58 +02:00 committed by GitHub
parent e1ec078568
commit a7d2321efd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -597,6 +597,10 @@ func (helm *execer) exec(args []string, env map[string]string, overrideEnableLiv
enableLiveOutput = *overrideEnableLiveOutput
}
outBytes, err := helm.runner.Execute(helm.helmBinary, cmdargs, env, enableLiveOutput)
// Reset extra args after each helm execution
helm.SetExtraArgs()
return outBytes, err
}
@ -614,6 +618,10 @@ func (helm *execer) execStdIn(args []string, env map[string]string, stdin io.Rea
cmd := fmt.Sprintf("exec: %s %s", helm.helmBinary, strings.Join(cmdargs, " "))
helm.logger.Debug(cmd)
outBytes, err := helm.runner.ExecuteStdIn(helm.helmBinary, cmdargs, env, stdin)
// Reset extra args after each helm execution
helm.SetExtraArgs()
return outBytes, err
}