This commit is contained in:
qiantao 2020-06-18 16:22:22 +08:00
parent d9eb9b56fd
commit ea51bf2343
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ Prints the current Bee, Beego and Go version alongside the platform information.
} }
var outputFormat string var outputFormat string
const version = "1.10.1" const version = "1.10.2"
func init() { func init() {
fs := flag.NewFlagSet("version", flag.ContinueOnError) fs := flag.NewFlagSet("version", flag.ContinueOnError)
@ -124,7 +124,7 @@ func GetBeegoVersion() string {
} }
wgopath := utils.GetGOPATHs() wgopath := utils.GetGOPATHs()
if len(wgopath) == 0 { if len(wgopath) == 0 {
beeLogger.Log.Error("You need to set GOPATH environment variable") beeLogger.Log.Error("GOPATH environment is empty,may be you use `go module`")
return "" return ""
} }
for _, wg := range wgopath { for _, wg := range wgopath {