From 27f90a1db02f105b0fffaa074a153a296d1d8f7c Mon Sep 17 00:00:00 2001 From: alessio Date: Sun, 21 Aug 2016 15:36:49 +0200 Subject: [PATCH] check gopath moved --- realize/project.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/realize/project.go b/realize/project.go index 96ebeac..2423d18 100644 --- a/realize/project.go +++ b/realize/project.go @@ -96,12 +96,7 @@ func (p *Project) GoInstall() error { var out bytes.Buffer base, _ := os.Getwd() path := base + p.Path - - // check gopath and set gobin - gopath := os.Getenv("GOPATH") - if gopath == ""{ - return errors.New("$GOPATH not set") - } + err := os.Setenv("GOBIN",slash(os.Getenv("GOPATH")) + slash("bin")) if err != nil { return err