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