Skip to content

Commit 74e3451

Browse files
committed
Fix command executor to inherid system environ
1 parent 783d375 commit 74e3451

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/executor/command.go

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func CreateCommandExecutor(ctx context.Context, step dag.Step) (Executor, error)
5151
return nil, fmt.Errorf("directory %q does not exist", step.Dir)
5252
}
5353
cmd.Dir = step.Dir
54+
cmd.Env = append(cmd.Env, os.Environ()...)
5455
cmd.Env = append(cmd.Env, step.Variables...)
5556
step.OutputVariables.Range(func(key, value interface{}) bool {
5657
cmd.Env = append(cmd.Env, value.(string))

0 commit comments

Comments
 (0)