mirror of
https://github.com/caddyserver/xcaddy.git
synced 2024-09-16 17:30:16 +01:00
Make customized env effective (#9)
This commit is contained in:
parent
68d27a0401
commit
262a495997
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ func (b Builder) Build(ctx context.Context, outputFile string) error {
|
||||||
"-ldflags", "-w -s", // trim debug symbols
|
"-ldflags", "-w -s", // trim debug symbols
|
||||||
"-trimpath",
|
"-trimpath",
|
||||||
)
|
)
|
||||||
|
cmd.Env = env
|
||||||
err = buildEnv.runCommand(ctx, cmd, 5*time.Minute)
|
err = buildEnv.runCommand(ctx, cmd, 5*time.Minute)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue