Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bee 生成model问题 求救 #869

Open
gwyy opened this issue Jun 13, 2024 · 1 comment
Open

bee 生成model问题 求救 #869

gwyy opened this issue Jun 13, 2024 · 1 comment

Comments

@gwyy
Copy link

gwyy commented Jun 13, 2024

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
Copy link
Collaborator

flycash commented Jun 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants