From b2ab1e221f21b060784bb2b819fbaa33c495f7d8 Mon Sep 17 00:00:00 2001 From: mitchell Date: Mon, 22 Jan 2024 13:55:02 -0500 Subject: [PATCH] Do not attempt to autoupdate during `state config set`. --- cmd/state/internal/cmdtree/config.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/state/internal/cmdtree/config.go b/cmd/state/internal/cmdtree/config.go index 76d9daa495..e213eca340 100644 --- a/cmd/state/internal/cmdtree/config.go +++ b/cmd/state/internal/cmdtree/config.go @@ -48,7 +48,7 @@ func newConfigGetCommand(prime *primer.Values) *captain.Command { func newConfigSetCommand(prime *primer.Values) *captain.Command { params := config.SetParams{} - return captain.NewCommand( + cmd := captain.NewCommand( "set", locale.Tl("config_set_title", "Set config value"), locale.Tl("config_set_description", "Set config values using the terminal"), @@ -71,5 +71,8 @@ func newConfigSetCommand(prime *primer.Values) *captain.Command { func(ccmd *captain.Command, args []string) error { runner := config.NewSet(prime) return runner.Run(params) - }).SetSupportsStructuredOutput() + }) + cmd.SetSkipChecks(true) + cmd.SetSupportsStructuredOutput() + return cmd }