From 6a45097e2d1d351c49cb0ff7a1446a26cf0b0f65 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Fri, 21 Apr 2017 16:24:02 -0300 Subject: [PATCH] cleaner semaphore handling in build.go --- pipeline/build/build.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipeline/build/build.go b/pipeline/build/build.go index 36a5f5fe8..79fd7a692 100644 --- a/pipeline/build/build.go +++ b/pipeline/build/build.go @@ -32,14 +32,13 @@ func (Pipe) Run(ctx *context.Context) error { var g errgroup.Group for _, goos := range ctx.Config.Build.Goos { for _, goarch := range ctx.Config.Build.Goarch { - sem <- true goos := goos goarch := goarch if !valid(goos, goarch) { log.Printf("Skipped build for %v/%v\n", goos, goarch) - <-sem continue } + sem <- true name, err := nameFor(ctx, goos, goarch) if err != nil { return err