1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 18:40:40 +00:00

use go env check project is go mod or not.

This commit is contained in:
qiantao
2020-07-11 13:02:25 +08:00
parent 4110083cae
commit 4158ab284e
2 changed files with 12 additions and 1 deletions

View File

@ -435,7 +435,7 @@ func analyseControllerPkg(vendorPath, localName, pkgpath string) {
pkgRealpath := ""
if os.Getenv(`GO111MODULE`) == `on` {
if bu.IsGOMODULE() {
pkgRealpath = filepath.Join(bu.GetBeeWorkPath(), "..", pkgpath)
} else {
gopaths := bu.GetGOPATHs()