mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-09 13:36:56 +02:00
gofmt
This commit is contained in:
parent
2b4bb6413b
commit
8ab9672370
@ -45,15 +45,15 @@ type IgnoredBuild struct {
|
||||
|
||||
// Build contains the build configuration section
|
||||
type Build struct {
|
||||
Goos []string `yaml:",omitempty"`
|
||||
Goarch []string `yaml:",omitempty"`
|
||||
Goarm []string `yaml:",omitempty"`
|
||||
Ignore []IgnoredBuild `yaml:",omitempty"`
|
||||
Main string `yaml:",omitempty"`
|
||||
Ldflags string `yaml:",omitempty"`
|
||||
Flags string `yaml:",omitempty"`
|
||||
Binary string `yaml:",omitempty"`
|
||||
Hooks Hooks `yaml:",omitempty"`
|
||||
Goos []string `yaml:",omitempty"`
|
||||
Goarch []string `yaml:",omitempty"`
|
||||
Goarm []string `yaml:",omitempty"`
|
||||
Ignore []IgnoredBuild `yaml:",omitempty"`
|
||||
Main string `yaml:",omitempty"`
|
||||
Ldflags string `yaml:",omitempty"`
|
||||
Flags string `yaml:",omitempty"`
|
||||
Binary string `yaml:",omitempty"`
|
||||
Hooks Hooks `yaml:",omitempty"`
|
||||
}
|
||||
|
||||
// FormatOverride is used to specify a custom format for a specific GOOS.
|
||||
|
@ -43,15 +43,15 @@ func TestAllBuildTargets(t *testing.T) {
|
||||
},
|
||||
}
|
||||
assert.Equal([]buildTarget{
|
||||
buildTarget{"linux", "386", ""},
|
||||
buildTarget{"linux", "amd64", ""},
|
||||
buildTarget{"linux", "arm", "6"},
|
||||
buildTarget{"linux", "arm64", ""},
|
||||
buildTarget{"darwin", "amd64", ""},
|
||||
buildTarget{"freebsd", "386", ""},
|
||||
buildTarget{"freebsd", "amd64", ""},
|
||||
buildTarget{"freebsd", "arm", "6"},
|
||||
buildTarget{"freebsd", "arm", "7"},
|
||||
{"linux", "386", ""},
|
||||
{"linux", "amd64", ""},
|
||||
{"linux", "arm", "6"},
|
||||
{"linux", "arm64", ""},
|
||||
{"darwin", "amd64", ""},
|
||||
{"freebsd", "386", ""},
|
||||
{"freebsd", "amd64", ""},
|
||||
{"freebsd", "arm", "6"},
|
||||
{"freebsd", "arm", "7"},
|
||||
}, buildTargets(ctx))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user