Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Casey Lee
2020-02-10 16:53:14 -08:00
parent ac8258db4b
commit 835b36cb63
8 changed files with 50 additions and 20 deletions

View File

@@ -87,7 +87,13 @@ func NewParallelExecutor(executors ...Executor) Executor {
errChan := make(chan error)
for _, executor := range executors {
go executor.ChannelError(errChan)(ctx)
e := executor
go func() {
err := e.ChannelError(errChan)(ctx)
if err != nil {
log.Fatal(err)
}
}()
}
for i := 0; i < len(executors); i++ {

View File

@@ -225,7 +225,7 @@ func NewGitCloneExecutor(input NewGitCloneExecutorInput) Executor {
logger.Errorf("Unable to clone %v %s: %v", input.URL, refName, err)
return err
}
os.Chmod(input.Dir, 0755)
_ = os.Chmod(input.Dir, 0755)
}
w, err := r.Worktree()