diff --git a/clicommand/pipeline_upload.go b/clicommand/pipeline_upload.go index 6c05318f30..520d3370ce 100644 --- a/clicommand/pipeline_upload.go +++ b/clicommand/pipeline_upload.go @@ -3,6 +3,7 @@ package clicommand import ( "context" "encoding/json" + "fmt" "io" "os" "os/exec" @@ -511,7 +512,7 @@ func concat[T any](a ...[]T) []T { cap += len(s) } - var result []T + result := make([]T, 0, cap) for _, s := range a { result = append(result, s...) }