From bb767bc189ebc90399a61951a901de68c86219d5 Mon Sep 17 00:00:00 2001 From: Ewout Prangsma Date: Tue, 13 Mar 2018 14:38:34 +0100 Subject: [PATCH] Copy existing environment --- tools/release/release.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/release/release.go b/tools/release/release.go index cd26cb9f7..aeee80071 100644 --- a/tools/release/release.go +++ b/tools/release/release.go @@ -177,6 +177,7 @@ func githubCreateRelease(version string) { func run(cmd string, args []string, envVars map[string]string) error { c := exec.Command(cmd, args...) if envVars != nil { + c.Env = append(c.Env, os.Environ()...) for k, v := range envVars { c.Env = append(c.Env, fmt.Sprintf("%s=%s", k, v)) }