Make customized env effective (#9)

This commit is contained in:
Jason Song 2020-04-29 01:07:25 +08:00 committed by GitHub
parent 68d27a0401
commit 262a495997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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