Commit 6fe7b02e37
Verified · cmc ci/build: success ci/test: failure
cmd/gitbay-runner/main.go +4 −1
| @@ -19,6 +19,7 @@ import ( | ||
| 19 | 19 | "os/exec" |
| 20 | 20 | "os/signal" |
| 21 | 21 | "path/filepath" |
| 22 | "slices" | |
| 22 | 23 | "strings" |
| 23 | 24 | "sync" |
| 24 | 25 | "syscall" |
| @@ -149,7 +150,9 @@ func main() { | ||
| 149 | 150 | *identity = p |
| 150 | 151 | } |
| 151 | 152 | } |
| 152 | r.sshOpts = append(identityOpts(*identity), r.sshOpts...) | |
| 153 | // Clipped: the later appends run from concurrent workers, and spare | |
| 154 | // capacity here would have them writing the same backing array. | |
| 155 | r.sshOpts = slices.Clip(append(identityOpts(*identity), r.sshOpts...)) | |
| 153 | 156 | r.untrusted = *untrusted |
| 154 | 157 | for _, name := range strings.Split(*repos, ",") { |
| 155 | 158 | if name = strings.TrimSpace(name); name != "" { |