feat: more build output

This commit is contained in:
Chen Asraf 2024-09-03 01:57:25 +03:00 committed by GitHub
parent eb5541167b
commit 10e5fcf82f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)