From dec22cf0c8a6464390ea26b42086d242e396ecda Mon Sep 17 00:00:00 2001 From: matthiasng Date: Thu, 2 Apr 2020 23:59:01 +0200 Subject: [PATCH] fix: scoop binary names (#1420) --- internal/pipe/scoop/scoop.go | 2 +- internal/pipe/scoop/scoop_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/pipe/scoop/scoop.go b/internal/pipe/scoop/scoop.go index d4dd39eb3..6d695b21d 100644 --- a/internal/pipe/scoop/scoop.go +++ b/internal/pipe/scoop/scoop.go @@ -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.Name+".exe") + bins = append(bins, b.Name) } return bins } diff --git a/internal/pipe/scoop/scoop_test.go b/internal/pipe/scoop/scoop_test.go index 96ee9508f..99d205dec 100644 --- a/internal/pipe/scoop/scoop_test.go +++ b/internal/pipe/scoop/scoop_test.go @@ -825,10 +825,10 @@ func Test_buildManifest(t *testing.T) { "ArtifactUploadHash": "820ead5d9d2266c728dce6d4d55b6460", "Builds": []*artifact.Artifact{ { - Name: "foo", + Name: "foo.exe", }, { - Name: "bar", + Name: "bar.exe", }, }, }, @@ -842,10 +842,10 @@ func Test_buildManifest(t *testing.T) { "ArtifactUploadHash": "820ead5d9d2266c728dce6d4d55b6460", "Builds": []*artifact.Artifact{ { - Name: "foo", + Name: "foo.exe", }, { - Name: "bar", + Name: "bar.exe", }, }, },