check gopath moved

This commit is contained in:
alessio 2016-08-21 15:36:49 +02:00
parent 77db123826
commit 27f90a1db0
1 changed files with 1 additions and 6 deletions

View File

@ -97,11 +97,6 @@ func (p *Project) GoInstall() error {
base, _ := os.Getwd() base, _ := os.Getwd()
path := base + p.Path 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")) err := os.Setenv("GOBIN",slash(os.Getenv("GOPATH")) + slash("bin"))
if err != nil { if err != nil {
return err return err