check gopath moved
This commit is contained in:
parent
77db123826
commit
27f90a1db0
|
@ -97,11 +97,6 @@ func (p *Project) GoInstall() error {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue