We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5399aea commit 66108fbCopy full SHA for 66108fb
1 file changed
internal/config/config/env.go
@@ -205,6 +205,7 @@ func convertEnvMapToList(envMap map[string]string) []string {
205
func executeScript(shell string, script string, envMap map[string]string) (string, error) {
206
cmd := exec.Command(shell, "-c", script)
207
envList := os.Environ()
208
+ // Append resolved env last so it overrides process env keys (Go 1.21+ cmd.Env dedup: last value wins).
209
envList = append(envList, convertEnvMapToList(envMap)...)
210
cmd.Env = envList
211
0 commit comments