mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
renamed things
This commit is contained in:
parent
0525e9014c
commit
9dc39dc389
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user