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:
commit
590f67acb0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user