Skip to content

Commit

Permalink
Makefile: discard stderr of "go list"
Browse files Browse the repository at this point in the history
In module mode "go" will print messages about downloading modules to
stderr, we shouldn't confuse them for the real command output.
  • Loading branch information
aarzilli committed Nov 11, 2019
1 parent e488ff4 commit 766b62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/make.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func quotemaybe(args []string) []string {
func getoutput(cmd string, args ...interface{}) string {
x := exec.Command(cmd, strflatten(args)...)
x.Env = os.Environ()
out, err := x.CombinedOutput()
out, err := x.Output()
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 766b62c

Please sign in to comment.