From 2613fdafcce2ae555715778073df582ed0b88eff Mon Sep 17 00:00:00 2001 From: mitchell Date: Mon, 22 Jan 2024 13:57:25 -0500 Subject: [PATCH] Do not attempt to autoupdate in structured mode. --- cmd/state/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/state/main.go b/cmd/state/main.go index 11f73c7dea..f42d0f5901 100644 --- a/cmd/state/main.go +++ b/cmd/state/main.go @@ -232,7 +232,7 @@ func run(args []string, isInteractive bool, cfg *config.Instance, out output.Out cmds.OnExecStart(msger.OnExecStart) cmds.OnExecStop(msger.OnExecStop) - if childCmd != nil && !childCmd.SkipChecks() { + if childCmd != nil && !childCmd.SkipChecks() && !out.Type().IsStructured() { // Auto update to latest state tool version if updated, err := autoUpdate(svcmodel, args, cfg, an, out); err == nil && updated { return nil // command will be run by updated exe