mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-04 03:11:55 +02:00
fix: do not set default builds
closes https://github.com/goreleaser/goreleaser/issues/1294 Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
f4d4dc65ec
commit
c63a57eaa0
@ -55,11 +55,6 @@ func (Pipe) Default(ctx *context.Context) error {
|
||||
ctx.Config.Builds[0].Binary,
|
||||
}
|
||||
}
|
||||
if len(ctx.Config.Dockers[0].Builds) == 0 {
|
||||
ctx.Config.Dockers[0].Builds = []string{
|
||||
ctx.Config.Builds[0].ID,
|
||||
}
|
||||
}
|
||||
if ctx.Config.Dockers[0].Dockerfile == "" {
|
||||
ctx.Config.Dockers[0].Dockerfile = "Dockerfile"
|
||||
}
|
||||
|
@ -723,6 +723,7 @@ func TestDefault(t *testing.T) {
|
||||
assert.Equal(t, "linux", docker.Goos)
|
||||
assert.Equal(t, "amd64", docker.Goarch)
|
||||
assert.Equal(t, []string{ctx.Config.Builds[0].Binary}, docker.Binaries)
|
||||
assert.Empty(t, docker.Builds)
|
||||
}
|
||||
|
||||
func TestDefaultBinaries(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user