Skip to content

Commit

Permalink
Revert use of single GOPATH for building (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal Jeczalik committed Jul 31, 2014
1 parent d0693e1 commit a3404ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func Update(b []Bin, log func(*Bin, time.Duration, error)) {
for i := min(parallel, len(builds)); i > 0; i-- {
go func() {
for kv := range ch {
wrk, err := "/tmp/gobin", (error)(nil)
wrk, err := ioutil.TempDir("", "gobin")
if err != nil {
seterr(time.Now(), err, kv.v...)
continue
Expand Down Expand Up @@ -290,6 +290,7 @@ func Update(b []Bin, log func(*Bin, time.Duration, error)) {
}
}
seterr(t, nil, kv.v...)
os.RemoveAll(wrk)
wg.Done()
}
}()
Expand Down

0 comments on commit a3404ad

Please sign in to comment.