Skip to content

Commit

Permalink
fix: build should output more debug info (#3939)
Browse files Browse the repository at this point in the history
fixes #3934

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Apr 14, 2023
1 parent e872e45 commit 11b32cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/builders/golang/build.go
Expand Up @@ -344,9 +344,11 @@ func run(ctx *context.Context, command, env []string, dir string) error {
cmd.Env = env
cmd.Dir = dir
log.Debug("running")
if out, err := cmd.CombinedOutput(); err != nil {
out, err := cmd.CombinedOutput()
if err != nil {
return fmt.Errorf("%w: %s", err, string(out))
}
log.Debug(string(out))
return nil
}

Expand Down

0 comments on commit 11b32cf

Please sign in to comment.