mirror of
https://github.com/helm/helm.git
synced 2026-04-15 21:59:50 -04:00
Fix deprecation warning for spf13/pflag from 1.0.7 to 1.0.10
Close: #31231 ``` Error: cmd/helm/root.go:165:2: SA1019: flags.ParseErrorsWhitelist is deprecated: use [FlagSet.ParseErrorsAllowlist] instead. This field will be removed in a future release. (staticcheck) ``` Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
This commit is contained in:
parent
5445b6587b
commit
99e5fce71a
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ func newRootCmdWithConfig(actionConfig *action.Configuration, out io.Writer, arg
|
|||
// those errors will be caught later during the call to cmd.Execution.
|
||||
// This call is required to gather configuration information prior to
|
||||
// execution.
|
||||
flags.ParseErrorsWhitelist.UnknownFlags = true
|
||||
flags.ParseErrorsAllowlist.UnknownFlags = true
|
||||
flags.Parse(args)
|
||||
|
||||
logSetup(settings.Debug)
|
||||
|
|
|
|||
Loading…
Reference in a new issue