From 7843b5f4171a3d62db29725e07a10174114a0444 Mon Sep 17 00:00:00 2001 From: Kohei Tokunaga Date: Wed, 30 Aug 2023 18:41:16 +0900 Subject: [PATCH] debug: fix short-form custom command name on `--invoke` isn't used Signed-off-by: Kohei Tokunaga --- commands/build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/build.go b/commands/build.go index 70debb43d07..07ac7d8c86a 100644 --- a/commands/build.go +++ b/commands/build.go @@ -719,6 +719,7 @@ func parseInvokeConfig(invoke string) (cfg invokeConfig, err error) { } if len(fields) == 1 && !strings.Contains(fields[0], "=") { cfg.Cmd = []string{fields[0]} + cfg.NoCmd = false return cfg, nil } cfg.NoUser = true