mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-26 04:22:05 +02:00
fix: missing Binary field
Readded it for now. Should remove it someday as it is deprecated
This commit is contained in:
parent
66e8f98735
commit
0d9da86624
@ -15,13 +15,14 @@ func nameFor(ctx *context.Context, target buildtarget.Target, name string) (stri
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
data := struct {
|
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),
|
Os: replace(ctx.Config.Archive.Replacements, target.OS),
|
||||||
Arch: replace(ctx.Config.Archive.Replacements, target.Arch),
|
Arch: replace(ctx.Config.Archive.Replacements, target.Arch),
|
||||||
Arm: replace(ctx.Config.Archive.Replacements, target.Arm),
|
Arm: replace(ctx.Config.Archive.Replacements, target.Arm),
|
||||||
Version: ctx.Version,
|
Version: ctx.Version,
|
||||||
Tag: ctx.Git.CurrentTag,
|
Tag: ctx.Git.CurrentTag,
|
||||||
|
Binary: name, // TODO: deprecated: remove this sometime
|
||||||
ProjectName: name,
|
ProjectName: name,
|
||||||
}
|
}
|
||||||
err = t.Execute(&out, data)
|
err = t.Execute(&out, data)
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
// Package snapshot provides the snapshoting functionaly to goreleaser
|
|
||||||
package snapshot
|
|
@ -1,3 +1,4 @@
|
|||||||
|
// Package snapshot provides the snapshoting functionaly to goreleaser.
|
||||||
package snapshot
|
package snapshot
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user