mirror of
https://github.com/goreleaser/goreleaser.git
synced 2026-06-19 23:24:39 +02:00
fix: build.binary and artifact.extra.binary (#1399)
* fix: build.binary and artifact.extra.id Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: scoop usage of extra[binary] Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: unlock
This commit is contained in:
@@ -196,7 +196,7 @@ func binaries(a *artifact.Artifact) []string {
|
||||
// nolint: prealloc
|
||||
var bins []string
|
||||
for _, b := range a.ExtraOr("Builds", []*artifact.Artifact{}).([]*artifact.Artifact) {
|
||||
bins = append(bins, b.ExtraOr("Binary", "").(string)+".exe")
|
||||
bins = append(bins, b.Name+".exe")
|
||||
}
|
||||
return bins
|
||||
}
|
||||
|
||||
@@ -825,14 +825,10 @@ func Test_buildManifest(t *testing.T) {
|
||||
"ArtifactUploadHash": "820ead5d9d2266c728dce6d4d55b6460",
|
||||
"Builds": []*artifact.Artifact{
|
||||
{
|
||||
Extra: map[string]interface{}{
|
||||
"Binary": "foo",
|
||||
},
|
||||
Name: "foo",
|
||||
},
|
||||
{
|
||||
Extra: map[string]interface{}{
|
||||
"Binary": "bar",
|
||||
},
|
||||
Name: "bar",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -846,14 +842,10 @@ func Test_buildManifest(t *testing.T) {
|
||||
"ArtifactUploadHash": "820ead5d9d2266c728dce6d4d55b6460",
|
||||
"Builds": []*artifact.Artifact{
|
||||
{
|
||||
Extra: map[string]interface{}{
|
||||
"Binary": "foo",
|
||||
},
|
||||
Name: "foo",
|
||||
},
|
||||
{
|
||||
Extra: map[string]interface{}{
|
||||
"Binary": "bar",
|
||||
},
|
||||
Name: "bar",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user