gobin slash issue

This commit is contained in:
alessio 2016-08-21 12:05:49 +02:00
parent 0eca2b66b4
commit ed20a98995

View File

@ -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
} }