From 1d057942a7b11c50c1c7f601c80e12b2abd004ce Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Wed, 21 Dec 2022 01:31:31 -0300 Subject: [PATCH] fix: wrong param order --- pkg/build/gobuild.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/gobuild.go b/pkg/build/gobuild.go index 4507fdbee2..59ec9dd7bf 100644 --- a/pkg/build/gobuild.go +++ b/pkg/build/gobuild.go @@ -700,7 +700,7 @@ func createTemplateData() map[string]interface{} { } func applyTemplating(list []string, data map[string]interface{}) ([]string, error) { - result := make([]string, len(list), 0) + result := make([]string, 0, len(list)) for _, entry := range list { tmpl, err := template.New("argsTmpl").Option("missingkey=error").Parse(entry) if err != nil {