build: remove check for default GOPATH and GOROOT being identical
This commit is contained in:
@@ -18,7 +18,6 @@ package build
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"archive/zip"
|
"archive/zip"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"go/constant"
|
"go/constant"
|
||||||
"go/token"
|
"go/token"
|
||||||
@@ -93,11 +92,7 @@ func envGOPATH() (string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
gopath := filepath.Join(home, "go")
|
return filepath.Join(home, "go"), nil
|
||||||
if filepath.Clean(gopath) == filepath.Clean(runtime.GOROOT()) {
|
|
||||||
return "", errors.New("cannot set GOROOT as GOPATH")
|
|
||||||
}
|
|
||||||
return gopath, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func DefaultAppExt() string {
|
func DefaultAppExt() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user