1
0
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:
Carlos Alexandro Becker 2020-01-08 09:38:14 -03:00
parent f4d4dc65ec
commit c63a57eaa0
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 1 additions and 5 deletions

View File

@ -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"
}

View File

@ -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) {