From 10e5fcf82f670121f417d2c5935f21b1001ed719 Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Tue, 3 Sep 2024 01:57:25 +0300 Subject: [PATCH] feat: more build output --- entrypoint.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.go b/entrypoint.go index 2f1959f..0530084 100644 --- a/entrypoint.go +++ b/entrypoint.go @@ -92,8 +92,9 @@ func build(packageName, destDir string, platform map[string]string, ldflags stri // execute `go build` command fmt.Println("Creating a build using :", buildCmd.String()) - if output, err := buildCmd.Output(); err != nil { + if output, err := buildCmd.CombinedOutput(); err != nil { fmt.Println("An error occurred during build:", err) + fmt.Printf("%s\n", output) os.Exit(1) } else { fmt.Printf("%s\n", output)