From f559c3c421dcb0777896114673f2f270a2895290 Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Mon, 11 May 2020 18:44:25 +0200 Subject: [PATCH] gobuild: pass-through stdout to 'go' command invocation (#2044) When trying to compile tests in a package that does not contain tests 'go' emits an error message on stdout instead of stderr. Let the 'go' command write to stdout too. Fixes #2042 --- pkg/gobuild/gobuild.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/gobuild/gobuild.go b/pkg/gobuild/gobuild.go index e8a04b7a..fde64f80 100644 --- a/pkg/gobuild/gobuild.go +++ b/pkg/gobuild/gobuild.go @@ -68,5 +68,6 @@ func gocommand(command string, args ...string) error { allargs = append(allargs, args...) goBuild := exec.Command("go", allargs...) goBuild.Stderr = os.Stderr + goBuild.Stdout = os.Stdout return goBuild.Run() }