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

renamed things

This commit is contained in:
Carlos Alexandro Becker 2017-04-24 14:29:40 -03:00
parent 0525e9014c
commit 9dc39dc389
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ func TestRunFullPipe(t *testing.T) {
assert.True(exists(post), post)
}
func TestRunArmFullPipe(t *testing.T) {
func TestRunPipeArmBuilds(t *testing.T) {
assert := assert.New(t)
folder, err := ioutil.TempDir("", "goreleasertest")
assert.NoError(err)

View File

@ -19,7 +19,7 @@ func (t buildTarget) String() string {
return fmt.Sprintf("%v%v%v", t.goos, t.goarch, t.goarm)
}
func allBuildTargets(ctx *context.Context) (t []buildTarget) {
func allBuildTargets(ctx *context.Context) (targets []buildTarget) {
for _, goos := range ctx.Config.Build.Goos {
for _, goarch := range ctx.Config.Build.Goarch {
if !valid(goos, goarch) {
@ -28,11 +28,11 @@ func allBuildTargets(ctx *context.Context) (t []buildTarget) {
}
if goarch == "arm" {
for _, goarm := range ctx.Config.Build.Goarm {
t = append(t, buildTarget{goos, goarch, goarm})
targets = append(targets, buildTarget{goos, goarch, goarm})
}
continue
}
t = append(t, buildTarget{goos, goarch, ""})
targets = append(targets, buildTarget{goos, goarch, ""})
}
}
return