From 0d9da86624faa99d93cdeac7943787c4baddf168 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 2 Dec 2017 22:43:46 -0200 Subject: [PATCH] fix: missing Binary field Readded it for now. Should remove it someday as it is deprecated --- pipeline/build/name.go | 3 ++- pipeline/snapshot/package.go | 2 -- pipeline/snapshot/snapshot.go | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 pipeline/snapshot/package.go diff --git a/pipeline/build/name.go b/pipeline/build/name.go index 921ffafc8..055d576bf 100644 --- a/pipeline/build/name.go +++ b/pipeline/build/name.go @@ -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) diff --git a/pipeline/snapshot/package.go b/pipeline/snapshot/package.go deleted file mode 100644 index b0a966baa..000000000 --- a/pipeline/snapshot/package.go +++ /dev/null @@ -1,2 +0,0 @@ -// Package snapshot provides the snapshoting functionaly to goreleaser -package snapshot diff --git a/pipeline/snapshot/snapshot.go b/pipeline/snapshot/snapshot.go index 688d08cad..b3e73960d 100644 --- a/pipeline/snapshot/snapshot.go +++ b/pipeline/snapshot/snapshot.go @@ -1,3 +1,4 @@ +// Package snapshot provides the snapshoting functionaly to goreleaser. package snapshot import (