1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00

Merge branch 'master' into hooks

This commit is contained in:
Carlos Alexandro Becker 2017-01-23 09:32:37 -02:00 committed by GitHub
commit 590f67acb0

View File

@ -65,13 +65,8 @@ func build(name, goos, goarch string, ctx *context.Context) error {
func run(goos, goarch string, command []string) error {
cmd := exec.Command(command[0], command[1:]...)
cmd.Env = append(
cmd.Env,
"GOOS="+goos,
"GOARCH="+goarch,
"GOROOT="+os.Getenv("GOROOT"),
"GOPATH="+os.Getenv("GOPATH"),
)
cmd.Env = append(cmd.Env, "GOOS="+goos, "GOARCH="+goarch)
cmd.Env = append(cmd.Env, os.Environ()...)
var stdout bytes.Buffer
cmd.Stdout = &stdout
cmd.Stderr = &stdout