feat(executor/local): append env to current
Some checks failed
submodules sync / sync (push) Successful in 38s
build / build (push) Failing after 45s
build / trigger-build-image (push) Has been skipped

This commit is contained in:
张泊明518370910136 2024-11-28 10:43:33 -05:00
parent 2a3ccb71df
commit 83f3721eb2
GPG Key ID: D47306D7062CDA9D

View File

@ -22,7 +22,9 @@ func (e *Local) Run(cmds []stage.Cmd) ([]stage.ExecutorResult, error) {
execCmd := exec.Command(cmd.Args[0], cmd.Args[1:]...) // #nosec G204
if len(cmd.Env) > 0 {
execCmd.Env = cmd.Env
env := os.Environ()
env = append(env, cmd.Env...)
execCmd.Env = env
}
if cmd.Stdin != nil {