gobin slash issue
This commit is contained in:
parent
0eca2b66b4
commit
ed20a98995
@ -10,6 +10,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The Project struct defines the informations about a project
|
// The Project struct defines the informations about a project
|
||||||
@ -102,7 +103,7 @@ func (p *Project) GoInstall() error {
|
|||||||
if gopath == ""{
|
if gopath == ""{
|
||||||
return errors.New("$GOPATH not set")
|
return errors.New("$GOPATH not set")
|
||||||
}
|
}
|
||||||
err := os.Setenv("GOBIN",os.Getenv("GOPATH") + "bin")
|
err := os.Setenv("GOBIN",slash(os.Getenv("GOPATH")) + slash("bin"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user