1
0
espelhamento de https://github.com/beego/bee.git sincronizado 2025-10-29 08:53:50 +00:00

Merge pull request #356 from radioinmyhead/patch-2

fix GOROOT
Esse commit está contido em:
astaxie
2017-02-23 22:58:17 +08:00
commit de GitHub

Ver arquivo

@@ -26,6 +26,7 @@ import (
"path/filepath"
"reflect"
"regexp"
"runtime"
"strconv"
"strings"
"unicode"
@@ -402,6 +403,9 @@ func analyseControllerPkg(localName, pkgpath string) {
func isSystemPackage(pkgpath string) bool {
goroot := os.Getenv("GOROOT")
if goroot == "" {
goroot = runtime.GOROOT()
}
if goroot == "" {
logger.Fatalf("GOROOT environment variable is not set or empty")
}