From ed94678820af7fbe53dd12a56d97f3d760ccaf2d Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 20 Aug 2022 12:10:29 +0200 Subject: [PATCH] helper: cleanups --- helpers/build-release-binaries/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/helpers/build-release-binaries/main.go b/helpers/build-release-binaries/main.go index f81498bdf..b176f8b8c 100644 --- a/helpers/build-release-binaries/main.go +++ b/helpers/build-release-binaries/main.go @@ -103,15 +103,13 @@ func build(sourceDir, outputDir, goos, goarch string) (filename string) { ) c.Stdout = os.Stdout c.Stderr = os.Stderr - - verbose("run %v %v in %v", "go", c.Args, c.Dir) - c.Dir = sourceDir c.Env = append(os.Environ(), "CGO_ENABLED=0", "GOOS="+goos, "GOARCH="+goarch, ) + verbose("run %v %v in %v", "go", c.Args, c.Dir) err := c.Run() if err != nil { @@ -160,7 +158,6 @@ func compress(goos, inputDir, filename string) (outputFile string) { c.Stdout = os.Stdout c.Stderr = os.Stderr c.Dir = inputDir - verbose("run %v %v in %v", "go", c.Args, c.Dir) err := c.Run()