diff --git a/builder/templates/templateV2023.go b/builder/templates/templateV2023.go index b09107b..c763c3e 100644 --- a/builder/templates/templateV2023.go +++ b/builder/templates/templateV2023.go @@ -18,6 +18,8 @@ require ( go.uber.org/automaxprocs v1.5.2 github.com/roadrunner-server/informer/v4 latest github.com/roadrunner-server/resetter/v4 latest + github.com/roadrunner-server/rpc/v4 latest + github.com/roadrunner-server/config/v4 latest // Go module pseudo-version {{range $v := .Entries}}{{$v.Module}} {{$v.PseudoVersion}} diff --git a/github/pool.go b/github/pool.go index 0622731..fc115ff 100644 --- a/github/pool.go +++ b/github/pool.go @@ -202,13 +202,17 @@ func (p *processor) add(pjob *pcfg) { func (p *processor) errors() []error { p.mu.Lock() defer p.mu.Unlock() - return p.errs + errs := make([]error, len(p.errs)) + copy(errs, p.errs) + return errs } func (p *processor) moduleinfo() []*velox.ModulesInfo { p.mu.Lock() defer p.mu.Unlock() - return p.modinfo + modinfo := make([]*velox.ModulesInfo, len(p.modinfo)) + copy(modinfo, p.modinfo) + return modinfo } func (p *processor) wait() {