diff --git a/internal/tmpl/tmpl.go b/internal/tmpl/tmpl.go index 16a226f06..ba3133c45 100644 --- a/internal/tmpl/tmpl.go +++ b/internal/tmpl/tmpl.go @@ -56,14 +56,14 @@ func New(ctx *context.Context) *Template { // WithArtifacts populate fields from the artifact and replacements func (t *Template) WithArtifact(a artifact.Artifact, replacements map[string]string) *Template { - var binary = a.Extra[binary] - if binary == "" { - binary = t.fields[projectName].(string) + var bin = a.Extra[binary] + if bin == "" { + bin = t.fields[projectName].(string) } t.fields[os] = replace(replacements, a.Goos) t.fields[arch] = replace(replacements, a.Goarch) t.fields[arm] = replace(replacements, a.Goarm) - t.fields[binary] = binary + t.fields[binary] = bin return t }