1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00

fix: docker.env should be first

refs #4187
This commit is contained in:
Carlos Alexandro Becker 2023-07-14 00:25:40 +00:00
parent 789a4d45fe
commit 8752504b81
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -48,7 +48,7 @@ func runCommand(ctx *context.Context, dir, binary string, args ...string) error
/* #nosec */
cmd := exec.CommandContext(ctx, binary, args...)
cmd.Dir = dir
cmd.Env = append(cmd.Env, ctx.Env.Strings()...)
cmd.Env = append(ctx.Env.Strings(), cmd.Env...)
var b bytes.Buffer
w := gio.Safe(&b)
@ -69,7 +69,7 @@ func runCommandWithOutput(ctx *context.Context, dir, binary string, args ...stri
/* #nosec */
cmd := exec.CommandContext(ctx, binary, args...)
cmd.Dir = dir
cmd.Env = append(cmd.Env, ctx.Env.Strings()...)
cmd.Env = append(ctx.Env.Strings(), cmd.Env...)
var b bytes.Buffer
w := gio.Safe(&b)