mirror of
https://github.com/beego/bee.git
synced 2024-11-21 23:50:54 +00:00
commit
c2161cac3f
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user