1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00

fix: missing Binary field

Readded it for now. Should remove it someday as it is deprecated
This commit is contained in:
Carlos Alexandro Becker 2017-12-02 22:43:46 -02:00 committed by Carlos Alexandro Becker
parent 66e8f98735
commit 0d9da86624
3 changed files with 3 additions and 3 deletions

View File

@ -15,13 +15,14 @@ func nameFor(ctx *context.Context, target buildtarget.Target, name string) (stri
return "", err
}
data := struct {
Os, Arch, Arm, Version, Tag, ProjectName string
Os, Arch, Arm, Version, Tag, Binary, ProjectName string
}{
Os: replace(ctx.Config.Archive.Replacements, target.OS),
Arch: replace(ctx.Config.Archive.Replacements, target.Arch),
Arm: replace(ctx.Config.Archive.Replacements, target.Arm),
Version: ctx.Version,
Tag: ctx.Git.CurrentTag,
Binary: name, // TODO: deprecated: remove this sometime
ProjectName: name,
}
err = t.Execute(&out, data)

View File

@ -1,2 +0,0 @@
// Package snapshot provides the snapshoting functionaly to goreleaser
package snapshot

View File

@ -1,3 +1,4 @@
// Package snapshot provides the snapshoting functionaly to goreleaser.
package snapshot
import (