From 262a4959970646d7317dd15b350c4ac662ab6d39 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Wed, 29 Apr 2020 01:07:25 +0800 Subject: [PATCH] Make customized env effective (#9) --- builder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder.go b/builder.go index ab63f16..8064084 100644 --- a/builder.go +++ b/builder.go @@ -90,6 +90,7 @@ func (b Builder) Build(ctx context.Context, outputFile string) error { "-ldflags", "-w -s", // trim debug symbols "-trimpath", ) + cmd.Env = env err = buildEnv.runCommand(ctx, cmd, 5*time.Minute) if err != nil { return err