mirror of
https://github.com/ko-build/ko.git
synced 2024-11-30 08:27:02 +02:00
include go build output in build error (#1127)
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
parent
29d66fdd61
commit
daab1ac9dc
@ -312,8 +312,7 @@ func build(ctx context.Context, ip string, dir string, platform v1.Platform, con
|
||||
if os.Getenv("KOCACHE") == "" {
|
||||
os.RemoveAll(tmpDir)
|
||||
}
|
||||
log.Printf("Unexpected error running \"go build\": %v\n%v", err, output.String())
|
||||
return "", fmt.Errorf("go build: %w", err)
|
||||
return "", fmt.Errorf("go build: %w: %s", err, output.String())
|
||||
}
|
||||
return file, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user