Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Feb 22, 2024
1 parent 9563767 commit 1dd6ffd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pipeline/frontend/yaml/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package compiler

import (
"fmt"
"maps"
"path"

backend_types "go.woodpecker-ci.org/woodpecker/v2/pipeline/backend/types"
Expand Down Expand Up @@ -184,7 +183,9 @@ func (c *Compiler) Compile(conf *yaml_types.Workflow) (*backend_types.Config, er
Image: cloneImage,
Settings: cloneSettings,
}
maps.Copy(container.Environment, c.cloneEnv)
for k, v := range c.cloneEnv {
container.Environment[k] = v
}
step, err := c.createProcess(container, backend_types.StepTypeClone)
if err != nil {
return nil, err
Expand Down

0 comments on commit 1dd6ffd

Please sign in to comment.