beego / bee

Bee is a tool for helping develop with beego app framework.
Apache License 2.0
1.44k stars 921 forks source link

bee 生成model问题 求救 #869

Open gwyy opened 2 months ago

gwyy commented 2 months ago

go环境 1.20
我通过 bee 工具生成model 提示如下: ➜ beedemo1 bee 生成 appcode -tables="admin_menu" -driver=mysql -conn="root:123456@tcp(10.180. 18.38:3306)/beegoadmin" -level=1


| \ | |/ / __ | \ / \ / \ | |/ /| /| / ___/ \| ___| v2.1.0 2024/06/13 15:05:09 INFO ▶0001 使用 'mysql' 作为 'SQLDriver' 2024/06/13 15:05:09 INFO ▶0002 使用 'root:123456@tcp(10.180.18.38: 3306)/beegoadmin' 作为 'SQLConn' 2024/06/13 15:05:09 INFO ▶0003 使用 'admin_menu' 作为 'Tables' 2024/06/13 15:05:09 INFO ▶0004 使用 '1' 作为 'Level' 2024/06/13 15:05:09 INFO ▶0005 正在分析数据库表... 2024/06/13 15:05:09 FATAL ▶0006 无法在 GOPATH '/Users/admin/wwwroot/golang/gopath' 之外生成应用程序代码,与 CWD '/Users/admin/wwwroot/golang/ personal/beedemo1'相比

网上找了一圈 包括 issue 里 貌似都没什么好的解决办法 求问这个问题如何解决?

flycash commented 2 months ago

按照提示应该是要在 GOPATH 之下才能运作。这个特性我还没修改。