Skip to content

Commit

Permalink
Get error output if go mod vendor fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy Baukema committed Oct 13, 2023
1 parent 80db9e0 commit e1c2f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func vendorDir(copyDir string) error {
log.Debug("Vendor folder did not exist, running go mod vendor, this may take a while")
cmd := exec.Command("go", "mod", "vendor")
cmd.Dir = copyDir
cmdOut, err := cmd.Output()
cmdOut, err := cmd.CombinedOutput()
log.WithFields(log.Fields{
"cmdOut": string(cmdOut),
}).Debug("Ran go mod vendor")
Expand Down

0 comments on commit e1c2f9f

Please sign in to comment.