From 59ae06c56193cbccec97d189becf210a3458d90e Mon Sep 17 00:00:00 2001 From: Justen Walker Date: Sun, 28 Mar 2021 17:45:52 -0400 Subject: [PATCH] logging: debug log correct compile command --- internal/command/goodwill.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/goodwill.go b/internal/command/goodwill.go index eab4a33..c268fae 100644 --- a/internal/command/goodwill.go +++ b/internal/command/goodwill.go @@ -87,7 +87,7 @@ func compileGoFiles(files []string, flg flags, out string) error { args = append(args, "-tags=goodwill", "-o", out) args = append(args, files...) cmd := exec.Command(flg.GoCmd, args...) - debug.Println("running", cmd, strings.Join(cmd.Args, " ")) + debug.Println("running", cmd.Path, strings.Join(cmd.Args[1:], " ")) debug.Printf("GOOS=%s, GOARCH=%s", flg.OS, flg.Arch) cmd.Env = GoEnv(flg.OS, flg.Arch) cmd.Dir = flg.Dir